1 |
patrick 13/01/31 08:47:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mldonkey-3.1.3.ebuild |
5 |
Log: |
6 |
Bump for #435430 |
7 |
|
8 |
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.254 net-p2p/mldonkey/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.254&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.254&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/ChangeLog?r1=1.253&r2=1.254 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v |
20 |
retrieving revision 1.253 |
21 |
retrieving revision 1.254 |
22 |
diff -u -r1.253 -r1.254 |
23 |
--- ChangeLog 24 Feb 2012 20:52:54 -0000 1.253 |
24 |
+++ ChangeLog 31 Jan 2013 08:47:15 -0000 1.254 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-p2p/mldonkey |
27 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.253 2012/02/24 20:52:54 ranger Exp $ |
29 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.254 2013/01/31 08:47:15 patrick Exp $ |
31 |
+ |
32 |
+*mldonkey-3.1.3 (31 Jan 2013) |
33 |
+ |
34 |
+ 31 Jan 2013; Patrick Lauer <patrick@g.o> +mldonkey-3.1.3.ebuild: |
35 |
+ Bump for #435430 |
36 |
|
37 |
24 Feb 2012; Brent Baude <ranger@g.o> mldonkey-3.1.0.ebuild: |
38 |
Marking mldonkey-3.1.0 ppc for bug 391035 |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-p2p/mldonkey/mldonkey-3.1.3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/mldonkey-3.1.3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/mldonkey-3.1.3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mldonkey-3.1.3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-3.1.3.ebuild,v 1.1 2013/01/31 08:47:15 patrick Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
WANT_AUTOCONF=2.5 |
55 |
|
56 |
inherit flag-o-matic eutils autotools toolchain-funcs |
57 |
|
58 |
IUSE="bittorrent doc fasttrack gd gnutella gtk guionly magic +ocamlopt" |
59 |
|
60 |
DESCRIPTION="MLDonkey is a multi-network P2P application written in Ocaml, coming with its own Gtk GUI, web and telnet interface." |
61 |
HOMEPAGE="http://mldonkey.sourceforge.net/" |
62 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
67 |
|
68 |
RDEPEND="dev-lang/perl |
69 |
guionly? ( >=gnome-base/librsvg-2.4.0 |
70 |
>=dev-ml/lablgtk-2.6 ) |
71 |
gtk? ( >=gnome-base/librsvg-2.4.0 |
72 |
>=dev-ml/lablgtk-2.6[svg] ) |
73 |
gd? ( >=media-libs/gd-2.0.28[truetype] ) |
74 |
magic? ( sys-apps/file )" |
75 |
|
76 |
DEPEND="${RDEPEND} |
77 |
>=dev-lang/ocaml-3.10.2[ocamlopt?]" |
78 |
|
79 |
MLUSER="p2p" |
80 |
|
81 |
pkg_setup() { |
82 |
if use gtk; then |
83 |
echo "" |
84 |
einfo "If the compile with gui fails, and you have updated Ocaml" |
85 |
einfo "recently, you may have forgotten that you need to run" |
86 |
einfo "/usr/portage/dev-lang/ocaml/files/ocaml-rebuild.sh" |
87 |
einfo "to learn which ebuilds you need to recompile" |
88 |
einfo "each time you update Ocaml to a different version" |
89 |
einfo "see the Ocaml ebuild for details" |
90 |
echo "" |
91 |
fi |
92 |
|
93 |
# dev-lang/ocaml creates its own objects but calls gcc for linking, which will |
94 |
# results in relocations if gcc wants to create a PIE executable |
95 |
if gcc-specs-pie ; then |
96 |
append-ldflags -nopie |
97 |
ewarn "Ocaml generates its own native asm, you're using a PIE compiler" |
98 |
ewarn "We have appended -nopie to ocaml build options" |
99 |
ewarn "because linking an executable with pie while the objects are not pic will not work" |
100 |
fi |
101 |
} |
102 |
|
103 |
src_prepare() { |
104 |
cd "${S}"/config |
105 |
eautoconf |
106 |
cd "${S}" |
107 |
use ocamlopt || sed -i -e "s/ocamlopt/idontwantocamlopt/g" "${S}/config/configure" || die "failed to disable ocamlopt" |
108 |
} |
109 |
|
110 |
src_configure() { |
111 |
# the dirs are not (yet) used, but it doesn't hurt to specify them anyway |
112 |
|
113 |
# onlygui Disable all nets support, build only chosen GUI |
114 |
|
115 |
if use gtk || use guionly; then |
116 |
myconf="--enable-gui=newgui2" |
117 |
else |
118 |
myconf="--disable-gui" |
119 |
fi |
120 |
|
121 |
if use guionly; then |
122 |
myconf="${myconf} --disable-multinet --disable-donkey" |
123 |
fi |
124 |
|
125 |
cd "${S}" |
126 |
|
127 |
local my_extra_libs |
128 |
if use gd; then |
129 |
my_extra_libs="-lpng15" |
130 |
fi |
131 |
|
132 |
econf LIBS="${my_extra_libs}"\ |
133 |
--sysconfdir=/etc/mldonkey \ |
134 |
--sharedstatedir=/var/mldonkey \ |
135 |
--localstatedir=/var/mldonkey \ |
136 |
--enable-checks \ |
137 |
--disable-batch \ |
138 |
$(use_enable bittorrent) \ |
139 |
$(use_enable fasttrack) \ |
140 |
$(use_enable gnutella) \ |
141 |
$(use_enable gnutella gnutella2) \ |
142 |
$(use_enable gd) \ |
143 |
$(use_enable magic) \ |
144 |
${myconf} |
145 |
} |
146 |
|
147 |
src_compile() { |
148 |
export OCAMLRUNPARAM="l=256M" |
149 |
emake || die "emake failed" |
150 |
|
151 |
if ! use guionly; then |
152 |
emake utils || die "emake utils failed" |
153 |
fi; |
154 |
} |
155 |
|
156 |
src_install() { |
157 |
local myext="" |
158 |
use ocamlopt || myext=".byte" |
159 |
use ocamlopt || export STRIP_MASK="*/bin/*" |
160 |
if ! use guionly; then |
161 |
for i in mlnet mld_hash get_range copysources subconv; do |
162 |
newbin $i$myext $i || die "failed to install $i" |
163 |
done |
164 |
use bittorrent && newbin make_torrent$myext make_torrent |
165 |
|
166 |
newconfd "${FILESDIR}/mldonkey.confd-2.8" mldonkey |
167 |
fperms 600 /etc/conf.d/mldonkey |
168 |
newinitd "${FILESDIR}/mldonkey.initd" mldonkey |
169 |
fi |
170 |
|
171 |
if use gtk; then |
172 |
for i in mlgui mlguistarter; do |
173 |
newbin $i$myext $i || die "failed to install $i" |
174 |
done |
175 |
make_desktop_entry mlgui "MLDonkey GUI" mldonkey "Network;P2P" |
176 |
newicon "${S}"/packages/rpm/mldonkey-icon-48.png ${PN}.png |
177 |
fi |
178 |
|
179 |
if use doc ; then |
180 |
cd "${S}"/distrib |
181 |
dodoc ChangeLog *.txt |
182 |
|
183 |
insinto /usr/share/doc/${PF}/scripts |
184 |
doins kill_mldonkey mldonkey_command mldonkey_previewer make_buginfo |
185 |
|
186 |
cd "${S}"/docs |
187 |
dodoc *.txt *.tex *.pdf |
188 |
dohtml *.html |
189 |
|
190 |
cd "${S}"/docs/developers |
191 |
dodoc *.txt *.tex |
192 |
|
193 |
cd "${S}"/docs/images |
194 |
insinto /usr/share/doc/${PF}/html/images |
195 |
doins * |
196 |
fi |
197 |
} |
198 |
|
199 |
pkg_preinst() { |
200 |
if ! use guionly; then |
201 |
enewuser ${MLUSER} -1 -1 /home/p2p users |
202 |
fi |
203 |
} |
204 |
|
205 |
pkg_postinst() { |
206 |
if ! use guionly; then |
207 |
echo |
208 |
einfo "If you want to start MLDonkey as a system service, use" |
209 |
einfo "the /etc/init.d/mldonkey script. To control bandwidth, use" |
210 |
einfo "the 'slow' and 'fast' arguments. Be sure to have a look at" |
211 |
einfo "/etc/conf.d/mldonkey also." |
212 |
echo |
213 |
else |
214 |
echo |
215 |
einfo "Simply run mlgui to start the chosen MLDonkey gui." |
216 |
einfo "It puts its config files into ~/.mldonkey" |
217 |
fi |
218 |
} |