1 |
commit: 8db67001bf5ef94c6f7b0819e447323f940ce963 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 17:10:17 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 17:21:39 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8db67001 |
7 |
|
8 |
net-p2p/mldonkey: remove old version |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-p2p/mldonkey/mldonkey-3.1.5.ebuild | 173 --------------------------------- |
13 |
1 file changed, 173 deletions(-) |
14 |
|
15 |
diff --git a/net-p2p/mldonkey/mldonkey-3.1.5.ebuild b/net-p2p/mldonkey/mldonkey-3.1.5.ebuild |
16 |
deleted file mode 100644 |
17 |
index b0eeb03..0000000 |
18 |
--- a/net-p2p/mldonkey/mldonkey-3.1.5.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,173 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI="5" |
26 |
-WANT_AUTOCONF=2.5 |
27 |
- |
28 |
-inherit flag-o-matic eutils autotools toolchain-funcs user |
29 |
- |
30 |
-IUSE="bittorrent doc fasttrack gd gnutella gtk guionly magic +ocamlopt" |
31 |
- |
32 |
-DESCRIPTION="A multi-network P2P application written in Ocaml, with its own Gtk GUI, web and telnet interface" |
33 |
-HOMEPAGE="http://mldonkey.sourceforge.net/" |
34 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
35 |
- |
36 |
-LICENSE="GPL-2" |
37 |
-SLOT="0" |
38 |
-KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ppc ~sparc x86 ~x86-fbsd" |
39 |
- |
40 |
-RDEPEND="dev-lang/perl |
41 |
- dev-ml/camlp4:= |
42 |
- guionly? ( >=gnome-base/librsvg-2.4.0 |
43 |
- >=dev-ml/lablgtk-2.6 ) |
44 |
- gtk? ( >=gnome-base/librsvg-2.4.0 |
45 |
- >=dev-ml/lablgtk-2.6[svg] ) |
46 |
- gd? ( >=media-libs/gd-2.0.28[truetype] ) |
47 |
- magic? ( sys-apps/file )" |
48 |
- |
49 |
-DEPEND="${RDEPEND} |
50 |
- >=dev-lang/ocaml-3.10.2[ocamlopt?]" |
51 |
- |
52 |
-MLUSER="p2p" |
53 |
- |
54 |
-pkg_setup() { |
55 |
- if use gtk; then |
56 |
- echo "" |
57 |
- einfo "If the compile with gui fails, and you have updated Ocaml" |
58 |
- einfo "recently, you may have forgotten that you need to run" |
59 |
- einfo "/usr/portage/dev-lang/ocaml/files/ocaml-rebuild.sh" |
60 |
- einfo "to learn which ebuilds you need to recompile" |
61 |
- einfo "each time you update Ocaml to a different version" |
62 |
- einfo "see the Ocaml ebuild for details" |
63 |
- echo "" |
64 |
- fi |
65 |
- |
66 |
- # dev-lang/ocaml creates its own objects but calls gcc for linking, which will |
67 |
- # results in relocations if gcc wants to create a PIE executable |
68 |
- if gcc-specs-pie ; then |
69 |
- append-ldflags -nopie |
70 |
- ewarn "Ocaml generates its own native asm, you're using a PIE compiler" |
71 |
- ewarn "We have appended -nopie to ocaml build options" |
72 |
- ewarn "because linking an executable with pie while the objects are not pic will not work" |
73 |
- fi |
74 |
-} |
75 |
- |
76 |
-src_prepare() { |
77 |
- cd "${S}"/config |
78 |
- eautoconf |
79 |
- cd "${S}" |
80 |
- use ocamlopt || sed -i -e "s/ocamlopt/idontwantocamlopt/g" "${S}/config/configure" || die "failed to disable ocamlopt" |
81 |
- epatch "${FILESDIR}/ocaml4.patch" |
82 |
- has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/ocaml-4.03.patch" |
83 |
-} |
84 |
- |
85 |
-src_configure() { |
86 |
- # the dirs are not (yet) used, but it doesn't hurt to specify them anyway |
87 |
- |
88 |
- # onlygui Disable all nets support, build only chosen GUI |
89 |
- |
90 |
- if use gtk || use guionly; then |
91 |
- myconf="--enable-gui=newgui2" |
92 |
- else |
93 |
- myconf="--disable-gui" |
94 |
- fi |
95 |
- |
96 |
- if use guionly; then |
97 |
- myconf="${myconf} --disable-multinet --disable-donkey" |
98 |
- fi |
99 |
- |
100 |
- cd "${S}" |
101 |
- |
102 |
- local my_extra_libs |
103 |
- if use gd; then |
104 |
- my_extra_libs="-lpng" |
105 |
- fi |
106 |
- |
107 |
- econf LIBS="${my_extra_libs}"\ |
108 |
- --sysconfdir=/etc/mldonkey \ |
109 |
- --sharedstatedir=/var/mldonkey \ |
110 |
- --localstatedir=/var/mldonkey \ |
111 |
- --enable-checks \ |
112 |
- --disable-batch \ |
113 |
- $(use_enable bittorrent) \ |
114 |
- $(use_enable fasttrack) \ |
115 |
- $(use_enable gnutella) \ |
116 |
- $(use_enable gnutella gnutella2) \ |
117 |
- $(use_enable gd) \ |
118 |
- $(use_enable magic) \ |
119 |
- ${myconf} |
120 |
-} |
121 |
- |
122 |
-src_compile() { |
123 |
- export OCAMLRUNPARAM="l=256M" |
124 |
- emake |
125 |
- |
126 |
- if ! use guionly; then |
127 |
- emake utils |
128 |
- fi; |
129 |
-} |
130 |
- |
131 |
-src_install() { |
132 |
- local myext="" |
133 |
- use ocamlopt || myext=".byte" |
134 |
- use ocamlopt || export STRIP_MASK="*/bin/*" |
135 |
- if ! use guionly; then |
136 |
- for i in mlnet mld_hash get_range copysources subconv; do |
137 |
- newbin $i$myext $i |
138 |
- done |
139 |
- use bittorrent && newbin make_torrent$myext make_torrent |
140 |
- |
141 |
- newconfd "${FILESDIR}/mldonkey.confd-2.8" mldonkey |
142 |
- fperms 600 /etc/conf.d/mldonkey |
143 |
- newinitd "${FILESDIR}/mldonkey.initd" mldonkey |
144 |
- fi |
145 |
- |
146 |
- if use gtk; then |
147 |
- for i in mlgui mlguistarter; do |
148 |
- newbin $i$myext $i |
149 |
- done |
150 |
- make_desktop_entry mlgui "MLDonkey GUI" mldonkey "Network;P2P" |
151 |
- newicon "${S}"/packages/rpm/mldonkey-icon-48.png ${PN}.png |
152 |
- fi |
153 |
- |
154 |
- if use doc ; then |
155 |
- cd "${S}"/distrib |
156 |
- dodoc ChangeLog *.txt |
157 |
- |
158 |
- insinto /usr/share/doc/${PF}/scripts |
159 |
- doins kill_mldonkey mldonkey_command mldonkey_previewer make_buginfo |
160 |
- |
161 |
- cd "${S}"/docs |
162 |
- dodoc *.txt *.tex *.pdf |
163 |
- dohtml *.html |
164 |
- |
165 |
- cd "${S}"/docs/developers |
166 |
- dodoc *.txt *.tex |
167 |
- |
168 |
- cd "${S}"/docs/images |
169 |
- insinto /usr/share/doc/${PF}/html/images |
170 |
- doins * |
171 |
- fi |
172 |
-} |
173 |
- |
174 |
-pkg_preinst() { |
175 |
- if ! use guionly; then |
176 |
- enewuser ${MLUSER} -1 -1 /home/p2p users |
177 |
- fi |
178 |
-} |
179 |
- |
180 |
-pkg_postinst() { |
181 |
- if ! use guionly; then |
182 |
- echo |
183 |
- einfo "If you want to start MLDonkey as a system service, use" |
184 |
- einfo "the /etc/init.d/mldonkey script. To control bandwidth, use" |
185 |
- einfo "the 'slow' and 'fast' arguments. Be sure to have a look at" |
186 |
- einfo "/etc/conf.d/mldonkey also." |
187 |
- echo |
188 |
- else |
189 |
- echo |
190 |
- einfo "Simply run mlgui to start the chosen MLDonkey gui." |
191 |
- einfo "It puts its config files into ~/.mldonkey" |
192 |
- fi |
193 |
-} |