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