Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/amule: ChangeLog amule-2.2.0_pre20080507.ebuild
Date: Wed, 07 May 2008 16:02:26
Message-Id: E1Jtm62-0005Xn-GF@stork.gentoo.org
1 armin76 08/05/07 16:02:22
2
3 Modified: ChangeLog
4 Added: amule-2.2.0_pre20080507.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.115 net-p2p/amule/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/ChangeLog?rev=1.115&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/ChangeLog?rev=1.115&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/ChangeLog?r1=1.114&r2=1.115
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v
19 retrieving revision 1.114
20 retrieving revision 1.115
21 diff -u -r1.114 -r1.115
22 --- ChangeLog 14 Apr 2008 13:00:41 -0000 1.114
23 +++ ChangeLog 7 May 2008 16:02:22 -0000 1.115
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-p2p/amule
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.114 2008/04/14 13:00:41 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/ChangeLog,v 1.115 2008/05/07 16:02:22 armin76 Exp $
29 +
30 +*amule-2.2.0_pre20080507 (07 May 2008)
31 +
32 + 07 May 2008; Raúl Porcel <armin76@g.o>
33 + +amule-2.2.0_pre20080507.ebuild:
34 + Version bump
35
36 *amule-2.2.0_pre20080413 (14 Apr 2008)
37
38
39
40
41 1.1 net-p2p/amule/amule-2.2.0_pre20080507.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/amule-2.2.0_pre20080507.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/amule/amule-2.2.0_pre20080507.ebuild?rev=1.1&content-type=text/plain
45
46 Index: amule-2.2.0_pre20080507.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.2.0_pre20080507.ebuild,v 1.1 2008/05/07 16:02:22 armin76 Exp $
51
52 inherit eutils flag-o-matic wxwidgets autotools
53
54 MY_P=${PN/m/M}-CVS-${PV/2.2.0_pre/}
55 S="${WORKDIR}/${PN}-cvs"
56
57 DESCRIPTION="aMule, the all-platform eMule p2p client"
58 HOMEPAGE="http://www.amule.org/"
59 SRC_URI="http://www.hirnriss.net/files/cvs/${MY_P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
64 IUSE="daemon debug geoip gtk nls remote stats unicode upnp"
65
66 DEPEND="=x11-libs/wxGTK-2.8*
67 dev-libs/crypto++
68 >=sys-libs/zlib-1.2.1
69 stats? ( >=media-libs/gd-2.0.26 )
70 geoip? ( dev-libs/geoip )
71 upnp? ( net-libs/libupnp )
72 remote? ( >=media-libs/libpng-1.2.0
73 unicode? ( >=media-libs/gd-2.0.26 ) )"
74
75 pkg_setup() {
76 if ! use gtk && ! use remote && ! use daemon; then
77 eerror ""
78 eerror "You have to specify at least one of gtk, remote or daemon"
79 eerror "USE flag to build amule."
80 eerror ""
81 die "Invalid USE flag set"
82 fi
83
84 if use stats && ! use gtk; then
85 einfo "Note: You would need both the gtk and stats USE flags"
86 einfo "to compile aMule Statistics GUI."
87 einfo "I will now compile console versions only."
88 fi
89
90 if use stats && ! built_with_use media-libs/gd jpeg; then
91 die "media-libs/gd should be compiled with the jpeg use flag when you have the stats use flag set"
92 fi
93 }
94
95 pkg_preinst() {
96 if use daemon || use remote; then
97 enewgroup p2p
98 enewuser p2p -1 -1 /home/p2p p2p
99 fi
100 }
101
102 src_compile() {
103 local myconf
104
105 WX_GTK_VER="2.8"
106
107 if use gtk; then
108 einfo "wxGTK with gtk support will be used"
109 need-wxwidgets unicode
110 else
111 einfo "wxGTK without X support will be used"
112 need-wxwidgets base
113 fi
114
115 if use gtk ; then
116 use stats && myconf="${myconf}
117 --enable-wxcas
118 --enable-alc"
119 use remote && myconf="${myconf}
120 --enable-amule-gui"
121 else
122 myconf="
123 --disable-monolithic
124 --disable-amule-gui
125 --disable-wxcas
126 --disable-alc"
127 fi
128
129 econf \
130 --with-wx-config=${WX_CONFIG} \
131 --with-wxbase-config=${WX_CONFIG} \
132 --enable-amulecmd \
133 $(use_enable debug) \
134 $(use_enable !debug optimize) \
135 $(use_enable daemon amule-daemon) \
136 $(use_enable geoip) \
137 $(use_enable nls) \
138 $(use_enable remote webserver) \
139 $(use_enable stats cas) \
140 $(use_enable stats alcc) \
141 ${myconf} || die
142
143 # we filter ssp until bug #74457 is closed to build on hardened
144 filter-flags -fstack-protector -fstack-protector-all
145
146 emake -j1 || die
147 }
148
149 src_install() {
150 emake DESTDIR="${D}" install || die
151
152 if use daemon; then
153 newconfd "${FILESDIR}"/amuled.confd amuled
154 newinitd "${FILESDIR}"/amuled.initd amuled
155 fi
156
157 if use remote; then
158 newconfd "${FILESDIR}"/amuleweb.confd amuleweb
159 newinitd "${FILESDIR}"/amuleweb.initd amuleweb
160 make_desktop_entry amulegui "aMule Remote" amule "Network;P2P"
161 fi
162 }
163
164
165
166 --
167 gentoo-commits@l.g.o mailing list