summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2007-10-13 16:16:45 +0000
committerRyan Hill <rhill@gentoo.org>2007-10-13 16:16:45 +0000
commit823f5b1ef0555e3a9e7796adb9e34695503f009e (patch)
tree0a6162efeba75b70dbaedc2ba4bc98474b6507a3 /net-p2p/amule/amule-2.2.0_pre20070422.ebuild
parentStable on ppc64; bug #193542 (diff)
downloadhistorical-823f5b1ef0555e3a9e7796adb9e34695503f009e.tar.gz
historical-823f5b1ef0555e3a9e7796adb9e34695503f009e.tar.bz2
historical-823f5b1ef0555e3a9e7796adb9e34695503f009e.zip
Move need-wxwidgets into src_compile. Portage seems to be dropping the value
of WX_CONFIG gotten from wxwidgets.eclass between phases. Also fix variable quoting. Package-Manager: portage-2.1.3.12
Diffstat (limited to 'net-p2p/amule/amule-2.2.0_pre20070422.ebuild')
-rw-r--r--net-p2p/amule/amule-2.2.0_pre20070422.ebuild40
1 files changed, 20 insertions, 20 deletions
diff --git a/net-p2p/amule/amule-2.2.0_pre20070422.ebuild b/net-p2p/amule/amule-2.2.0_pre20070422.ebuild
index 3335400e1515..dbca1e79f510 100644
--- a/net-p2p/amule/amule-2.2.0_pre20070422.ebuild
+++ b/net-p2p/amule/amule-2.2.0_pre20070422.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.2.0_pre20070422.ebuild,v 1.2 2007/09/29 00:07:25 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.2.0_pre20070422.ebuild,v 1.3 2007/10/13 16:16:45 dirtyepic Exp $
inherit eutils flag-o-matic wxwidgets
@@ -23,8 +23,6 @@ DEPEND="=x11-libs/wxGTK-2.6*
unicode? ( >=media-libs/gd-2.0.26 ) )"
pkg_setup() {
- export WX_GTK_VER="2.6"
-
if ! use gtk && ! use remote && ! use amuled; then
eerror ""
eerror "You have to specify at least one of gtk, remote or amuled"
@@ -33,17 +31,6 @@ pkg_setup() {
die "Invalid USE flag set"
fi
- if use gtk; then
- einfo "wxGTK with gtk2 and unicode support will be used"
- need-wxwidgets unicode
- elif use unicode; then
- einfo "wxGTK with unicode and without X support will be used"
- need-wxwidgets base-unicode
- else
- einfo "wxGTK without X support will be used"
- need-wxwidgets base
- fi
-
if use stats && ! use gtk; then
einfo "Note: You would need both the gtk and stats USE flags"
einfo "to compile aMule Statistics GUI."
@@ -63,7 +50,20 @@ pkg_preinst() {
}
src_compile() {
- local myconf=""
+ local myconf
+
+ WX_GTK_VER="2.6"
+
+ if use gtk; then
+ einfo "wxGTK with gtk2 and unicode support will be used"
+ need-wxwidgets unicode
+ elif use unicode; then
+ einfo "wxGTK with unicode and without X support will be used"
+ need-wxwidgets base-unicode
+ else
+ einfo "wxGTK without X support will be used"
+ need-wxwidgets base
+ fi
if use gtk ; then
use stats && myconf="${myconf}
@@ -99,15 +99,15 @@ src_compile() {
}
src_install() {
- make DESTDIR=${D} install || die
+ emake DESTDIR="${D}" install || die
if use amuled; then
- newconfd ${FILESDIR}/amuled.confd amuled
- newinitd ${FILESDIR}/amuled.initd amuled
+ newconfd "${FILESDIR}"/amuled.confd amuled
+ newinitd "${FILESDIR}"/amuled.initd amuled
fi
if use remote; then
- newconfd ${FILESDIR}/amuleweb.confd amuleweb
- newinitd ${FILESDIR}/amuleweb.initd amuleweb
+ newconfd "${FILESDIR}"/amuleweb.confd amuleweb
+ newinitd "${FILESDIR}"/amuleweb.initd amuleweb
fi
}