summaryrefslogtreecommitdiff
path: root/games-arcade/pachi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /games-arcade/pachi
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'games-arcade/pachi')
-rw-r--r--games-arcade/pachi/Manifest4
-rw-r--r--games-arcade/pachi/files/1.0-autotools.patch12
-rw-r--r--games-arcade/pachi/pachi-1.0-r1.ebuild (renamed from games-arcade/pachi/pachi-1.0.ebuild)35
3 files changed, 32 insertions, 19 deletions
diff --git a/games-arcade/pachi/Manifest b/games-arcade/pachi/Manifest
index 581f270df189..8641ab0f5290 100644
--- a/games-arcade/pachi/Manifest
+++ b/games-arcade/pachi/Manifest
@@ -1,4 +1,4 @@
-AUX 1.0-autotools.patch 1161 BLAKE2B 848b3366f103a245cdfe8c8bc2cf79e96eb7d3fd0f1d06d7e7a904cd592382e4447e9083b8395bd9a297864d429eb47abf310b736a5ddc1cae18cf233e94f67f SHA512 45f3818c4bf9a0fae123b11f3641f47be77886eb85849984b1a8fe391ae1b333ee7ac0d5ffe294ee986efe262762d995e2ff5b2786a9dc2c26123c200cfb3c57
+AUX 1.0-autotools.patch 1173 BLAKE2B 3bc58ba6dc677f2fbff28f944ecd01e41fe41df5dea2b7e8cbbb596e5ee4f797bf4720e7b4ccb7f182c0f15748b128db33127c23e54b744a6b980d79f13eb601 SHA512 478e4daf8c396d0938ce33414d37b6502cebfa16b57b099365ca9cdbda1b042871fe95392f005767c49759400c0823edc1b5bbe8b2bf96d9997cdb5df190a5a7
DIST pachi-1.0.tar.bz2 3101484 BLAKE2B 31c15f1c0fac503abbba67c0483e60d1b12d84d7d0cb5eaebda01e0942ead1d202841942711306c800cfe8346a3e31ed10671555184d52d345464640a90d5c1c SHA512 9b09baa47ceb051d80ea621d2449afd2d9de959e707d2a1b3119ce8f0c623ebc1afb1678389c647b066fb2211f3f7eb27d713ee33514e2739ba48f9bf14c7952
-EBUILD pachi-1.0.ebuild 941 BLAKE2B 37f9fa99223c405ee3d3a8fc282421a78304b1a5a2fac5f24311ebf2493c9612f16c3baa7e02ce2674d2e6d196a73cb42c835b8ae7d74167197a782cf460a3c5 SHA512 48234f533b4cf89020a55501c9274e5af806936a75b67d61368343db5c7e05332836853897d9408bf403519ccea30837d546248952d5a509161d6ae54bca598a
+EBUILD pachi-1.0-r1.ebuild 1088 BLAKE2B 23c93592b2c603473f5a5588f93fa8da6765c515a9e95bb24fde5b51d70b418e28812471981083ef51d3a399da331e63bffbec640cff2115cd52382cdca1119e SHA512 fe799267b62024ce3800163a09de45dcb5a90c124e5eec445ff63a2909e080d1acf20d7d5be19579dfe46c5a3e896c9d1ffc0594d14211e3807f6cd15bda52dd
MISC metadata.xml 333 BLAKE2B e14155543715b12b61b84d111606a7630315a349d0ad1ed68a4323ec50ff225f6cd9ed3a3bbc980e1246982bb25444884a1e63386c9526d31fb7b31b28f95892 SHA512 9f7e4e3994f529f9905dcf550cfb3ab0a4f0998a689a52e34d1bb2b5916273e7827937900606316cdd465e90752ab5a1bd0cf248f6288fc3d1be3f3d35982567
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.ebuild b/games-arcade/pachi/pachi-1.0-r1.ebuild
index f1cc4a2b7bbf..d8cfae4ed69f 100644
--- a/games-arcade/pachi/pachi-1.0.ebuild
+++ b/games-arcade/pachi/pachi-1.0-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit autotools eutils games
+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"
@@ -10,28 +11,40 @@ HOMEPAGE="http://dragontech.sourceforge.net/index.php?main=pachi&lang=en"
# (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"
-IUSE=""
-DEPEND="media-libs/libsdl[joystick,sound,video]
- media-libs/sdl-mixer[mod]"
-RDEPEND="${DEPEND}"
+DEPEND="
+ media-libs/libsdl[joystick,sound,video]
+ media-libs/sdl-mixer[mod]
+"
+RDEPEND="
+ ${DEPEND}
+ acct-group/gamestat
+"
-S=${WORKDIR}/Pachi
+PATCHES=(
+ "${FILESDIR}"/${PV}-autotools.patch
+)
src_prepare() {
- epatch "${FILESDIR}"/${PV}-autotools.patch
- rm -f missing
+ 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
- prepgamesdirs
+
+ fowners root:gamestat /var/lib/${PN}/data/scores.dat
+ fperms 660 /var/lib/${PN}/data/scores.dat
+ fperms g+s /usr/bin/${PN}
}