1 |
armin76 10/09/29 13:35:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mldonkey-3.0.5.ebuild |
5 |
Log: |
6 |
Version bump wrt #298982 |
7 |
(Portage version: 2.1.8.3/cvs/Linux ia64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.232 net-p2p/mldonkey/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.232&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.232&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/ChangeLog?r1=1.231&r2=1.232 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v |
19 |
retrieving revision 1.231 |
20 |
retrieving revision 1.232 |
21 |
diff -u -r1.231 -r1.232 |
22 |
--- ChangeLog 9 Nov 2009 18:34:32 -0000 1.231 |
23 |
+++ ChangeLog 29 Sep 2010 13:35:02 -0000 1.232 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-p2p/mldonkey |
26 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.231 2009/11/09 18:34:32 fauli Exp $ |
28 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.232 2010/09/29 13:35:02 armin76 Exp $ |
30 |
+ |
31 |
+*mldonkey-3.0.5 (29 Sep 2010) |
32 |
+ |
33 |
+ 29 Sep 2010; Raúl Porcel <armin76@g.o> +mldonkey-3.0.5.ebuild: |
34 |
+ Version bump wrt #298982 |
35 |
|
36 |
09 Nov 2009; Christian Faulhammer <fauli@g.o> |
37 |
-mldonkey-2.9.6.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-p2p/mldonkey/mldonkey-3.0.5.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/mldonkey-3.0.5.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/mldonkey-3.0.5.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mldonkey-3.0.5.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-3.0.5.ebuild,v 1.1 2010/09/29 13:35:02 armin76 Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
WANT_AUTOCONF=2.5 |
54 |
|
55 |
inherit flag-o-matic eutils autotools toolchain-funcs |
56 |
|
57 |
IUSE="doc fasttrack gd gnutella gtk guionly magic +ocamlopt" |
58 |
|
59 |
DESCRIPTION="MLDonkey is a multi-network P2P application written in Ocaml, coming with its own Gtk GUI, web and telnet interface." |
60 |
HOMEPAGE="http://mldonkey.sourceforge.net/" |
61 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
66 |
|
67 |
RDEPEND="dev-lang/perl |
68 |
guionly? ( >=gnome-base/librsvg-2.4.0 |
69 |
>=dev-ml/lablgtk-2.6 ) |
70 |
gtk? ( >=gnome-base/librsvg-2.4.0 |
71 |
>=dev-ml/lablgtk-2.6[svg] ) |
72 |
gd? ( >=media-libs/gd-2.0.28[truetype] ) |
73 |
magic? ( sys-apps/file )" |
74 |
|
75 |
DEPEND="${RDEPEND} |
76 |
>=dev-lang/ocaml-3.10.2[ocamlopt?] |
77 |
sys-apps/sed" |
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 |
econf \ |
127 |
--sysconfdir=/etc/mldonkey \ |
128 |
--sharedstatedir=/var/mldonkey \ |
129 |
--localstatedir=/var/mldonkey \ |
130 |
--enable-checks \ |
131 |
--disable-batch \ |
132 |
$(use_enable fasttrack) \ |
133 |
$(use_enable gnutella) \ |
134 |
$(use_enable gnutella gnutella2) \ |
135 |
$(use_enable gd) \ |
136 |
$(use_enable magic) \ |
137 |
${myconf} || die "econf failed" |
138 |
} |
139 |
|
140 |
src_compile() { |
141 |
export OCAMLRUNPARAM="l=256M" |
142 |
emake || die "emake failed" |
143 |
|
144 |
if ! use guionly; then |
145 |
emake utils || die "emake utils failed" |
146 |
fi; |
147 |
} |
148 |
|
149 |
src_install() { |
150 |
local myext="" |
151 |
use ocamlopt || myext=".byte" |
152 |
use ocamlopt || export STRIP_MASK="*/bin/*" |
153 |
if ! use guionly; then |
154 |
for i in mlnet mld_hash get_range copysources make_torrent subconv; do |
155 |
newbin $i$myext $i || die "failed to install $i" |
156 |
done |
157 |
|
158 |
newconfd "${FILESDIR}/mldonkey.confd-2.8" mldonkey |
159 |
fperms 600 /etc/conf.d/mldonkey |
160 |
newinitd "${FILESDIR}/mldonkey.initd" mldonkey |
161 |
fi |
162 |
|
163 |
if use gtk; then |
164 |
for i in mlgui mlguistarter; do |
165 |
newbin $i$myext $i || die "failed to install $i" |
166 |
done |
167 |
make_desktop_entry mlgui "MLDonkey GUI" mldonkey "Network;P2P" |
168 |
newicon "${S}"/packages/rpm/mldonkey-icon-48.png ${PN}.png |
169 |
fi |
170 |
|
171 |
if use doc ; then |
172 |
cd "${S}"/distrib |
173 |
dodoc ChangeLog *.txt |
174 |
dohtml *.html |
175 |
|
176 |
insinto /usr/share/doc/${PF}/scripts |
177 |
doins kill_mldonkey mldonkey_command mldonkey_previewer make_buginfo |
178 |
|
179 |
cd "${S}"/docs |
180 |
dodoc *.txt *.tex *.pdf |
181 |
dohtml *.html |
182 |
|
183 |
cd "${S}"/docs/developers |
184 |
dodoc *.txt *.tex |
185 |
|
186 |
cd "${S}"/docs/images |
187 |
insinto /usr/share/doc/${PF}/html/images |
188 |
doins * |
189 |
fi |
190 |
} |
191 |
|
192 |
pkg_preinst() { |
193 |
if ! use guionly; then |
194 |
enewuser ${MLUSER} -1 -1 /home/p2p users |
195 |
fi |
196 |
} |
197 |
|
198 |
pkg_postinst() { |
199 |
if ! use guionly; then |
200 |
echo |
201 |
einfo "If you want to start MLDonkey as a system service, use" |
202 |
einfo "the /etc/init.d/mldonkey script. To control bandwidth, use" |
203 |
einfo "the 'slow' and 'fast' arguments. Be sure to have a look at" |
204 |
einfo "/etc/conf.d/mldonkey also." |
205 |
echo |
206 |
else |
207 |
echo |
208 |
einfo "Simply run mlgui to start the chosen MLDonkey gui." |
209 |
einfo "It puts its config files into ~/.mldonkey" |
210 |
fi |
211 |
} |