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.2-r1.ebuild
Date: Sun, 06 Jan 2008 16:40:33
Message-Id: E1JBYY1-0006tw-Q4@stork.gentoo.org
1 armin76 08/01/06 16:40:29
2
3 Modified: ChangeLog
4 Added: mldonkey-2.9.2-r1.ebuild
5 Log:
6 Revision bump with a fix from Alexis Ballier to build without ocamlopt
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.198 net-p2p/mldonkey/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.198&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?rev=1.198&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/ChangeLog?r1=1.197&r2=1.198
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v
19 retrieving revision 1.197
20 retrieving revision 1.198
21 diff -u -r1.197 -r1.198
22 --- ChangeLog 6 Jan 2008 16:04:14 -0000 1.197
23 +++ ChangeLog 6 Jan 2008 16:40:29 -0000 1.198
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.197 2008/01/06 16:04:14 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/ChangeLog,v 1.198 2008/01/06 16:40:29 armin76 Exp $
29 +
30 +*mldonkey-2.9.2-r1 (06 Jan 2008)
31 +
32 + 06 Jan 2008; Raúl Porcel <armin76@g.o> +mldonkey-2.9.2-r1.ebuild:
33 + Revision bump with a fix from Alexis Ballier to build without ocamlopt
34
35 06 Jan 2008; Raúl Porcel <armin76@g.o> mldonkey-2.9.2.ebuild:
36 Remove RESTRICT=mirror as discussed with upstream
37
38
39
40 1.1 net-p2p/mldonkey/mldonkey-2.9.2-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/mldonkey-2.9.2-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/mldonkey/mldonkey-2.9.2-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mldonkey-2.9.2-r1.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.2-r1.ebuild,v 1.1 2008/01/06 16:40:29 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 ${myconf} || die "econf failed"
148
149 export OCAMLRUNPARAM="l=256M"
150 emake || die "emake failed"
151
152 if ! use guionly; then
153 emake utils || die "emake utils failed"
154 fi;
155 }
156
157 src_install() {
158 local myext=""
159 use ocamlopt || myext=".byte"
160 use ocamlopt || export STRIP_MASK="*/bin/*"
161 if ! use guionly; then
162 for i in mlnet mld_hash get_range copysources make_torrent subconv; do
163 newbin $i$myext $i || die "failed to install $i"
164 done
165
166 newconfd "${FILESDIR}/mldonkey.confd-2.8" mldonkey
167 fperms 600 /etc/conf.d/mldonkey
168 newinitd "${FILESDIR}/mldonkey.initd" mldonkey
169 fi
170
171 if use gtk; then
172 for i in mlgui mlguistarter; do
173 newbin $i$myext $i || die "failed to install $i"
174 done
175 domenu "${FILESDIR}"/${PN}-gui.desktop
176 doicon "${FILESDIR}"/${PN}.png
177 fi
178
179 if use doc ; then
180 cd "${S}"/distrib
181 dodoc ChangeLog *.txt
182 dohtml *.html
183
184 insinto /usr/share/doc/${PF}/scripts
185 doins kill_mldonkey mldonkey_command mldonkey_previewer make_buginfo
186
187 cd "${S}"/docs
188 dodoc *.txt *.tex *.pdf
189 dohtml *.html
190
191 cd "${S}"/docs/developers
192 dodoc *.txt *.tex
193
194 cd "${S}"/docs/images
195 insinto /usr/share/doc/${PF}/html/images
196 doins *
197 fi
198 }
199
200 pkg_preinst() {
201 if ! use guionly; then
202 enewuser ${MLUSER} -1 -1 /home/p2p users
203 fi
204 }
205
206 pkg_postinst() {
207 if ! use guionly; then
208 echo
209 einfo "If you want to start MLDonkey as a system service, use"
210 einfo "the /etc/init.d/mldonkey script. To control bandwidth, use"
211 einfo "the 'slow' and 'fast' arguments. Be sure to have a look at"
212 einfo "/etc/conf.d/mldonkey also."
213 echo
214 einfo "Attention: 2.6 has changed the inifiles structure, so downgrading"
215 einfo "will be problematic."
216 einfo "User settings (admin) are transferred to users.ini from "
217 einfo "downloads.ini"
218 einfo "Old ini files are automatically converted to the new format"
219 echo
220 else
221 echo
222 einfo "Simply run mlgui to start the chosen MLDonkey gui."
223 einfo "It puts its config files into ~/.mldonkey"
224 fi
225 }
226
227
228
229 --
230 gentoo-commits@l.g.o mailing list