diff options
author | Marcin Kryczek <mkay@gentoo.org> | 2005-09-22 22:39:01 +0000 |
---|---|---|
committer | Marcin Kryczek <mkay@gentoo.org> | 2005-09-22 22:39:01 +0000 |
commit | 4eb9771d7178463b74f6d714f1dd76c484714694 (patch) | |
tree | 5729bbfd054af3b4f130139db0bc7ded16a51382 /net-p2p | |
parent | Version bump, bug #103738, thanks to David Carr for being patient! (diff) | |
download | gentoo-2-4eb9771d7178463b74f6d714f1dd76c484714694.tar.gz gentoo-2-4eb9771d7178463b74f6d714f1dd76c484714694.tar.bz2 gentoo-2-4eb9771d7178463b74f6d714f1dd76c484714694.zip |
amule can be built without gtk. thank Flameeyes
(Portage version: 1.589-cvs)
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/amule/ChangeLog | 7 | ||||
-rw-r--r-- | net-p2p/amule/Manifest | 2 | ||||
-rw-r--r-- | net-p2p/amule/amule-2.0.3-r4.ebuild | 108 | ||||
-rw-r--r-- | net-p2p/amule/files/digest-amule-2.0.3-r4 | 1 |
4 files changed, 117 insertions, 1 deletions
diff --git a/net-p2p/amule/ChangeLog b/net-p2p/amule/ChangeLog index 5f17edf45213..8c173cd5f101 100644 --- a/net-p2p/amule/ChangeLog +++ b/net-p2p/amule/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-p2p/amule # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.52 2005/09/20 17:24:52 mkay Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.53 2005/09/22 22:39:01 mkay Exp $ + +*amule-2.0.3-r4 (22 Sep 2005) + + 22 Sep 2005; <mkay@gentoo.org> +amule-2.0.3-r4.ebuild: + amule can be built without gtk. thank Flameeyes 20 Sep 2005; <mkay@gentoo.org> amule-1.2.8-r2.ebuild, amule-2.0.1-r1.ebuild, amule-2.0.3-r3.ebuild: diff --git a/net-p2p/amule/Manifest b/net-p2p/amule/Manifest index d72d4d6f4ff5..40fa0a8cdf53 100644 --- a/net-p2p/amule/Manifest +++ b/net-p2p/amule/Manifest @@ -5,6 +5,7 @@ MD5 1abaced287e5f9e1594893fb667a96df amule-2.0.3.ebuild 2258 MD5 8aefbc0e49db723ca1ad02d0c409cd49 metadata.xml 160 MD5 52781eab799d0ab31cdcd3847805789e amule-1.2.8-r2.ebuild 826 MD5 b3c15e104e1b64f5499fad3b01f9b27d amule-1.2.8-r1.ebuild 829 +MD5 14aab89179665013a73d563e8f56372a amule-2.0.3-r4.ebuild 2606 MD5 9842bde0d727d0714cf5ae1f01c14f19 amule-2.0.3-r2.ebuild 2167 MD5 4b1e5b8f876490da282983c0fe3af6e6 amule-2.0.1-r2.ebuild 2183 MD5 28a843108dc2a81ececee701965cb3da amule-2.0.3-r3.ebuild 2183 @@ -23,3 +24,4 @@ MD5 e875c8bb7caccbc783bbd7238b520a04 files/digest-amule-2.0.1-r1 65 MD5 393ff0bdafbbb32d292387e1ca196737 files/digest-amule-2.0.3-r2 65 MD5 e875c8bb7caccbc783bbd7238b520a04 files/digest-amule-2.0.1-r2 65 MD5 393ff0bdafbbb32d292387e1ca196737 files/digest-amule-2.0.3-r3 65 +MD5 393ff0bdafbbb32d292387e1ca196737 files/digest-amule-2.0.3-r4 65 diff --git a/net-p2p/amule/amule-2.0.3-r4.ebuild b/net-p2p/amule/amule-2.0.3-r4.ebuild new file mode 100644 index 000000000000..e18874e61ea5 --- /dev/null +++ b/net-p2p/amule/amule-2.0.3-r4.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.0.3-r4.ebuild,v 1.1 2005/09/22 22:39:01 mkay Exp $ + +inherit eutils flag-o-matic wxwidgets + +MY_P=${P/m/M} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="aMule, the all-platform eMule p2p client" +HOMEPAGE="http://www.amule.org/" +SRC_URI="http://download.berlios.de/${PN}/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc ~ppc64 ~sparc ~alpha" +IUSE="amuled debug nls remote stats unicode gtk" + + +DEPEND=">=x11-libs/wxGTK-2.6.0 + >=sys-libs/zlib-1.2.2 + nls? ( sys-devel/gettext ) + remote? ( >=media-libs/libpng-1.2.8 ) + stats? ( >=media-libs/gd-2.0.32 ) + !net-p2p/xmule + sys-apps/sed" + +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 gtk && ! 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() { + unpack ${A} + cd ${S} + sed -i -r "s:\\$\\(LN_S\\) (.*):\$\(LN_S\) ${D}/\1:g" docs/man/Makefile.in +} + +src_compile() { + local myconf + + if use gtk; 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 \ + --disable-optimize \ + --with-wx-config=${WX_CONFIG} \ + --with-wxbase-config=${WX_CONFIG} \ + `use_with gtk 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 -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 +} diff --git a/net-p2p/amule/files/digest-amule-2.0.3-r4 b/net-p2p/amule/files/digest-amule-2.0.3-r4 new file mode 100644 index 000000000000..a14f56f2afdf --- /dev/null +++ b/net-p2p/amule/files/digest-amule-2.0.3-r4 @@ -0,0 +1 @@ +MD5 204ca3472a773d8fa484d0a0787bf0d7 aMule-2.0.3.tar.bz2 2154288 |