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, 14 Dec 2015 06:58:41
Message-Id: 1450076214.41a39fdb290fb19c40c499b11775399e1f839932.graaff@gentoo
1 commit: 41a39fdb290fb19c40c499b11775399e1f839932
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 14 06:56:54 2015 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 14 06:56:54 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41a39fdb
7
8 net-p2p/gtk-gnutella: add 1.1.7
9
10 Package-Manager: portage-2.2.24
11
12 net-p2p/gtk-gnutella/Manifest | 1 +
13 net-p2p/gtk-gnutella/gtk-gnutella-1.1.7.ebuild | 86 ++++++++++++++++++++++++++
14 2 files changed, 87 insertions(+)
15
16 diff --git a/net-p2p/gtk-gnutella/Manifest b/net-p2p/gtk-gnutella/Manifest
17 index 1478236..bc8fc00 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.5.tar.bz2 19552392 SHA256 c332043a885ba302841a261c118264d903627fd21b062c99538db7dc7dada8a5 SHA512 eb94ef5cbc447ebf75d16eb24f0a4d88197a9b79f842fe73f963af3ba5985cc4ce99605d29e33123754d9a509218b71acc684df27a075c3947278211c1b204e5 WHIRLPOOL c5bc302dd7bd92eac2298c52b557723b473a930a7e1b40cddc74424bef7acf0a9b90f27ba503dc40038c925047dfcf6f80ca8de2f0e20a6429d70267de3ada49
22 DIST gtk-gnutella-1.1.6.tar.bz2 19571757 SHA256 b755250f6b8af65b449f20e4dac77a677c1c3fd52f603dc9cd82b035740974c3 SHA512 ade3c8e8a776b4ff9351ad60b307f421f804c423811ea2bc7639656e3623fb95c1041c235578e07009c07f7c85911db72b9c17e04fca65a1661c8492c396069f WHIRLPOOL 857578452335885de3f918d54c663cd4d7beb1a3cad7970bf74f796866f3754c66d7a59e64bb2b1400eacb9413c47de51f29d41ef2178916a3cfd6d9e57294fe
23 +DIST gtk-gnutella-1.1.7.tar.bz2 19667586 SHA256 98ec6bacb0e275a95b35ee719314b3f65fe0fd813694829bd759e916050cf138 SHA512 2bb9ea6c70b62ac64dff8dd612292fddeca23075758258ea5259f408d26570ad2be34fdbb8b045e6e6f0238488386930c524dc2d0499327e02861e3837dfcbd4 WHIRLPOOL 6a935ca2c3a2b0d2ad19eb0e5952a50e47a7458f704d52eea66fb393849160d5cb5321217675dc97f032f85c67a97965af0ae9c1a0b2fab8e16b77966561e9df
24
25 diff --git a/net-p2p/gtk-gnutella/gtk-gnutella-1.1.7.ebuild b/net-p2p/gtk-gnutella/gtk-gnutella-1.1.7.ebuild
26 new file mode 100644
27 index 0000000..154b509
28 --- /dev/null
29 +++ b/net-p2p/gtk-gnutella/gtk-gnutella-1.1.7.ebuild
30 @@ -0,0 +1,86 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
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 +
68 +src_configure() {
69 + # There is no option to turn off optimization through the build.sh
70 + # script.
71 + sed -i -e "s/Configure -Oder/Configure -Oder -Doptimize=none/" build.sh || die
72 +
73 + # The build script does not support the equivalent --enable
74 + # options so we must construct the configuration by hand.
75 +
76 + local myconf
77 +
78 + if ! use nls; then
79 + myconf="${myconf} --disable-nls"
80 + fi
81 +
82 + if ! use dbus; then
83 + myconf="${myconf} --disable-dbus"
84 + fi
85 +
86 + if ! use ssl; then
87 + myconf="${myconf} --disable-gnutls"
88 + fi
89 +
90 + if use gtk; then
91 + myconf="${myconf} --gtk2"
92 + else
93 + myconf="${myconf} --topless"
94 + fi
95 +
96 + ./build.sh \
97 + --configure-only \
98 + --prefix="/usr" \
99 + --cc=$(tc-getCC) \
100 + ${myconf}
101 +}
102 +
103 +src_compile() {
104 + # Build system is not parallel-safe, bug 500760
105 + emake -j1
106 +}
107 +
108 +src_install() {
109 + dodir /usr/bin
110 + emake INSTALL_PREFIX="${D}" install || die "Install failed"
111 + dodoc AUTHORS ChangeLog README TODO
112 +
113 + # Touch the symbols file into the future to avoid warnings from
114 + # gtk-gnutella later on, since we will most likely strip the binary.
115 + touch --date="next minute" "${D}/usr/lib/gtk-gnutella/gtk-gnutella.nm" || die
116 +}