summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hood <squinky86@gentoo.org>2004-08-08 03:02:01 +0000
committerJon Hood <squinky86@gentoo.org>2004-08-08 03:02:01 +0000
commitc5c8874675d5acb55aa8a7224e36488de12cc3c2 (patch)
treec2b579c74b90392d043be9525c059a37f95fbc62 /net-p2p/amule
parentInitial import. Closes #59123. (diff)
downloadhistorical-c5c8874675d5acb55aa8a7224e36488de12cc3c2.tar.gz
historical-c5c8874675d5acb55aa8a7224e36488de12cc3c2.tar.bz2
historical-c5c8874675d5acb55aa8a7224e36488de12cc3c2.zip
ebuild cleanups courtesy of #59640 and #59672
Diffstat (limited to 'net-p2p/amule')
-rw-r--r--net-p2p/amule/ChangeLog6
-rw-r--r--net-p2p/amule/Manifest12
-rw-r--r--net-p2p/amule/amule-2.0.0_rc5.ebuild50
3 files changed, 46 insertions, 22 deletions
diff --git a/net-p2p/amule/ChangeLog b/net-p2p/amule/ChangeLog
index 634e6695d622..43126a3cfa99 100644
--- a/net-p2p/amule/ChangeLog
+++ b/net-p2p/amule/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-p2p/amule
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.28 2004/07/23 23:41:38 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.29 2004/08/08 03:02:01 squinky86 Exp $
+
+ 07 Aug 2004; Jon Hood <squinky86@gentoo.org> amule-2.0.0_rc5.ebuild:
+ Inherit wxwindows; thanks Giacomo Perale <ghepeu@virgilio.it>, #59672.
+ Adding optional gd abilities for those not wanting stats, #59640.
23 Jul 2004; Michael Sterrett <mr_bones_@gentoo.org> amule-2.0.0_rc5.ebuild:
don't use deprecated ? : syntax
diff --git a/net-p2p/amule/Manifest b/net-p2p/amule/Manifest
index 756cddcc5b38..17a709eab4d4 100644
--- a/net-p2p/amule/Manifest
+++ b/net-p2p/amule/Manifest
@@ -1,12 +1,12 @@
-MD5 16793cd42246c12c2576b3638b022d3c ChangeLog 3892
-MD5 8aefbc0e49db723ca1ad02d0c409cd49 metadata.xml 160
MD5 4d782261e1774291ce965fc6e560c4ba amule-2.0.0_rc3.ebuild 2206
MD5 44203597f71957b61d479e8dff75af9d amule-1.2.7.ebuild 1087
-MD5 ae2f0c7a2c494c412921813d8f047f92 amule-1.2.8.ebuild 1086
-MD5 157b945b4a5487ad777dfee8ceb2c118 amule-2.0.0_rc5.ebuild 1823
+MD5 c0dd2419f9b4895012011f52a72c6a5a amule-2.0.0_rc5.ebuild 2337
MD5 83a5322edb2d852d6bb032f9ee59ff7d amule-1.2.6.ebuild 1028
+MD5 8060421af952ceb27cf0b9eccce767f6 ChangeLog 4105
+MD5 ae2f0c7a2c494c412921813d8f047f92 amule-1.2.8.ebuild 1086
+MD5 8aefbc0e49db723ca1ad02d0c409cd49 metadata.xml 160
MD5 2fb2652f4ff91f2244ff07cccd31d5d2 files/digest-amule-2.0.0_rc3 68
-MD5 7a18b938fdc0d7255544a5e112db30b9 files/digest-amule-1.2.7 65
-MD5 6222124296125a6909963944434e0291 files/digest-amule-1.2.8 65
MD5 25f3451bd4e421754b720ec5f10605b4 files/digest-amule-2.0.0_rc5 68
MD5 a301972585e39355d61f9dcc8daaab86 files/digest-amule-1.2.6 65
+MD5 7a18b938fdc0d7255544a5e112db30b9 files/digest-amule-1.2.7 65
+MD5 6222124296125a6909963944434e0291 files/digest-amule-1.2.8 65
diff --git a/net-p2p/amule/amule-2.0.0_rc5.ebuild b/net-p2p/amule/amule-2.0.0_rc5.ebuild
index e61024e7cf7f..63ed1931617e 100644
--- a/net-p2p/amule/amule-2.0.0_rc5.ebuild
+++ b/net-p2p/amule/amule-2.0.0_rc5.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.0.0_rc5.ebuild,v 1.3 2004/07/23 23:41:38 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.0.0_rc5.ebuild,v 1.4 2004/08/08 03:02:01 squinky86 Exp $
+
+inherit wxwidgets
MY_P=${P/m/M}
MY_P=${MY_P/_/}
@@ -10,39 +12,57 @@ 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"
-IUSE="debug nls remote stats"
-EXTRA_ECONF="--disable-optimise"
+IUSE="debug gtk2 nls remote stats unicode gd"
+
# USE "stats" enables external utilities (statistics and other)
# USE "remote" enables remote controlling utilities (webserver, text client)
+
DEPEND="remote? ( =x11-libs/wxGTK-2.4* )
- !remote? ( >=x11-libs/wxGTK-2.4.2-r1 )
+ !remote? ( >=x11-libs/wxGTK-2.4.2-r2 )
>=net-misc/curl-7.11.0
>=dev-libs/crypto++-5.1-r1
>=sys-libs/zlib-1.2.1
- stats? ( >=media-libs/gd-2.0.23 )"
+ stats? ( >=media-libs/gd-2.0.26 )
+ gd? ( >=media-libs/gd-2.0.26 )"
pkg_setup() {
- # GTK2 is unstable on wxGTK 2.4 and not supported by aMule developers
- if wx-config --version | grep 2.4 >& /dev/null \
- && wx-config --cppflags | grep gtk2 >& /dev/null; then
- einfo "Compiling ${PN} against wxGTK2 2.4.x is not supported."
- einfo "wxGTK must be re-emerged with USE=\"-gtk2\" or you can upgrade"
- einfo "to development snapshots 2.5.1, but this will break other"
- einfo "applications and the webserver. Please note that gtk2 support"
- einfo "is still experimental."
- die "wxGTK 2.4 must be re-emerged with USE=\"-gtk2\"."
+ if use gtk2 >& /dev/null && use remote >& /dev/null ; then
+ die "aMule remote utilities don't work with wxGTK 2.5 so use either USE='remote' or USE='gtk2'"
fi
+ need-wxwidgets gtk
+
+ if ${WX_CONFIG} --version | grep 2.4 >& /dev/null ; then
+ if use gtk2 >& /dev/null || use unicode >& /dev/null ; then
+ einfo "Compiling ${PN} against wxGTK2 2.4.x is not supported."
+ einfo "You can upgrade wxGTK to development snapshot 2.5.*"
+ einfo "but this will break other applications, or emerge amule"
+ einfo "with USE=\"-gtk2\"."
+ die "Emerge amule with USE=\"-gtk2 -unicode\"."
+ fi
+ else
+ if ! use gtk2 >& /dev/null ; then
+ need-wxwidgets gtk || die "gtk version of x11-libs/wxGTK not found"
+ elif use unicode >& /dev/null ; then
+ need-wxwidgets unicode || die "You need to emerge unicoded wxGTK with USE='gtk2 unicode'"
+ else
+ need-wxwidgets gtk2 || die "You need to emerge wxGTK with USE='gtk2'"
+ fi
+ fi
}
src_compile() {
+
+ EXTRA_ECONF="--disable-optimise \
+ --with-wx-config=${WX_CONFIG} \
+ --with-wxbase-config=${WX_CONFIG}"
+
econf `use_enable nls` \
`use_enable remote amulecmd` \
`use_enable remote amulecmdgui` \