Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/gtk-gnutella/
Date: Mon, 23 Oct 2017 18:17:57
Message-Id: 1508782669.474b241e8a90409c89940918dea348be7baa0c29.graaff@gentoo
1 commit: 474b241e8a90409c89940918dea348be7baa0c29
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 23 17:59:39 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 23 18:17:49 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=474b241e
7
8 net-p2p/gtk-gnutella: add 1.1.13
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 net-p2p/gtk-gnutella/Manifest | 1 +
13 net-p2p/gtk-gnutella/gtk-gnutella-1.1.13.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 6dfabf3125f..e8befa0a70e 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.11.tar.bz2 19966423 SHA256 e46ffa3905831828f867709aa346cd88576075bd1299ef396962ad860e2589d5 SHA512 87d2d66b555180c0db7c360106377133b9e1f8ad8d28fc0f9a38498f3b4502a817650f9683cf92919b7d3a1b3602f7136143d2f1c920e10727576c703e233d07 WHIRLPOOL d70a4dd39ac25856fd3fbe4b4d4f2447f1ed8448e672fb64ab1e66bcc59a2e36b30112db0123aed1b52a6fa00c274d17ac47bb2ac9a775182516558e9d38dd08
22 DIST gtk-gnutella-1.1.12.tar.bz2 20075956 SHA256 ca65f9c56a5e17e6cb84246d5e2db453f1c73863ef937b8a1772ff4572d562ff SHA512 3b95f66389ed45f45ff8cc1c5f4eda0d03d5a4060a083f23fd5318ec004c3e96a37a6909688828cd8de97067d18280cc533146ce6de2129c83f9aeb8a3c5a589 WHIRLPOOL a7efc554ee6aad289444aa59e73ed4b0b7701c7a87a98b2f9cd45ef1439fe53cfa8d4f9722854ea90600d37e225e3be80533971f056d9ef831fec0b151629218
23 +DIST gtk-gnutella-1.1.13.tar.xz 19207704 SHA256 2126cd08941ba0847c06f1034c5e2a9428b67b2fd1685c0e3ab878cb0179f647 SHA512 14ff19a3f0bf55101570b4268cdd422defd2ccd112d80e9bafe2f6eb019b94c3c72763e67e2853d4446e68943355093c1279c6d67c101ca6d9b7f05ddd9ac7e0 WHIRLPOOL 5c1dbcf48b53d268e698d381ec88d680f79c79403e937dbc6995143b64f278588a7a5de9f7365237351079b7f54dc2b4b2d6520b80226cf9c9a0ff2ef99f4632
24
25 diff --git a/net-p2p/gtk-gnutella/gtk-gnutella-1.1.13.ebuild b/net-p2p/gtk-gnutella/gtk-gnutella-1.1.13.ebuild
26 new file mode 100644
27 index 00000000000..3593ea42e7f
28 --- /dev/null
29 +++ b/net-p2p/gtk-gnutella/gtk-gnutella-1.1.13.ebuild
30 @@ -0,0 +1,88 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit eutils
37 +
38 +IUSE="nls dbus ssl +gtk"
39 +
40 +DESCRIPTION="A GTK+ Gnutella client"
41 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
42 +HOMEPAGE="http://gtk-gnutella.sourceforge.net/"
43 +
44 +SLOT="0"
45 +LICENSE="GPL-2"
46 +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
47 +
48 +RDEPEND="
49 + sys-libs/binutils-libs:=
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 +}