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.5.ebuild
Date: Mon, 05 May 2008 10:16:18
Message-Id: E1Jsxjz-0001mY-T7@stork.gentoo.org
1 armin76 08/05/05 10:16:15
2
3 Modified: ChangeLog
4 Added: mldonkey-2.9.5.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.210 net-p2p/mldonkey/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.210&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.210&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?r1=1.209&r2=1.210
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v
19 retrieving revision 1.209
20 retrieving revision 1.210
21 diff -u -r1.209 -r1.210
22 --- ChangeLog 26 Apr 2008 18:44:54 -0000 1.209
23 +++ ChangeLog 5 May 2008 10:16:15 -0000 1.210
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.209 2008/04/26 18:44:54 nixnut Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.210 2008/05/05 10:16:15 armin76 Exp $
29 +
30 +*mldonkey-2.9.5 (05 May 2008)
31 +
32 + 05 May 2008; Raúl Porcel <armin76@g.o> +mldonkey-2.9.5.ebuild:
33 + Version bump
34
35 26 Apr 2008; nixnut <nixnut@g.o> mldonkey-2.9.4.ebuild:
36 Stable on ppc wrt bug 219416
37
38
39
40 1.1 net-p2p/mldonkey/mldonkey-2.9.5.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/mldonkey-2.9.5.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/mldonkey-2.9.5.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mldonkey-2.9.5.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.5.ebuild,v 1.1 2008/05/05 10:16:15 armin76 Exp $
50
51 WANT_AUTOCONF=2.5
52
53 inherit flag-o-matic eutils autotools
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 }
110
111 src_unpack() {
112 unpack ${A} && cd "${S}"
113
114 cd "${S}"/config
115 eautoconf
116 cd "${S}"
117 use ocamlopt || sed -i -e "s/ocamlopt/idontwantocamlopt/g" "${S}/config/configure" || die "failed to disable ocamlopt"
118 }
119
120 src_compile() {
121 # the dirs are not (yet) used, but it doesn't hurt to specify them anyway
122
123 # onlygui Disable all nets support, build only chosen GUI
124
125 if use gtk || use guionly; then
126 myconf="--enable-gui=newgui2"
127 else
128 myconf="--disable-gui"
129 fi
130
131 if use guionly; then
132 myconf="${myconf} --disable-multinet --disable-donkey"
133 fi
134
135 cd "${S}"
136 econf \
137 --sysconfdir=/etc/mldonkey \
138 --sharedstatedir=/var/mldonkey \
139 --localstatedir=/var/mldonkey \
140 --enable-checks \
141 --disable-batch \
142 $(use_enable fasttrack) \
143 $(use_enable gnutella) \
144 $(use_enable gnutella gnutella2) \
145 $(use_enable gd) \
146 $(use_enable magic) \
147 --enable-ocamlver=3.10 \
148 ${myconf} || die "econf failed"
149
150 export OCAMLRUNPARAM="l=256M"
151 emake || die "emake failed"
152
153 if ! use guionly; then
154 emake utils || die "emake utils failed"
155 fi;
156 }
157
158 src_install() {
159 local myext=""
160 use ocamlopt || myext=".byte"
161 use ocamlopt || export STRIP_MASK="*/bin/*"
162 if ! use guionly; then
163 for i in mlnet mld_hash get_range copysources make_torrent subconv; do
164 newbin $i$myext $i || die "failed to install $i"
165 done
166
167 newconfd "${FILESDIR}/mldonkey.confd-2.8" mldonkey
168 fperms 600 /etc/conf.d/mldonkey
169 newinitd "${FILESDIR}/mldonkey.initd" mldonkey
170 fi
171
172 if use gtk; then
173 for i in mlgui mlguistarter; do
174 newbin $i$myext $i || die "failed to install $i"
175 done
176 make_desktop_entry mlgui "MLDonkey GUI" mldonkey "Network;P2P"
177 newicon "${S}"/packages/rpm/mldonkey-icon-48.png ${PN}.png
178 fi
179
180 if use doc ; then
181 cd "${S}"/distrib
182 dodoc ChangeLog *.txt
183 dohtml *.html
184
185 insinto /usr/share/doc/${PF}/scripts
186 doins kill_mldonkey mldonkey_command mldonkey_previewer make_buginfo
187
188 cd "${S}"/docs
189 dodoc *.txt *.tex *.pdf
190 dohtml *.html
191
192 cd "${S}"/docs/developers
193 dodoc *.txt *.tex
194
195 cd "${S}"/docs/images
196 insinto /usr/share/doc/${PF}/html/images
197 doins *
198 fi
199 }
200
201 pkg_preinst() {
202 if ! use guionly; then
203 enewuser ${MLUSER} -1 -1 /home/p2p users
204 fi
205 }
206
207 pkg_postinst() {
208 if ! use guionly; then
209 echo
210 einfo "If you want to start MLDonkey as a system service, use"
211 einfo "the /etc/init.d/mldonkey script. To control bandwidth, use"
212 einfo "the 'slow' and 'fast' arguments. Be sure to have a look at"
213 einfo "/etc/conf.d/mldonkey also."
214 echo
215 einfo "Attention: 2.6 has changed the inifiles structure, so downgrading"
216 einfo "will be problematic."
217 einfo "User settings (admin) are transferred to users.ini from "
218 einfo "downloads.ini"
219 einfo "Old ini files are automatically converted to the new format"
220 echo
221 else
222 echo
223 einfo "Simply run mlgui to start the chosen MLDonkey gui."
224 einfo "It puts its config files into ~/.mldonkey"
225 fi
226 }
227
228
229
230 --
231 gentoo-commits@l.g.o mailing list