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.1.ebuild
Date: Wed, 26 Sep 2007 16:38:12
Message-Id: E1IaZlf-00015n-9m@stork.gentoo.org
1 armin76 07/09/26 16:29:43
2
3 Modified: ChangeLog
4 Added: mldonkey-2.9.1.ebuild
5 Log:
6 Version bump, bug #193777
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.184 net-p2p/mldonkey/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.184&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.184&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?r1=1.183&r2=1.184
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v
19 retrieving revision 1.183
20 retrieving revision 1.184
21 diff -u -r1.183 -r1.184
22 --- ChangeLog 5 Sep 2007 14:36:23 -0000 1.183
23 +++ ChangeLog 26 Sep 2007 16:29:42 -0000 1.184
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-p2p/mldonkey
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.183 2007/09/05 14:36:23 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.184 2007/09/26 16:29:42 armin76 Exp $
29 +
30 +*mldonkey-2.9.1 (26 Sep 2007)
31 +
32 + 26 Sep 2007; Raúl Porcel <armin76@g.o> +mldonkey-2.9.1.ebuild:
33 + Version bump, bug #193777
34
35 05 Sep 2007; Raúl Porcel <armin76@g.o> -mldonkey-2.9.0.ebuild,
36 -mldonkey-2.9.0-r1.ebuild, -mldonkey-2.9.0-r2.ebuild:
37
38
39
40 1.1 net-p2p/mldonkey/mldonkey-2.9.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/mldonkey-2.9.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/mldonkey-2.9.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mldonkey-2.9.1.ebuild
46 ===================================================================
47 # Copyright 1999-2007 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.1.ebuild,v 1.1 2007/09/26 16:29:42 armin76 Exp $
50
51 inherit flag-o-matic
52
53 IUSE="doc fasttrack gd gnutella gtk guionly magic"
54
55 DESCRIPTION="MLDonkey is a multi-network P2P application written in Ocaml, coming with its own Gtk GUI, web and telnet interface."
56 HOMEPAGE="http://mldonkey.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
62 RESTRICT="mirror"
63
64 RDEPEND="dev-lang/perl
65 guionly? ( >=gnome-base/librsvg-2.4.0
66 >=dev-ml/lablgtk-2.6 )
67 gtk? ( >=gnome-base/librsvg-2.4.0
68 >=dev-ml/lablgtk-2.6 )
69 gd? ( >=media-libs/gd-2.0.28 )
70 magic? ( sys-apps/file )"
71
72 DEPEND="${RDEPEND}
73 >=sys-devel/autoconf-2.58
74 >=dev-lang/ocaml-3.08.3"
75
76 MLUSER="p2p"
77
78 pkg_setup() {
79 if use gtk; then
80 echo ""
81 einfo "If the compile with gui fails, and you have updated Ocaml"
82 einfo "recently, you may have forgotten that you need to run"
83 einfo "/usr/portage/dev-lang/ocaml/files/ocaml-rebuild.sh"
84 einfo "to learn which ebuilds you need to recompile"
85 einfo "each time you update Ocaml to a different version"
86 einfo "see the Ocaml ebuild for details"
87 echo ""
88 fi
89
90 if use gtk && !(built_with_use dev-ml/lablgtk svg); then
91 eerror "dev-ml/lablgtk must be built with the 'svg' USE flag to use the gtk gui"
92 die "Recompile dev-ml/lablgtk with enabled svg USE flag"
93 fi
94
95 if use gd && !(built_with_use media-libs/gd truetype); then
96 eerror "media-libs/gd must be built with 'truetype' to compile"
97 eerror "MLDonkey with gd support"
98 die "Recompile media-libs/gd with enabled truetype USE flag"
99 fi
100 }
101
102 src_unpack() {
103 unpack ${A} && cd "${S}"
104
105 export WANT_AUTOCONF=2.5
106 cd "${S}"/config
107 autoconf
108 cd "${S}"
109 }
110
111 src_compile() {
112 append-ldflags -Wl,-z,noexecstack
113
114 # the dirs are not (yet) used, but it doesn't hurt to specify them anyway
115
116 # onlygui Disable all nets support, build only chosen GUI
117
118 if use gtk || use guionly; then
119 myconf="--enable-gui=newgui2"
120 else
121 myconf="--disable-gui"
122 fi
123
124 if use guionly; then
125 myconf="${myconf} --disable-multinet --disable-donkey"
126 fi
127
128 cd ${S}
129 econf \
130 --sysconfdir=/etc/mldonkey \
131 --sharedstatedir=/var/mldonkey \
132 --localstatedir=/var/mldonkey \
133 --enable-checks \
134 --disable-batch \
135 $(use_enable fasttrack) \
136 $(use_enable gnutella) \
137 $(use_enable gnutella gnutella2) \
138 $(use_enable gd) \
139 $(use_enable magic) \
140 ${myconf} || die "econf failed"
141
142 export OCAMLRUNPARAM="l=256M"
143 emake || die "emake failed"
144
145 if ! use guionly; then
146 emake utils || die "emake utils failed"
147 fi;
148 }
149
150 src_install() {
151 if ! use guionly; then
152 dobin mlnet mld_hash get_range copysources make_torrent subconv \
153 || die "dobin failed"
154
155 newconfd "${FILESDIR}/mldonkey.confd-2.8" mldonkey
156 fperms 600 /etc/conf.d/mldonkey
157 newinitd "${FILESDIR}/mldonkey.initd" mldonkey
158 fi
159
160 if use gtk; then
161 dobin mlgui mlguistarter || die "dobin failed"
162 domenu ${FILESDIR}/${PN}-gui.desktop
163 doicon ${FILESDIR}/${PN}.png
164 fi
165
166 if use doc ; then
167 cd ${S}/distrib
168 dodoc ChangeLog *.txt
169 dohtml *.html
170
171 insinto /usr/share/doc/${PF}/scripts
172 doins kill_mldonkey mldonkey_command mldonkey_previewer make_buginfo
173
174 cd ${S}/docs
175 dodoc *.txt *.tex *.pdf
176 dohtml *.html
177
178 cd ${S}/docs/developers
179 dodoc *.txt *.tex
180
181 cd ${S}/docs/images
182 insinto /usr/share/doc/${PF}/html/images
183 doins *
184 fi
185 }
186
187 pkg_preinst() {
188 if ! use guionly; then
189 enewuser ${MLUSER} -1 -1 /home/p2p users
190 fi
191 }
192
193 pkg_postinst() {
194 if ! use guionly; then
195 echo
196 einfo "If you want to start MLDonkey as a system service, use"
197 einfo "the /etc/init.d/mldonkey script. To control bandwidth, use"
198 einfo "the 'slow' and 'fast' arguments. Be sure to have a look at"
199 einfo "/etc/conf.d/mldonkey also."
200 echo
201 einfo "Attention: 2.6 has changed the inifiles structure, so downgrading"
202 einfo "will be problematic."
203 einfo "User settings (admin) are transferred to users.ini from "
204 einfo "downloads.ini"
205 einfo "Old ini files are automatically converted to the new format"
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 }
213
214
215
216 --
217 gentoo-commits@g.o mailing list