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 9E499158086 for ; Wed, 17 Nov 2021 18:03:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C977E086E; Wed, 17 Nov 2021 18:03:34 +0000 (UTC) Received: from smtp.gentoo.org (mail.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EAE41E0869 for ; Wed, 17 Nov 2021 18:03:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C6704342DC0 for ; Wed, 17 Nov 2021 18:03:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 158CE1C8 for ; Wed, 17 Nov 2021 18:03:31 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1637172106.982a6f2e912c52b354d0a1a39c5a9cf4f57cd71a.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/gnubg/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-board/gnubg/gnubg-1.06.002-r2.ebuild X-VCS-Directories: games-board/gnubg/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 982a6f2e912c52b354d0a1a39c5a9cf4f57cd71a X-VCS-Branch: master Date: Wed, 17 Nov 2021 18:03:31 +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: 71a15af3-e435-4f50-ab73-c0cdc57eb5ba X-Archives-Hash: a51431019b3b7a0618d03d8c19d723b0 commit: 982a6f2e912c52b354d0a1a39c5a9cf4f57cd71a Author: Ionen Wolkens gentoo org> AuthorDate: Wed Nov 17 13:38:20 2021 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Wed Nov 17 18:01:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=982a6f2e games-board/gnubg: EAPI7->8, use gtk3, misc ebuild fixes gtk3 support is marked experimental, but let's try to use it over dead gtk2. Notable other changes: * IUSE=gtk -> gui * remove pixmap sed for gnubg-big.png (not meant for share/pixmaps, it's used by: `getPkgDataDir(), "pixmaps", "gnubg-big.png"` where getPkgDataDir is share/gnubg) * remove other paths sed / option (formerly needed for games.eclass' --datadir=/usr/games, obsolete now) * remove config.h insert (fixed upstream, included in common.h) * change /tmp sed to embed ${T} (relying on T being exported and unchanged in a build script feels a bit undefined) * only install desktop entry and if gui is built * adjust deps to be conditional where possible (sqlite/libcanberra) * add missing curl and gdk-pixbuf deps * remove unused libxml2 dep * remove trivial IUSE=threads (use upstream default=yes) Signed-off-by: Ionen Wolkens gentoo.org> games-board/gnubg/gnubg-1.06.002-r2.ebuild | 96 ++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/games-board/gnubg/gnubg-1.06.002-r2.ebuild b/games-board/gnubg/gnubg-1.06.002-r2.ebuild new file mode 100644 index 000000000000..2751a00175bb --- /dev/null +++ b/games-board/gnubg/gnubg-1.06.002-r2.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit autotools desktop python-single-r1 xdg + +DESCRIPTION="GNU BackGammon" +HOMEPAGE="https://www.gnu.org/software/gnubg/" +SRC_URI="https://ftp.gnu.org/gnu/gnubg/${PN}-release-${PV}-sources.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" +IUSE=" + cpu_flags_x86_avx cpu_flags_x86_sse cpu_flags_x86_sse2 + gui python sqlite" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/gmp:= + media-fonts/dejavu + media-libs/freetype:2 + media-libs/libpng:= + net-misc/curl + sys-libs/readline:= + virtual/libintl + x11-libs/cairo + x11-libs/pango + gui? ( + media-libs/libcanberra[gtk3] + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + ) + python? ( ${PYTHON_DEPS} ) + sqlite? ( dev-db/sqlite:3 )" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/autoconf-archive + sys-devel/gettext + virtual/pkgconfig + python? ( ${PYTHON_DEPS} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + sed -i "s|/tmp|${T}|" credits.sh || die #298275 + sed -i 's/fonts //' Makefile.am || die #335774 + sed -i 's/gzip/true/' doc/Makefile.am || die + + # use system's copy so py3.10 distutils warning doesn't trigger a fatal error + rm m4/ax_python_devel.m4 || die + + eautoreconf +} + +src_configure() { + local simd=no + use cpu_flags_x86_sse && simd=sse + use cpu_flags_x86_sse2 && simd=sse2 + use cpu_flags_x86_avx && simd=avx + + local econfargs=( + $(use_with gui gtk) + $(use_with gui gtk3) + $(use_with python) + $(use_with sqlite) + --disable-cputest + --docdir="${EPREFIX}"/usr/share/doc/${PF}/html + --enable-simd=${simd} + --without-board3d # needs gtk2 / gtkglext, see also #761706 + ) + + econf "${econfargs[@]}" +} + +src_install() { + default + + mv "${ED}"/usr/share/doc/${PF}{/html/*.pdf,} || die + + insinto /usr/share/${PN} + doins ${PN}.weights *.bd + + dosym ../../fonts/dejavu/DejaVuSans.ttf /usr/share/${PN}/fonts/Vera.ttf + dosym ../../fonts/dejavu/DejaVuSans-Bold.ttf /usr/share/${PN}/fonts/VeraBd.ttf + dosym ../../fonts/dejavu/DejaVuSerif-Bold.ttf /usr/share/${PN}/fonts/VeraSeBd.ttf + + use gui && make_desktop_entry "gnubg -w" "GNU Backgammon" +}