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: mldonkey-3.0.7.ebuild ChangeLog
Date: Sat, 07 May 2011 18:23:33
Message-Id: 20110507182324.5831820054@flycatcher.gentoo.org
1 armin76 11/05/07 18:23:24
2
3 Modified: ChangeLog
4 Added: mldonkey-3.0.7.ebuild
5 Log:
6 Version bump wrt #352675
7
8 (Portage version: 2.1.9.47/cvs/Linux ia64)
9
10 Revision Changes Path
11 1.239 net-p2p/mldonkey/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.239&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.239&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/ChangeLog?r1=1.238&r2=1.239
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v
20 retrieving revision 1.238
21 retrieving revision 1.239
22 diff -u -r1.238 -r1.239
23 --- ChangeLog 5 Jan 2011 16:13:55 -0000 1.238
24 +++ ChangeLog 7 May 2011 18:23:24 -0000 1.239
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-p2p/mldonkey
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.238 2011/01/05 16:13:55 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.239 2011/05/07 18:23:24 armin76 Exp $
30 +
31 +*mldonkey-3.0.7 (07 May 2011)
32 +
33 + 07 May 2011; Raúl Porcel <armin76@g.o> +mldonkey-3.0.7.ebuild:
34 + Version bump wrt #352675
35
36 05 Jan 2011; Markos Chandras <hwoarang@g.o> mldonkey-3.0.5.ebuild:
37 Stable on amd64 wrt bug #346189
38
39
40
41 1.1 net-p2p/mldonkey/mldonkey-3.0.7.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/mldonkey-3.0.7.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/mldonkey/mldonkey-3.0.7.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mldonkey-3.0.7.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.7.ebuild,v 1.1 2011/05/07 18:23:24 armin76 Exp $
51
52 EAPI="2"
53 WANT_AUTOCONF=2.5
54
55 inherit flag-o-matic eutils autotools toolchain-funcs
56
57 IUSE="bittorrent 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
78 MLUSER="p2p"
79
80 pkg_setup() {
81 if use gtk; then
82 echo ""
83 einfo "If the compile with gui fails, and you have updated Ocaml"
84 einfo "recently, you may have forgotten that you need to run"
85 einfo "/usr/portage/dev-lang/ocaml/files/ocaml-rebuild.sh"
86 einfo "to learn which ebuilds you need to recompile"
87 einfo "each time you update Ocaml to a different version"
88 einfo "see the Ocaml ebuild for details"
89 echo ""
90 fi
91
92 # dev-lang/ocaml creates its own objects but calls gcc for linking, which will
93 # results in relocations if gcc wants to create a PIE executable
94 if gcc-specs-pie ; then
95 append-ldflags -nopie
96 ewarn "Ocaml generates its own native asm, you're using a PIE compiler"
97 ewarn "We have appended -nopie to ocaml build options"
98 ewarn "because linking an executable with pie while the objects are not pic will not work"
99 fi
100 }
101
102 src_prepare() {
103 cd "${S}"/config
104 eautoconf
105 cd "${S}"
106 use ocamlopt || sed -i -e "s/ocamlopt/idontwantocamlopt/g" "${S}/config/configure" || die "failed to disable ocamlopt"
107 }
108
109 src_configure() {
110 # the dirs are not (yet) used, but it doesn't hurt to specify them anyway
111
112 # onlygui Disable all nets support, build only chosen GUI
113
114 if use gtk || use guionly; then
115 myconf="--enable-gui=newgui2"
116 else
117 myconf="--disable-gui"
118 fi
119
120 if use guionly; then
121 myconf="${myconf} --disable-multinet --disable-donkey"
122 fi
123
124 cd "${S}"
125 econf \
126 --sysconfdir=/etc/mldonkey \
127 --sharedstatedir=/var/mldonkey \
128 --localstatedir=/var/mldonkey \
129 --enable-checks \
130 --disable-batch \
131 $(use_enable bittorrent) \
132 $(use_enable fasttrack) \
133 $(use_enable gnutella) \
134 $(use_enable gnutella gnutella2) \
135 $(use_enable gd) \
136 $(use_enable magic) \
137 ${myconf}
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 subconv; do
155 newbin $i$myext $i || die "failed to install $i"
156 done
157 use bittorrent && newbin make_torrent$myext make_torrent
158
159 newconfd "${FILESDIR}/mldonkey.confd-2.8" mldonkey
160 fperms 600 /etc/conf.d/mldonkey
161 newinitd "${FILESDIR}/mldonkey.initd" mldonkey
162 fi
163
164 if use gtk; then
165 for i in mlgui mlguistarter; do
166 newbin $i$myext $i || die "failed to install $i"
167 done
168 make_desktop_entry mlgui "MLDonkey GUI" mldonkey "Network;P2P"
169 newicon "${S}"/packages/rpm/mldonkey-icon-48.png ${PN}.png
170 fi
171
172 if use doc ; then
173 cd "${S}"/distrib
174 dodoc ChangeLog *.txt
175 dohtml *.html
176
177 insinto /usr/share/doc/${PF}/scripts
178 doins kill_mldonkey mldonkey_command mldonkey_previewer make_buginfo
179
180 cd "${S}"/docs
181 dodoc *.txt *.tex *.pdf
182 dohtml *.html
183
184 cd "${S}"/docs/developers
185 dodoc *.txt *.tex
186
187 cd "${S}"/docs/images
188 insinto /usr/share/doc/${PF}/html/images
189 doins *
190 fi
191 }
192
193 pkg_preinst() {
194 if ! use guionly; then
195 enewuser ${MLUSER} -1 -1 /home/p2p users
196 fi
197 }
198
199 pkg_postinst() {
200 if ! use guionly; then
201 echo
202 einfo "If you want to start MLDonkey as a system service, use"
203 einfo "the /etc/init.d/mldonkey script. To control bandwidth, use"
204 einfo "the 'slow' and 'fast' arguments. Be sure to have a look at"
205 einfo "/etc/conf.d/mldonkey also."
206 echo
207 else
208 echo
209 einfo "Simply run mlgui to start the chosen MLDonkey gui."
210 einfo "It puts its config files into ~/.mldonkey"
211 fi
212 }