1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # eutils: strip-linguas
7 inherit eutils toolchain-funcs
9 IUSE="nls dbus ssl +gtk"
11 DESCRIPTION="A GTK+ Gnutella client"
12 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
13 HOMEPAGE="http://gtk-gnutella.sourceforge.net/"
17 KEYWORDS="amd64 ppc ~ppc64 x86"
20 sys-libs/binutils-libs:=
23 gtk? ( >=x11-libs/gtk+-2.2.1:2 )
24 dbus? ( >=sys-apps/dbus-0.35.2 )
25 ssl? ( >=net-libs/gnutls-2.2.5 )
26 nls? ( >=sys-devel/gettext-0.11.5 )"
28 BDEPEND="virtual/pkgconfig"
33 echo "# Gentoo-selected LINGUAS" > po/LINGUAS
34 for ling in ${LINGUAS}; do
35 echo $ling >> po/LINGUAS
42 # There is no option to turn off optimization through the build.sh
44 sed -i -e "s/Configure -Oder/Configure -Oder -Doptimize=none/" build.sh || die
46 # The build script does not support the equivalent --enable
47 # options so we must construct the configuration by hand.
52 myconf="${myconf} --disable-nls"
56 myconf="${myconf} --disable-dbus"
60 myconf="${myconf} --disable-gnutls"
64 myconf="${myconf} --gtk2"
66 myconf="${myconf} --topless"
77 # Build system is not parallel-safe, bug 500760
83 emake INSTALL_PREFIX="${D}" install || die "Install failed"
84 dodoc AUTHORS ChangeLog README TODO
86 # Touch the symbols file into the future to avoid warnings from
87 # gtk-gnutella later on, since we will most likely strip the binary.
88 touch --date="next minute" "${D}/usr/lib/gtk-gnutella/gtk-gnutella.nm" || die