From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- games-roguelike/hengband/hengband-2.2.1.ebuild | 65 ++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 games-roguelike/hengband/hengband-2.2.1.ebuild (limited to 'games-roguelike/hengband/hengband-2.2.1.ebuild') diff --git a/games-roguelike/hengband/hengband-2.2.1.ebuild b/games-roguelike/hengband/hengband-2.2.1.ebuild new file mode 100644 index 000000000000..adcef5288ffb --- /dev/null +++ b/games-roguelike/hengband/hengband-2.2.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="An Angband variant, with a Japanese/fantasy theme" +HOMEPAGE="https://hengband.github.io/" +SRC_URI="https://github.com/hengband/hengband/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Moria" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X l10n_ja" + +RDEPEND=" + >=sys-libs/ncurses-5:0= + X? ( x11-libs/libX11 ) +" +DEPEND=" + ${RDEPEND} + X? ( x11-libs/libXt ) +" +BDEPEND=" + virtual/pkgconfig + l10n_ja? ( app-i18n/nkf ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2.1.2-autoconf-ncurses.patch" +) + +src_prepare() { + # Fix syntax for chown. + sed -i '/chown/s/\./:/' lib/*/Makefile.am || die + # Don't use the games sub-dir since we're not using games.eclass any more. + sed -i 's:/games/:/:g' configure.ac || die + + default + eautoreconf +} + +src_configure() { + local myconf=( + --bindir="${EPREFIX}"/usr/bin + --with-setgid="nobody" + $(use_with X x) + ) + use l10n_ja || myconf+=( --disable-japanese ) + + econf "${myconf[@]}" +} + +src_install() { + default + dodoc lib/help/faq.txt + + if use l10n_ja ; then + dodoc readme.txt autopick.txt readme_eng.txt autopick_eng.txt + else + newdoc readme_eng.txt readme.txt + newdoc autopick_eng.txt autopick.txt + fi +} -- cgit v1.2.3