aMule Forum

Italian => Aiuto su aMule => Topic started by: a-snu on January 13, 2004, 01:36:52 PM

Title: amule su gentoo
Post by: a-snu on January 13, 2004, 01:36:52 PM
bonjour, ho appena installato gentoo ... e non ho la minima idea su come si installino i programmi  8o

per far partire amule che devo fare? ho scaricato il tar.gz, ma pare che non ci sia wxGtk, andando sul sito wxwindows trovo solo rpm e 1 tar.gz ma generale [non wxbase e wxdel] ... che aggia fà? qualcuno ha dritte?
Title: Re: amule su gentoo
Post by: GhePeU on January 13, 2004, 03:22:18 PM
man emerge


ma come diavolo hai fatto a installare gentoo e non sapere come si installano i programmi?!?


forse sarebbe il caso di passare a un'altra distro...
Title: Re: amule su gentoo
Post by: a-snu on January 13, 2004, 04:31:30 PM
se uno non prova, non impara mai ... ;)

comunque non chiedevo il manuale ... volevo sapere che wx debbo installare, visto che quelle consigliate sono rpm per suse-rh
Title: Re: amule su gentoo
Post by: GhePeU on January 13, 2004, 07:48:43 PM
ah

beh, con
Code: [Select]
ACCEPT_KEYWORDS="~x86" emerge amule scarica e installa tutte le librerie necessarie

NB. inserisci nelle use -gtk2 prima di provare (oppure deselezione la casella gtk2 con ufed)
Title: Re: amule su gentoo
Post by: GhePeU on January 13, 2004, 07:55:35 PM
la versione corrente nel portage è la 1.2.3

se vuoi l'ultima puoi usare il mio ebuild (amule-1.2.4.ebuild)

Code: [Select]
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
 
MY_P=${P/m/M}
S=${WORKDIR}/${MY_P}
 
DESCRIPTION="aNOTHER wxWindows based eMule P2P Client"
HOMEPAGE="http://sourceforge.net/projects/amule"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
 
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
 
IUSE=""
 
DEPEND=">=x11-libs/wxGTK-2.4.1
        >=sys-libs/zlib-1.2.1"
 
pkg_setup() {
        # FIXME: Is this really how we want to do this ?
        GREP=`grep ' unicode' /var/db/pkg/x11-libs/wxGTK*/USE`
        if [ "${GREP}" != "" ]; then
                eerror "This package doesn't work with wxGTK"
                eerror "compiled with gtk2 and unicode in USE"
                eerror "Please re-compile wxGTK with -unicode"
                die "aborting..."
        fi
}
 
src_compile () {
        unset CFLAGS CXXFLAGS
        ./configure --disable-debug --enable-optimise --disable-amulecmd || die
        MAKEOPTS="${MAKEOPTS} -j1" emake || die
}
 
src_install () {
        einstall || die
}

usa
Code: [Select]
ebuild amule-1.2.4.ebuild digest dopo aver copiato i sorgenti in /usr/portage/distfiles e l'ebuild in /usr/portage/net-p2p/amule, poi procedi con l'installazione normale
se non vuoi che venga cancellato al prossimo sync, devi creare il tuo local portage... per questo ti rinvio alla documentazione gentoo
Title: Re: amule su gentoo
Post by: a-snu on January 14, 2004, 08:12:04 PM
8o  grazie mille!!