From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0B4E6158476 for ; Sat, 13 Jan 2024 20:46:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31BD7E2A2A; Sat, 13 Jan 2024 20:46:24 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1698EE2A2A for ; Sat, 13 Jan 2024 20:46:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3F24D3431CB for ; Sat, 13 Jan 2024 20:46:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C044B14B1 for ; Sat, 13 Jan 2024 20:46:21 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1705178749.58e0d7f5a46c4b6080d6908249204f29bdd5f64b.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/gtk-gnutella/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild X-VCS-Directories: net-p2p/gtk-gnutella/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 58e0d7f5a46c4b6080d6908249204f29bdd5f64b X-VCS-Branch: master Date: Sat, 13 Jan 2024 20:46:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1f5504d5-fa68-4d5f-abb9-8db68400bb27 X-Archives-Hash: cbedbed7d5f19c4416147b46fec43588 commit: 58e0d7f5a46c4b6080d6908249204f29bdd5f64b Author: Michael Mair-Keimberger levelnine at> AuthorDate: Sat Dec 30 15:09:46 2023 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sat Jan 13 20:45:49 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58e0d7f5 net-p2p/gtk-gnutella: EAPI8 bump, various fixes Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://bugs.gentoo.org/452082 Closes: https://bugs.gentoo.org/738476 Closes: https://bugs.gentoo.org/738504 Closes: https://github.com/gentoo/gentoo/pull/34561 Signed-off-by: Conrad Kostecki gentoo.org> net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild | 93 +++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild b/net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild new file mode 100644 index 000000000000..a5d6dc676a6f --- /dev/null +++ b/net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic strip-linguas toolchain-funcs + +DESCRIPTION="GTK+ Gnutella client" +HOMEPAGE="https://gtk-gnutella.sourceforge.net/" +SRC_URI="https://github.com/gtk-gnutella/gtk-gnutella/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="CC-BY-SA-4.0 GPL-2" +KEYWORDS="amd64 ppc ppc64 x86" + +IUSE="nls dbus ssl +gtk" + +RDEPEND=" + sys-libs/binutils-libs:= + dev-libs/glib:2 + sys-libs/zlib + gtk? ( >=x11-libs/gtk+-2.2.1:2 ) + dbus? ( >=sys-apps/dbus-0.35.2 ) + ssl? ( >=net-libs/gnutls-2.2.5 ) + nls? ( >=sys-devel/gettext-0.11.5 )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + filter-lto + strip-linguas -i po + + echo "# Gentoo-selected LINGUAS" > po/LINGUAS + local ling + for ling in ${LINGUAS}; do + echo $ling >> po/LINGUAS + done + + # bug #738504 + sed -i -e 's|share/appdata|share/metainfo|g' extra_files/Makefile.SH || die + + default +} + +src_configure() { + # There is no option to turn off optimization through the build.sh + # script. + sed -i -e "s/Configure -Oder/Configure -Oder -Doptimize=none/" build.sh || die + + # The build script does not support the equivalent --enable + # options so we must construct the configuration by hand. + + local myconf + + if ! use nls; then + myconf="${myconf} --disable-nls" + fi + + if ! use dbus; then + myconf="${myconf} --disable-dbus" + fi + + if ! use ssl; then + myconf="${myconf} --disable-gnutls" + fi + + if use gtk; then + myconf="${myconf} --gtk2" + else + myconf="${myconf} --topless" + fi + + ./build.sh \ + --configure-only \ + --prefix="/usr" \ + --cc="$(tc-getCC)" \ + ${myconf} +} + +src_compile() { + # Build system is not parallel-safe, bug 500760 + emake -j1 AR="$(tc-getAR) rc" NM="$(tc-getNM)" +} + +src_install() { + dodir /usr/bin + emake INSTALL_PREFIX="${D}" install + dodoc AUTHORS ChangeLog README TODO + + # Touch the symbols file into the future to avoid warnings from + # gtk-gnutella later on, since we will most likely strip the binary. + touch --date="next minute" "${D}/usr/lib/gtk-gnutella/gtk-gnutella.nm" || die +}