1 |
commit: b44c64d85f857ed14839718472ec16f1474193d4 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 25 07:26:21 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 25 07:26:21 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b44c64d8 |
7 |
|
8 |
net-p2p/gtk-gnutella: cleanup |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-p2p/gtk-gnutella/gtk-gnutella-1.1.11-r1.ebuild | 88 ---------------------- |
13 |
1 file changed, 88 deletions(-) |
14 |
|
15 |
diff --git a/net-p2p/gtk-gnutella/gtk-gnutella-1.1.11-r1.ebuild b/net-p2p/gtk-gnutella/gtk-gnutella-1.1.11-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index 6cbf0a7e365..00000000000 |
18 |
--- a/net-p2p/gtk-gnutella/gtk-gnutella-1.1.11-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,88 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-inherit eutils |
27 |
- |
28 |
-IUSE="nls dbus ssl +gtk" |
29 |
- |
30 |
-DESCRIPTION="A GTK+ Gnutella client" |
31 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
32 |
-HOMEPAGE="http://gtk-gnutella.sourceforge.net/" |
33 |
- |
34 |
-SLOT="0" |
35 |
-LICENSE="GPL-2" |
36 |
-KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
37 |
- |
38 |
-RDEPEND=" |
39 |
- sys-libs/binutils-libs:= |
40 |
- dev-libs/glib:2 |
41 |
- sys-libs/zlib |
42 |
- gtk? ( >=x11-libs/gtk+-2.2.1:2 ) |
43 |
- dbus? ( >=sys-apps/dbus-0.35.2 ) |
44 |
- ssl? ( >=net-libs/gnutls-2.2.5 ) |
45 |
- nls? ( >=sys-devel/gettext-0.11.5 )" |
46 |
-DEPEND="${RDEPEND} |
47 |
- virtual/pkgconfig" |
48 |
- |
49 |
-src_prepare() { |
50 |
- strip-linguas -i po |
51 |
- |
52 |
- echo "# Gentoo-selected LINGUAS" > po/LINGUAS |
53 |
- for ling in ${LINGUAS}; do |
54 |
- echo $ling >> po/LINGUAS |
55 |
- done |
56 |
- |
57 |
- default |
58 |
-} |
59 |
- |
60 |
-src_configure() { |
61 |
- # There is no option to turn off optimization through the build.sh |
62 |
- # script. |
63 |
- sed -i -e "s/Configure -Oder/Configure -Oder -Doptimize=none/" build.sh || die |
64 |
- |
65 |
- # The build script does not support the equivalent --enable |
66 |
- # options so we must construct the configuration by hand. |
67 |
- |
68 |
- local myconf |
69 |
- |
70 |
- if ! use nls; then |
71 |
- myconf="${myconf} --disable-nls" |
72 |
- fi |
73 |
- |
74 |
- if ! use dbus; then |
75 |
- myconf="${myconf} --disable-dbus" |
76 |
- fi |
77 |
- |
78 |
- if ! use ssl; then |
79 |
- myconf="${myconf} --disable-gnutls" |
80 |
- fi |
81 |
- |
82 |
- if use gtk; then |
83 |
- myconf="${myconf} --gtk2" |
84 |
- else |
85 |
- myconf="${myconf} --topless" |
86 |
- fi |
87 |
- |
88 |
- ./build.sh \ |
89 |
- --configure-only \ |
90 |
- --prefix="/usr" \ |
91 |
- --cc=$(tc-getCC) \ |
92 |
- ${myconf} |
93 |
-} |
94 |
- |
95 |
-src_compile() { |
96 |
- # Build system is not parallel-safe, bug 500760 |
97 |
- emake -j1 |
98 |
-} |
99 |
- |
100 |
-src_install() { |
101 |
- dodir /usr/bin |
102 |
- emake INSTALL_PREFIX="${D}" install || die "Install failed" |
103 |
- dodoc AUTHORS ChangeLog README TODO |
104 |
- |
105 |
- # Touch the symbols file into the future to avoid warnings from |
106 |
- # gtk-gnutella later on, since we will most likely strip the binary. |
107 |
- touch --date="next minute" "${D}/usr/lib/gtk-gnutella/gtk-gnutella.nm" || die |
108 |
-} |