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 50D37158095 for ; Tue, 26 Jul 2022 09:45:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72C82E0A4F; Tue, 26 Jul 2022 09:45:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 46AFEE0A10 for ; Tue, 26 Jul 2022 09:45:35 +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 25440340D2A for ; Tue, 26 Jul 2022 09:45:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91DA4553 for ; Tue, 26 Jul 2022 09:45:32 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1658828631.83a81ccad1ae3e8c76ad759ef0978d35b71e4839.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/zangband/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-roguelike/zangband/zangband-2.7.4c-r1.ebuild X-VCS-Directories: games-roguelike/zangband/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 83a81ccad1ae3e8c76ad759ef0978d35b71e4839 X-VCS-Branch: master Date: Tue, 26 Jul 2022 09:45:32 +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: 527514b8-0443-4888-b90a-dc292791d143 X-Archives-Hash: 2651ee1c1fb602add63f416154262937 commit: 83a81ccad1ae3e8c76ad759ef0978d35b71e4839 Author: Sam James gentoo org> AuthorDate: Tue Jul 26 09:43:41 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jul 26 09:43:51 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83a81cca games-roguelike/zangband: fix games.eclass migration - Add missing deps - Use /var/games to fix games.eclass migration. Bit cheesy but I don't see an alternative here. Unlike the actively developed(!) games-roguelike/angband, the build system (and code) is pretty brittle and it hardcodes in one hierarchy and doesn't allow easy splitting. Startup & saving games should work now. I should've noticed when merging the PR but apparently I didn't try running. Oh well. Fixes: 104ca58ef4e5af8d7978dd78327c102e32d9c4c3 Signed-off-by: Sam James gentoo.org> games-roguelike/zangband/zangband-2.7.4c-r1.ebuild | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/games-roguelike/zangband/zangband-2.7.4c-r1.ebuild b/games-roguelike/zangband/zangband-2.7.4c-r1.ebuild new file mode 100644 index 000000000000..d1fb2671077c --- /dev/null +++ b/games-roguelike/zangband/zangband-2.7.4c-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="An enhanced version of the Roguelike game Angband" +HOMEPAGE="http://www.zangband.org/" +SRC_URI="ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/${P}.tar.gz" +S="${WORKDIR}"/${PN} + +LICENSE="Moria" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="tk" + +RDEPEND=" + acct-group/gamestat + sys-libs/ncurses:= + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXt + tk? ( + dev-lang/tcl:= + dev-lang/tk:= + ) +" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" +BDEPEND="acct-group/gamestat" + +DOCS=( readme z_faq.txt z_update.txt ) + +PATCHES=( + "${FILESDIR}"/${P}-tk85.patch + "${FILESDIR}"/${P}-rng.patch + "${FILESDIR}"/${P}-tinfo.patch + "${FILESDIR}"/${P}-configure.patch + "${FILESDIR}"/${P}-makefile.patch +) + +src_prepare() { + default + + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + local myconf=( + --datadir="${EPREFIX}"/var + --with-setgid=gamestat + --without-gtk + $(use_with tk tcltk) + ) + + econf "${myconf[@]}" +} + +src_install() { + dodir /var/games/${PN} + + # Install the basic files but remove unneeded bits to install ourselves + emake DESTDIR="${ED}"/var/games/${PN}/ installbase + # Covered via DOCS + rm "${ED}"/var/games/${PN}/{angdos.cfg,readme,z_faq.txt,z_update.txt} || die + + # Install everything else and fix the permissions + dobin zangband + + keepdir /var/games/zangband/lib/{bone,info,user,save,xtra/{,help,music}} + + # All users in the games group need write permissions to + # some important dirs + fowners -R :gamestat /var/games/${PN}/lib/{apex,data,save,user} + fperms -R g+w /var/games/${PN}/lib/{apex,data,save,user} + + einstalldocs +}