1 |
armin76 08/08/05 18:09:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mldonkey-2.9.6.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.218 net-p2p/mldonkey/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.218&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.218&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?r1=1.217&r2=1.218 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v |
19 |
retrieving revision 1.217 |
20 |
retrieving revision 1.218 |
21 |
diff -u -r1.217 -r1.218 |
22 |
--- ChangeLog 3 Jul 2008 19:15:56 -0000 1.217 |
23 |
+++ ChangeLog 5 Aug 2008 18:09:54 -0000 1.218 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-p2p/mldonkey |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.217 2008/07/03 19:15:56 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.218 2008/08/05 18:09:54 armin76 Exp $ |
29 |
+ |
30 |
+*mldonkey-2.9.6 (05 Aug 2008) |
31 |
+ |
32 |
+ 05 Aug 2008; Raúl Porcel <armin76@g.o> +mldonkey-2.9.6.ebuild: |
33 |
+ Version bump |
34 |
|
35 |
03 Jul 2008; Raúl Porcel <armin76@g.o> -mldonkey-2.9.4.ebuild: |
36 |
old |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-p2p/mldonkey/mldonkey-2.9.6.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/mldonkey-2.9.6.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/mldonkey-2.9.6.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: mldonkey-2.9.6.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-2.9.6.ebuild,v 1.1 2008/08/05 18:09:54 armin76 Exp $ |
50 |
|
51 |
WANT_AUTOCONF=2.5 |
52 |
|
53 |
inherit flag-o-matic eutils autotools toolchain-funcs |
54 |
|
55 |
EAPI="1" |
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 ) |
72 |
gd? ( >=media-libs/gd-2.0.28 ) |
73 |
magic? ( sys-apps/file )" |
74 |
|
75 |
DEPEND="${RDEPEND} |
76 |
>=dev-lang/ocaml-3.08.3 |
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 |
if use gtk && ! built_with_use dev-ml/lablgtk svg; then |
94 |
eerror "dev-ml/lablgtk must be built with the 'svg' USE flag to use the gtk gui" |
95 |
die "Recompile dev-ml/lablgtk with enabled svg USE flag" |
96 |
fi |
97 |
|
98 |
if use gd && ! built_with_use media-libs/gd truetype; then |
99 |
eerror "media-libs/gd must be built with 'truetype' to compile" |
100 |
eerror "MLDonkey with gd support" |
101 |
die "Recompile media-libs/gd with enabled truetype USE flag" |
102 |
fi |
103 |
if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then |
104 |
eerror "In order to build ${PN} with native code support from ocaml" |
105 |
eerror "You first need to have a native code ocaml compiler." |
106 |
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
107 |
die "Please install ocaml with ocamlopt useflag" |
108 |
fi |
109 |
# dev-lang/ocaml creates its own objects but calls gcc for linking, which will |
110 |
# results in relocations if gcc wants to create a PIE executable |
111 |
if gcc-specs-pie ; then |
112 |
append-ldflags -nopie |
113 |
ewarn "Ocaml generates its own native asm, you're using a PIE compiler" |
114 |
ewarn "We have appended -nopie to ocaml build options" |
115 |
ewarn "because linking an executable with pie while the objects are not pic will not work" |
116 |
fi |
117 |
} |
118 |
|
119 |
src_unpack() { |
120 |
unpack ${A} && cd "${S}" |
121 |
|
122 |
cd "${S}"/config |
123 |
eautoconf |
124 |
cd "${S}" |
125 |
use ocamlopt || sed -i -e "s/ocamlopt/idontwantocamlopt/g" "${S}/config/configure" || die "failed to disable ocamlopt" |
126 |
} |
127 |
|
128 |
src_compile() { |
129 |
# the dirs are not (yet) used, but it doesn't hurt to specify them anyway |
130 |
|
131 |
# onlygui Disable all nets support, build only chosen GUI |
132 |
|
133 |
if use gtk || use guionly; then |
134 |
myconf="--enable-gui=newgui2" |
135 |
else |
136 |
myconf="--disable-gui" |
137 |
fi |
138 |
|
139 |
if use guionly; then |
140 |
myconf="${myconf} --disable-multinet --disable-donkey" |
141 |
fi |
142 |
|
143 |
cd "${S}" |
144 |
econf \ |
145 |
--sysconfdir=/etc/mldonkey \ |
146 |
--sharedstatedir=/var/mldonkey \ |
147 |
--localstatedir=/var/mldonkey \ |
148 |
--enable-checks \ |
149 |
--disable-batch \ |
150 |
$(use_enable fasttrack) \ |
151 |
$(use_enable gnutella) \ |
152 |
$(use_enable gnutella gnutella2) \ |
153 |
$(use_enable gd) \ |
154 |
$(use_enable magic) \ |
155 |
--enable-ocamlver=3.10 \ |
156 |
${myconf} || die "econf failed" |
157 |
|
158 |
export OCAMLRUNPARAM="l=256M" |
159 |
emake || die "emake failed" |
160 |
|
161 |
if ! use guionly; then |
162 |
emake utils || die "emake utils failed" |
163 |
fi; |
164 |
} |
165 |
|
166 |
src_install() { |
167 |
local myext="" |
168 |
use ocamlopt || myext=".byte" |
169 |
use ocamlopt || export STRIP_MASK="*/bin/*" |
170 |
if ! use guionly; then |
171 |
for i in mlnet mld_hash get_range copysources make_torrent subconv; do |
172 |
newbin $i$myext $i || die "failed to install $i" |
173 |
done |
174 |
|
175 |
newconfd "${FILESDIR}/mldonkey.confd-2.8" mldonkey |
176 |
fperms 600 /etc/conf.d/mldonkey |
177 |
newinitd "${FILESDIR}/mldonkey.initd" mldonkey |
178 |
fi |
179 |
|
180 |
if use gtk; then |
181 |
for i in mlgui mlguistarter; do |
182 |
newbin $i$myext $i || die "failed to install $i" |
183 |
done |
184 |
make_desktop_entry mlgui "MLDonkey GUI" mldonkey "Network;P2P" |
185 |
newicon "${S}"/packages/rpm/mldonkey-icon-48.png ${PN}.png |
186 |
fi |
187 |
|
188 |
if use doc ; then |
189 |
cd "${S}"/distrib |
190 |
dodoc ChangeLog *.txt |
191 |
dohtml *.html |
192 |
|
193 |
insinto /usr/share/doc/${PF}/scripts |
194 |
doins kill_mldonkey mldonkey_command mldonkey_previewer make_buginfo |
195 |
|
196 |
cd "${S}"/docs |
197 |
dodoc *.txt *.tex *.pdf |
198 |
dohtml *.html |
199 |
|
200 |
cd "${S}"/docs/developers |
201 |
dodoc *.txt *.tex |
202 |
|
203 |
cd "${S}"/docs/images |
204 |
insinto /usr/share/doc/${PF}/html/images |
205 |
doins * |
206 |
fi |
207 |
} |
208 |
|
209 |
pkg_preinst() { |
210 |
if ! use guionly; then |
211 |
enewuser ${MLUSER} -1 -1 /home/p2p users |
212 |
fi |
213 |
} |
214 |
|
215 |
pkg_postinst() { |
216 |
if ! use guionly; then |
217 |
echo |
218 |
einfo "If you want to start MLDonkey as a system service, use" |
219 |
einfo "the /etc/init.d/mldonkey script. To control bandwidth, use" |
220 |
einfo "the 'slow' and 'fast' arguments. Be sure to have a look at" |
221 |
einfo "/etc/conf.d/mldonkey also." |
222 |
echo |
223 |
einfo "Attention: 2.6 has changed the inifiles structure, so downgrading" |
224 |
einfo "will be problematic." |
225 |
einfo "User settings (admin) are transferred to users.ini from " |
226 |
einfo "downloads.ini" |
227 |
einfo "Old ini files are automatically converted to the new format" |
228 |
echo |
229 |
else |
230 |
echo |
231 |
einfo "Simply run mlgui to start the chosen MLDonkey gui." |
232 |
einfo "It puts its config files into ~/.mldonkey" |
233 |
fi |
234 |
} |