From fb3d6404d6d6448c5c9ff874eec253947f4b4095 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 4 Apr 2021 02:56:17 +0000 Subject: games-arcade/pachi: port to EAPI 7, games.eclass-- Signed-off-by: Sam James --- games-arcade/pachi/files/1.0-autotools.patch | 12 +++---- games-arcade/pachi/pachi-1.0-r1.ebuild | 50 ++++++++++++++++++++++++++++ games-arcade/pachi/pachi-1.0.ebuild | 37 -------------------- 3 files changed, 56 insertions(+), 43 deletions(-) create mode 100644 games-arcade/pachi/pachi-1.0-r1.ebuild delete mode 100644 games-arcade/pachi/pachi-1.0.ebuild (limited to 'games-arcade') diff --git a/games-arcade/pachi/files/1.0-autotools.patch b/games-arcade/pachi/files/1.0-autotools.patch index 0d0185f142f3..79e79d3a89ec 100644 --- a/games-arcade/pachi/files/1.0-autotools.patch +++ b/games-arcade/pachi/files/1.0-autotools.patch @@ -1,5 +1,5 @@ ---- configure.in -+++ configure.in +--- a/configure.in ++++ b/configure.in @@ -1,5 +1,7 @@ # Process this file with autoconf to produce a configure script. +AC_PREREQ([2.54]) @@ -17,8 +17,8 @@ fi eval DATAPATH=`eval echo "$DATADIR"` ---- data/Makefile.am -+++ data/Makefile.am +--- a/data/Makefile.am ++++ b/data/Makefile.am @@ -10,13 +10,13 @@ objects_v2.dat \ rooms_v2.dat @@ -39,8 +39,8 @@ + for file in $(score_DATA_); do \ + $(INSTALL) -g $(group) -m $(perms) $$file $(DESTDIR)$(scoredir); \ + done ---- Makefile.am -+++ Makefile.am +--- a/Makefile.am ++++ b/Makefile.am @@ -1 +1 @@ -SUBDIRS = src Tgfx data fonts music sounds docs +SUBDIRS = src Tgfx data fonts music sounds diff --git a/games-arcade/pachi/pachi-1.0-r1.ebuild b/games-arcade/pachi/pachi-1.0-r1.ebuild new file mode 100644 index 000000000000..d8cfae4ed69f --- /dev/null +++ b/games-arcade/pachi/pachi-1.0-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools desktop + +DESCRIPTION="platform game inspired by games like Manic Miner and Jet Set Willy" +HOMEPAGE="http://dragontech.sourceforge.net/index.php?main=pachi&lang=en" +# Upstream doesn't version their releases. +# (should be downloaded and re-compressed with tar -jcvf) +#SRC_URI="mirror://sourceforge/dragontech/pachi_source.tgz" +SRC_URI="mirror://gentoo/${P}.tar.bz2" +S="${WORKDIR}"/Pachi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + media-libs/libsdl[joystick,sound,video] + media-libs/sdl-mixer[mod] +" +RDEPEND=" + ${DEPEND} + acct-group/gamestat +" + +PATCHES=( + "${FILESDIR}"/${PV}-autotools.patch +) + +src_prepare() { + default + + rm -f missing || die + mv configure.in configure.ac || die + eautoreconf +} + +src_install() { + default + + newicon Tgfx/icon.bmp ${PN}.bmp + make_desktop_entry ${PN} Pachi /usr/share/pixmaps/${PN}.bmp + + fowners root:gamestat /var/lib/${PN}/data/scores.dat + fperms 660 /var/lib/${PN}/data/scores.dat + fperms g+s /usr/bin/${PN} +} diff --git a/games-arcade/pachi/pachi-1.0.ebuild b/games-arcade/pachi/pachi-1.0.ebuild deleted file mode 100644 index f1cc4a2b7bbf..000000000000 --- a/games-arcade/pachi/pachi-1.0.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit autotools eutils games - -DESCRIPTION="platform game inspired by games like Manic Miner and Jet Set Willy" -HOMEPAGE="http://dragontech.sourceforge.net/index.php?main=pachi&lang=en" -# Upstream doesn't version their releases. -# (should be downloaded and re-compressed with tar -jcvf) -#SRC_URI="mirror://sourceforge/dragontech/pachi_source.tgz" -SRC_URI="mirror://gentoo/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="media-libs/libsdl[joystick,sound,video] - media-libs/sdl-mixer[mod]" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/Pachi - -src_prepare() { - epatch "${FILESDIR}"/${PV}-autotools.patch - rm -f missing - mv configure.in configure.ac || die - eautoreconf -} - -src_install() { - default - newicon Tgfx/icon.bmp ${PN}.bmp - make_desktop_entry ${PN} Pachi /usr/share/pixmaps/${PN}.bmp - prepgamesdirs -} -- cgit v1.2.3-65-gdbad