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