PDA

View Full Version : ebuild per aMule 2.0.0 rc3


GhePeU
02-05-2004, 16:17
nuovo ebuild aggiornato

ottimizzazioni disabilitate per default (in teoria migliore stabilità) e tre nuove USE:

debug: abilita e disabilita il debug
noamulestats: disabilita le nuove statistiche grafiche wxCas, che richiedono libgd come nuova dipendenza; per default le compila
noamuleremote: disabilita le utility per il controllo remoto (webserver, web client, amulecmd); di default sono tuttora compilate


rinominare amule-2.0.0_rc3.ebuild

# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2

MY_P=${P/m/M}
MY_P=${MY_P/_/}
S=${WORKDIR}/${MY_P}

DESCRIPTION="aNOTHER wxWindows based eMule P2P Client"
HOMEPAGE="http://www.amule.org"
SRC_URI="http://download.berlios.de/${PN}/${MY_P}.tar.bz2"
RESTRICT="nomirror"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="debug nls noamulestats noamuleremote"
EXTRA_ECONF="--disable-optimise"

# optimizations disabled for better stability
# new USE "noamulestats" disables aMule GUI statistics (wxCas) (require libgd)
# new USE "noamuleremote" disables remote control utilities: webserver,
# web client, amulecmd text client


DEPEND=">=x11-libs/wxGTK-2.4.2
>=net-misc/curl-7.11.0
>=dev-libs/crypto++-5.1
>=sys-libs/zlib-1.2.1
!noamulestats? ( >=media-libs/libgd-2.0.22 )"

pkg_setup() {

# GTK2 is unstable and not supported by aMule developers
if wx-config --cppflags | grep gtk2 >& /dev/null; then
einfo "Compiling ${PN} against wxGTK2 is not supported."
die "wxGTK must be re-emerged with USE=-gtk2."
fi

# aMule doesn't compile against unicoded wxGTK at all.
if wx-config --cppflags | grep gtk2u >& /dev/null; then
einfo "${PN} will not build if wxGTK was compiled"
einfo "with unicode support. If you are using a version of"
einfo "wxGTK <= 2.4.2, you must set USE=-gtk2. In newer versions,"
einfo "you must set USE=-unicode."
die "wxGTK must be re-emerged without unicode suport"
fi

}

src_compile() {

use noamuleremote && EXTRA_ECONF="${EXTRA_ECONF} --disable-amulecmd \
--disable-amulecmdgui \
--disable-webserver \
--disable-webservergui"
|| EXTRA_ECONF="${EXTRA_ECONF} --enable-amulecmd \
--enable-amulecmdgui \
--enable-webserver \
--enable-webservergui"

#workaround for broken configure (doesn't recognize --enable-wxcas)
use noamulestats && EXTRA_ECONF="${EXTRA_ECONF} --disable-wxcas"

econf `use_enable nls` \
`use_enable debug` || die

emake -j1 || die
}

src_install() {
make DESTDIR=${D} install || die
}

Jøhñ Ðøë
02-05-2004, 19:48
senti, ma è quello di bugzilla modificato o l'hai fatto interamente te?

John

GhePeU
02-05-2004, 19:55
il primo ebuild per la rc1 l'avevo fatto io, questo è il suo nipotino ;)

Jøhñ Ðøë
02-05-2004, 20:31
ok. Io ho il nipotino di quello di bugzilla per l'rc1 :p Però modificato da me :)
Per questo chiedevo, non ho voglia di andare a trovarmi quello rc3 di bugzilla che ci vuole troppo a cercare :D

Lo so son lamer :D

GhePeU
02-05-2004, 20:39
Originariamente inviato da Jøhñ Ðøë
ok. Io ho il nipotino di quello di bugzilla per l'rc1 :p Però modificato da me :)
Per questo chiedevo, non ho voglia di andare a trovarmi quello rc3 di bugzilla che ci vuole troppo a cercare :D

Lo so son lamer :D


quello che c'è qui sopra l'ho messo anche su bugzilla (http://bugs.gentoo.org/show_bug.cgi?id=45855) e sul forum di amule ;)
niente feedback per ora, ma dovrebbe funzionare