Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/amule/files/, net-p2p/amule/
Date: Tue, 03 May 2016 17:35:34
Message-Id: 1462296100.46c19a04bc452de7101319de04913d533d3f5e30.wizardedit@gentoo
1 commit: 46c19a04bc452de7101319de04913d533d3f5e30
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 17:18:45 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 17:21:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46c19a04
7
8 net-p2p/amule: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 net-p2p/amule/amule-2.3.1-r2.ebuild | 109 ++++++++++++++++++++++++++++++++++++
15 net-p2p/amule/files/amuled.initd | 4 +-
16 net-p2p/amule/files/amuleweb.initd | 4 +-
17 3 files changed, 113 insertions(+), 4 deletions(-)
18
19 diff --git a/net-p2p/amule/amule-2.3.1-r2.ebuild b/net-p2p/amule/amule-2.3.1-r2.ebuild
20 new file mode 100644
21 index 0000000..dceb2cd
22 --- /dev/null
23 +++ b/net-p2p/amule/amule-2.3.1-r2.ebuild
24 @@ -0,0 +1,109 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +
31 +inherit wxwidgets user
32 +
33 +MY_P=${PN/m/M}-${PV}
34 +S="${WORKDIR}"/${MY_P}
35 +
36 +DESCRIPTION="aMule, the all-platform eMule p2p client"
37 +HOMEPAGE="http://www.amule.org/"
38 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
43 +IUSE="daemon debug geoip nls remote stats unicode upnp +X"
44 +
45 +DEPEND=">=dev-libs/crypto++-5
46 + sys-libs/binutils-libs:0=
47 + >=sys-libs/zlib-1.2.1
48 + >=x11-libs/wxGTK-2.8.12:2.8[X?]
49 + stats? ( >=media-libs/gd-2.0.26:=[jpeg] )
50 + geoip? ( dev-libs/geoip )
51 + upnp? ( >=net-libs/libupnp-1.6.6 )
52 + remote? ( >=media-libs/libpng-1.2.0:0=
53 + unicode? ( >=media-libs/gd-2.0.26:= ) )
54 + !net-p2p/imule"
55 +RDEPEND="${DEPEND}"
56 +
57 +pkg_setup() {
58 + if use stats && ! use X; then
59 + einfo "Note: You would need both the X and stats USE flags"
60 + einfo "to compile aMule Statistics GUI."
61 + einfo "I will now compile console versions only."
62 + fi
63 +}
64 +
65 +pkg_preinst() {
66 + if use daemon || use remote; then
67 + enewgroup p2p
68 + enewuser p2p -1 -1 /home/p2p p2p
69 + fi
70 +}
71 +
72 +src_prepare() {
73 + eapply "${FILESDIR}"/${PN}-2.2.6-fallocate.diff
74 + # Bug 412371
75 + eapply "${FILESDIR}"/${PN}-2.3.1-gcc47.patch
76 +
77 + default
78 +}
79 +
80 +src_configure() {
81 + local myconf
82 +
83 + WX_GTK_VER="2.8"
84 +
85 + if use X; then
86 + einfo "wxGTK with X support will be used"
87 + need-wxwidgets unicode
88 + else
89 + einfo "wxGTK without X support will be used"
90 + need-wxwidgets base-unicode
91 + fi
92 +
93 + if use X ; then
94 + use stats && myconf="${myconf}
95 + --enable-wxcas
96 + --enable-alc"
97 + use remote && myconf="${myconf}
98 + --enable-amule-gui"
99 + else
100 + myconf="
101 + --disable-monolithic
102 + --disable-amule-gui
103 + --disable-wxcas
104 + --disable-alc"
105 + fi
106 +
107 + econf \
108 + --with-denoise-level=0 \
109 + --with-wx-config="${WX_CONFIG}" \
110 + --enable-amulecmd \
111 + $(use_enable debug) \
112 + $(use_enable daemon amule-daemon) \
113 + $(use_enable geoip) \
114 + $(use_enable nls) \
115 + $(use_enable remote webserver) \
116 + $(use_enable stats cas) \
117 + $(use_enable stats alcc) \
118 + $(use_enable upnp) \
119 + ${myconf}
120 +}
121 +
122 +src_install() {
123 + default
124 +
125 + if use daemon; then
126 + newconfd "${FILESDIR}"/amuled.confd amuled
127 + newinitd "${FILESDIR}"/amuled.initd amuled
128 + fi
129 + if use remote; then
130 + newconfd "${FILESDIR}"/amuleweb.confd amuleweb
131 + newinitd "${FILESDIR}"/amuleweb.initd amuleweb
132 + fi
133 +}
134
135 diff --git a/net-p2p/amule/files/amuled.initd b/net-p2p/amule/files/amuled.initd
136 index 082e2ff..1c070e6 100644
137 --- a/net-p2p/amule/files/amuled.initd
138 +++ b/net-p2p/amule/files/amuled.initd
139 @@ -1,5 +1,5 @@
140 -#!/sbin/runscript
141 -# Copyright 1999-2005 Gentoo Foundation
142 +#!/sbin/openrc-run
143 +# Copyright 1999-2016 Gentoo Foundation
144 # Distributed under the terms of the GNU General Public License v2
145 # $Id$
146
147
148 diff --git a/net-p2p/amule/files/amuleweb.initd b/net-p2p/amule/files/amuleweb.initd
149 index 05e7d9f..d091e2a 100644
150 --- a/net-p2p/amule/files/amuleweb.initd
151 +++ b/net-p2p/amule/files/amuleweb.initd
152 @@ -1,5 +1,5 @@
153 -#!/sbin/runscript
154 -# Copyright 1999-2007 Gentoo Foundation
155 +#!/sbin/openrc-run
156 +# Copyright 1999-2016 Gentoo Foundation
157 # Distributed under the terms of the GNU General Public License v2
158 # $Id$