Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amule CVS ebuild digest failed [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
__g_blade
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jan 2006
Posts: 101
Location: paderborn, germany

PostPosted: Sat May 20, 2006 4:41 pm    Post subject: amule CVS ebuild digest failed [solved] Reply with quote

amule-cvs-3.ebuild
Code:

# Always use todays snapshot by default
DATE=$(date +%Y%m%d)
# Uncomment and edit this line to use a specific date
# Format is <Year><Month><Day>
# DATE=20050402

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"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="amuled debug gtk nls nosystray optimize remote remote-gui stats unicode X"

RESTRICT="nostrip nomirror"

DEPEND="
        gtk2? ( >=x11-libs/wxGTK-2.6.0 )
        amuled? ( >=x11-libs/wxGTK-2.6.0 )
        !gtk2? ( !amuled? ( >=x11-libs/wxGTK-2.6.0 ) )
        >=sys-libs/zlib-1.2.1
        stats? ( >=media-libs/gd-2.0.26 )
        remote? ( >=media-libs/libpng-1.2.0 )
        !net-p2p/amule
        !net-p2p/xmule"

pkg_setup() {
        export WX_GTK_VER="2.6"
        if use unicode && use gtk; then
                need-wxwidgets unicode
        elif use gtk; then
                need-wxwidgets gtk2
        elif use unicode; then
                need-wxwidgets base-unicode
        else
                need-wxwidgets base
        fi

        if use optimize && use debug; then
                eerror "If you want to debug, don't optimize!!!"
                eerror "Use only one of 'optimize' or 'debug', not both "
                die "Invalid USE flags"
        fi
}

src_unpack() {
        unpack ${A}
#       cd /var/tmp/portage/amule-cvs-1/work/amule-cvs/
        cd ${S}
        sed -i -r "s:\\$\\(LN_S\\) (.*):\$\(LN_S\) ${D}/\1:g" docs/man/Makefile.in
}

src_compile() {
#       cd /var/tmp/portage/amule-cvs-1/work/amule-cvs/
        cd ${S}
        local myconf

        if ! use X; then
                myconf="${myconf} --disable-monolithic"
        fi

        if use nosystray || ! use X; then
                myconf="${myconf} --disable-systray"
        elif use unicode; then
                myconf="${myconf} --enable-utf8-systray"
        fi
        if use remote-gui && use stats; then
                myconf="${myconf} --enable-wxcas --enable-alc"
        else
                myconf="${myconf} --disable-wxcas --disable-alc"
        fi

        if use remote-gui && ! use remote; then
                eerror "You can't build the remote GUI apps, if you don't build also the remote apps!"
                einfo "Enabling 'remote' USE flag!!!"
                myconf="${myconf} --enable-webserver --enable-amulecmd"
        fi

        if use remote; then
                myconf="${myconf} --enable-webserver --enable-amulecmd"
        fi

        if use remote && use amuled; then
                myconf="${myconf} --enable-amule-gui"
        fi

        econf \
                --with-wx-config=${WX_CONFIG} \
                --with-wxbase-config=${WX_CONFIG} \
                `use_with gtk x` \
                `use_enable amuled amule-daemon` \
                `use_enable optimize` \
                `use_enable debug` \
                `use_enable remote-gui amulecmdgui` \
                `use_enable remote-gui webservergui` \
                `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() {
#       cd /var/tmp/portage/amule-cvs-1/work/amule-cvs/
        cd ${S}
        make DESTDIR=${D} install || die

        if use amuled || use remote; then
                if ! id p2p >/dev/null; then
                enewgroup p2p
                        enewuser p2p -1 -1 /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 remote; then
                insinto /etc/conf.d; newins ${FILESDIR}/amuleweb.confd amuleweb
                exeinto /etc/init.d; newexe ${FILESDIR}/amuleweb.initd amuleweb
        fi
}


ebuild digest fails :(
Code:

omerta ~ # ebuild /usr/local/portage/net-p2p/amule/amule-cvs-3.ebuild digest
Appending /usr/local/portage to PORTDIR_OVERLAY...
!!! /usr/local/portage does not seem to have a valid PORTDIR structure.


Code:

omerta ~ # emerge --info
Portage 2.1_rc1-r3 (default-linux/x86/2006.0, gcc-4.1.1-pre20060518, glibc-2.4.90.20060511-r0, 2.6.17-rc3-no2 i686)
=================================================================
System uname: 2.6.17-rc3-no2 i686 AMD Sempron(tm) 2200+
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.92
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -ftracer -fweb -frename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -ftracer -fweb -frename-registers -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="en fr de es it tr"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aim alsa apache2 apic apm arts asf avi berkdb bidi bitmap-fonts browserplugin cli cmov crypt cups cx8 de dri eds emboss encode esd foomaticdb fortran fpu fxsr gdbm gif glibc-omitfp gnome gpm gstreamer gtk gtk2 icq imlib ipv6 irc isdnlog jabber java javascript jpeg kde libg++ libwww lj mad matroska mca mce mikmod mmx mmxext motif mozilla mp mp3 mpeg mpg msn msr mtrr ncurses nls nptl nptlonly nsplugin ogg opengl pae pam pat pcre pdflib perl pge png pppd pse pse36 python qt quicktime readline real reflection rss sdl sep session spell spl sse ssl syscall tcpd tiff truetype truetype-fonts ts tsc type1-fonts udev unicode up vme vorbis win32codecs xinerama xml xmms xorg xv xvid yahoo zlib elibc_glibc kernel_linux linguas_en linguas_fr linguas_de linguas_es linguas_it linguas_tr userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS


_________________
--eof--


Last edited by __g_blade on Sat May 20, 2006 9:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
omidxo
n00b
n00b


Joined: 23 Feb 2005
Posts: 71

PostPosted: Sat May 20, 2006 5:59 pm    Post subject: Reply with quote

Code:
/usr/local/portage/net-p2p/amule/

to
Code:
/usr/local/portage/net-p2p/amule-cvs/


Code:
src_compile() {
#       cd /var/tmp/portage/amule-cvs-1/work/amule-cvs/
        cd ${S}

to
Code:
src_compile() {
       cd /var/tmp/portage/amule-cvs-3/work/amule-cvs/
        #cd ${S}
Back to top
View user's profile Send private message
__g_blade
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jan 2006
Posts: 101
Location: paderborn, germany

PostPosted: Sat May 20, 2006 9:09 pm    Post subject: Reply with quote

thanks

works for me now
had to do some little changes more in ebuild before

but now it's ok
_________________
--eof--
Back to top
View user's profile Send private message
pcmaster
Advocate
Advocate


Joined: 04 Dec 2003
Posts: 2222
Location: Barcelona

PostPosted: Sun Aug 20, 2006 12:48 pm    Post subject: Reply with quote

I get this error:

AthlonXP amule-cvs # ebuild amule-cvs.ebuild digest
!!! net-p2p/amule-cvs does not follow correct package syntax.
AthlonXP amule-cvs #
_________________
pcmaster
Back to top
View user's profile Send private message
danii
n00b
n00b


Joined: 11 Sep 2004
Posts: 10
Location: Porto,Portugal

PostPosted: Thu Nov 16, 2006 4:02 am    Post subject: Reply with quote

pcmaster wrote:
I get this error:

AthlonXP amule-cvs # ebuild amule-cvs.ebuild digest
!!! net-p2p/amule-cvs does not follow correct package syntax.
AthlonXP amule-cvs #


ebuild lacks version number rename it to amule-cvs-3.ebuild or something like that and it should work
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum