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