allora ho fatto delle prove e ho modificato l'ebuild di amule-cvs
ora io nn sono riuscito ad installare correttamente le wxGTK-2.6.1 e le wxGTK-2.6.2 danno errore perchè l'ebuild è buggosa quindi ho optato per crearmi una nuova ebuild per le wxGTK-2.6.2 (-r1) con le modifiche appropriate e poi sopra ci ho installato amule-cvs con le ultime modifiche. Tutto ha funzionato a perfezione, tenete presente che ho testato solo la compilazione ma non gli eseguibili, quindi se lo testate con diverse combinazioni di flag riportate qui i risultati che al massimo si sistema il tutto.
ora io ho impostato
Code: Select all
PORTDIR_OVERLAY="/usr/local/portage"
quindi sostituite PORTDIR_OVERLAY di conseguenza
wxGTK-2.6.2-r1.ebuild
{$PORTDIR_OVERLAY}/x11-libs/wxGTK/wxGTK-2.6.2-r1.ebuild
Code: Select all
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.6.2.ebuild,v 1.2 2005/10/15 19:35:30 eradicator Exp $
inherit wxlib gnuconfig
DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit and
wxbase non-gui library"
SLOT="2.6"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="gnome joystick odbc opengl sdl X"
RDEPEND="${RDEPEND}
opengl? ( virtual/opengl )
X? (>=x11-libs/gtk+-2.0
>=dev-libs/glib-2.0
media-libs/tiff )
odbc? ( dev-db/unixODBC )
!mips? ( !arm? ( !hppa? ( !ia64? ( !ppc64? ( !alpha? ( !sparc? ( sdl? ( media-libs/sdl-sound ) ) ) ) ) ) ) )"
DEPEND="${RDEPEND}
${DEPEND}
dev-util/pkgconfig"
S=${WORKDIR}/wxWidgets-${PV}
pkg_setup() {
einfo "To install only wxbase (non-gui libs) use USE=-X"
}
src_compile() {
gnuconfig_update
myconf="${myconf}
--with-png
--with-jpeg
--with-tiff
$(use_enable opengl)
$(use_with opengl)
$(use_with gnome gnomeprint)
$(use_with sdl)
$(use_enable joystick)"
use X && configure_build gtk2 unicode "${myconf} --with-gtk=2"
use X || configure_build base unicode "--disable-gui"
}
src_install() {
use X && install_build gtk2
use X || install_build base
wxlib_src_install
}
pkg_postinst() {
einfo "dev-libs/wxbase has been removed from portage and can be"
einfo "installed with wxGTK by specifying the USE flags"
einfo "-X"
}
ed installato con le flag:
Code: Select all
# equery uses wxGTK
[ Searching for packages matching wxGTK... ]
[ Colour Code : set unset ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for x11-libs/wxGTK-2.6.2-r1 ]
U I
- - gnome : Adds GNOME support
- - joystick : Add support for joysticks in all packages
- - odbc : Adds ODBC Support (Open DataBase Connectivity)
- - opengl : Adds support for OpenGL
- - sdl : Adds support for Simple Direct Layer (media library)
- - X : Adds support for X11
- - debug : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
- - doc : Adds extra documentation (API, Javadoc, etc)
- - odbc : Adds ODBC Support (Open DataBase Connectivity)
+ + unicode : Adds support for Unicode
amule-cvs-2.ebuild
{$PORTDIR_OVERLAY}/net-p2p/amule-cvs/amule-cvs-2.ebuild
Code: Select all
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
inherit eutils wxwidgets
S=${WORKDIR}/${PN}
DATE=20051103
DESCRIPTION="aMule, the all-platform eMule p2p client"
HOMEPAGE="http://www.amule.org/"
SRC_URI="http://www.hirnriss.net/files/cvs/aMule-CVS-${DATE}.tar.bz2
http://amuleadu.altervista.org/files/amule-adunanza-2.0.3_cvs${DATE}-1.patch.gz"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="amuled debug nls remote stats unicode gtk2"
DEPEND=">=x11-libs/wxGTK-2.6.0
>=net-misc/curl-7.11.0
>=sys-libs/zlib-1.2.1
stats? ( >=media-libs/gd-2.0.26 )
remote? ( >=media-libs/libpng-1.2.0 )
dev-util/cvs
!net-p2p/xmule
!net-p2p/amule"
pkg_setup() {
export WX_GTK_VER="2.6"
if use unicode && use gtk2; then
need-wxwidgets unicode
elif use gtk2; then
need-wxwidgets gtk
elif use unicode; then
need-wxwidgets base-unicode
else
need-wxwidgets base
fi
if ! use gtk2 && ! use remote && ! use amuled; then
eerror "You have to specify at least on of gtk, remote and amuled"
eerror "USE flag to build amule"
die "Invalid USE flag set"
fi
}
src_unpack() {
einfo "Estraggo i sorgenti e provo ad applicare la patch Adunanza"
unpack ${A}
cd ${S}
ewarn "Provo ad applicare la patch Adu+kAdu"
patch -p0 < ${WORKDIR}/amule-adunanza-2.0.3_cvs${DATE}-1.patch || die "Patch Adunanza non
applicata"
einfo "Patch Adunanza applicata"
}
src_compile() {
local myconf
if use gtk2; then
myconf="--enable-amule-gui"
use stats && myconf="${myconf}
--enable-wxcas
--enable-alc"
use remote && myconf="${myconf}
--enable-amulecmdgui
--enable-webservergui"
else
myconf="--disable-monolithic"
fi
econf \
--enable-kad-compile \
--enable-debug \
--disable-optimise \
--with-wx-config=${WX_CONFIG} \
--with-wxbase-config=${WX_CONFIG} \
`use_with gtk2 x` \
`use_enable amuled amule-daemon` \
`use_enable debug` \
`use_enable nls` \
`use_enable remote amulecmd` \
`use_enable remote webserver` \
`use_enable stats cas` \
`use_enable stats alcc` \
${myconf} \
|| die
# we filter ssp until bug #74457 is closed to build on hardened
if has_hardened; then
filter-flags -fstack-protector -fstack-protector-all
fi
emake -j1 || die
}
src_install() {
make DESTDIR=${D} install || die
if use amuled || use remote; then
if ! id p2p >/dev/null; then
enewgroup p2p
enewuser p2p -1 /bin/false /home/p2p p2p
fi
fi
if use amuled; then
insinto /etc/conf.d; newins ${FILESDIR}/amuled.confd amuled
exeinto /etc/init.d; newexe ${FILESDIR}/amuled.initd amuled
fi
if use amuleweb; then
insinto /etc/conf.d; newins ${FILESDIR}/amuleweb.confd amuleweb
exeinto /etc/init.d; newexe ${FILESDIR}/amuleweb.initd amuleweb
fi
}
installato con le seguenti flag:
Code: Select all
# equery uses amule-cvs
[ Searching for packages matching amule-cvs... ]
[ Colour Code : set unset ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for net-p2p/amule-cvs-2 ]
U I
+ + amuled : <unknown>
- - debug : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
+ + nls : <unknown>
+ + remote : <unknown>
- - stats : <unknown>
+ + unicode : Adds support for Unicode
- - gtk2 : Use gtk+-2.0.0 over gtk+-1.2 in cases where a program supports both.