summaryrefslogtreecommitdiff
path: root/games-arcade/xgalaga
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/xgalaga
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'games-arcade/xgalaga')
-rw-r--r--games-arcade/xgalaga/Manifest3
-rw-r--r--games-arcade/xgalaga/files/xgalaga-2.1.1.0-respect-AR.patch10
-rw-r--r--games-arcade/xgalaga/xgalaga-2.1.1.0-r1.ebuild (renamed from games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild)45
3 files changed, 42 insertions, 16 deletions
diff --git a/games-arcade/xgalaga/Manifest b/games-arcade/xgalaga/Manifest
index b4dd759817b7..f7732150d11e 100644
--- a/games-arcade/xgalaga/Manifest
+++ b/games-arcade/xgalaga/Manifest
@@ -1,3 +1,4 @@
+AUX xgalaga-2.1.1.0-respect-AR.patch 358 BLAKE2B 99e600a4cd2dba46b774e50cb54a303593a22c979385e5a891a525ee6685bb3429f843cfd5737a1d49b2fa96e0118294273c4f5f377c08374b15217fe5a9ccce SHA512 4e2283d8bd7b8b974d1df9e83945e215355204a4746ea2ba3e0a4a8179d794ce85f226526007cc5d88092baa06bbd9fc1bfd00f366c45014e233cc3a1ddf8aa9
DIST xgalaga-2.1.1.0.tar.gz 331621 BLAKE2B 290881eb89cacc7a2be469af8da2c11d710dea45f165daa43d4a10a310e681c9f6ffb012e057e266f1e50c5629122ca38cfd97e31a788104e7710f02d756f59d SHA512 087db9e0501cedb042bb673a217f9de32640d3e4f4f529a29fd25ed682a1aece9ae1beacdc2ee77fc93ac931411a1051e2cd19873578ccffe5f03a083bffe513
-EBUILD xgalaga-2.1.1.0.ebuild 1270 BLAKE2B 2f312b99ca63124cb1da72e0e7ddccb981c4e2bb317ef73bab24eec0f785db1f90998715b27c275c1cc857e8a6cd32e4845968cc1e938c38b4d72a38b7151279 SHA512 2dca4cde2f85ac9ccb179037af473138d1fb88d6a423ebee2387a8ef79b7ae75a4ccc6af3bfe37f0119191843e70f9d01797e373c46ab06fed49374ee5577a46
+EBUILD xgalaga-2.1.1.0-r1.ebuild 1499 BLAKE2B ab130acab095ca4edd4938a5c422dcce41ba6c4898cab46b9e0975cf5c58ee9f4edbbab917c2c1479461dac098b348425d93b030e118698cd041e73bfd56653b SHA512 13021e7f56a0456ef3b0a2da52cba7d9b95df54c75f38459c3977f9834073cdc6487c761147eb6b51f4e4c855406f0bbdf07d3483a812f2eccf78ee4842c7fbd
MISC metadata.xml 330 BLAKE2B b3e61a8f4911203a72c70798959045a62572b4a814bbf8f03ccf17f8da74eaa4c542883da6f2ff780c7e83ab26398ff95a46b36a41c22785903b0299707e6e9c SHA512 2c0045dadc3b72dda9b7f3389aebb5a2d38b91f2cd63891a9bd97e2f23971c916ce515cbbda6b0c6f2b8a600fc56bd77d9db749d223eee5cd6edc99525217545
diff --git a/games-arcade/xgalaga/files/xgalaga-2.1.1.0-respect-AR.patch b/games-arcade/xgalaga/files/xgalaga-2.1.1.0-respect-AR.patch
new file mode 100644
index 000000000000..eedc9b24ce17
--- /dev/null
+++ b/games-arcade/xgalaga/files/xgalaga-2.1.1.0-respect-AR.patch
@@ -0,0 +1,10 @@
+--- a/configure.in
++++ b/configure.in
+@@ -14,6 +14,7 @@ AC_PROG_INSTALL
+ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
+ AC_PROG_RANLIB
++AM_PROG_AR
+
+ AC_ARG_WITH(xpm-lib,[ --with-xpm-lib Directory containing libXpm (may be autodetected)],xpm_lib=$withval)
+ AC_ARG_WITH(sound, [ --with-sound Type of sound to use (native or nas)],sound_type=$withval)
diff --git a/games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild b/games-arcade/xgalaga/xgalaga-2.1.1.0-r1.ebuild
index 4d3b86a97566..d644d2087dd3 100644
--- a/games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild
+++ b/games-arcade/xgalaga/xgalaga-2.1.1.0-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils games
+EAPI=7
+
+inherit autotools desktop
DESCRIPTION="A clone of the classic game Galaga for the X Window System"
HOMEPAGE="https://sourceforge.net/projects/xgalaga"
@@ -11,7 +12,6 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~x86"
-IUSE=""
RDEPEND="x11-libs/libX11
x11-libs/libXmu
@@ -21,34 +21,49 @@ RDEPEND="x11-libs/libX11
DEPEND="${RDEPEND}
x11-base/xorg-proto"
+RDEPEND+=" acct-group/gamestat"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.1.1.0-respect-AR.patch
+)
+
src_prepare() {
+ default
+
+ eautoreconf
+
sed -i \
-e "/LEVELDIR\|SOUNDDIR/ s:prefix:datadir/${PN}:" \
-e "/\/scores/ s:prefix:localstatedir/${PN}:" \
- configure \
- || die "sed configure failed"
+ configure || die "sed configure failed"
+
sed -i \
-e "/SOUNDDEFS/ s:(SOUNDSRVDIR):(SOUNDSRVDIR)/bin:" \
-e 's:make ;:$(MAKE) ;:' \
- Makefile.in \
- || die "sed Makefile.in failed"
+ Makefile.in || die "sed Makefile.in failed"
+
+ sed -i \
+ -e 's/AR = ar/AR = @AR@/' \
+ libsprite/Makefile.in || die
}
src_install() {
- dogamesbin xgalaga xgal.sndsrv.oss xgalaga-hyperspace
+ dobin xgalaga xgal.sndsrv.oss xgalaga-hyperspace
dodoc README README.SOUND CHANGES
newman xgalaga.6x xgalaga.6
- insinto "${GAMES_DATADIR}/${PN}/sounds"
+ insinto /usr/share/${PN}/sounds
doins sounds/*.raw
- insinto "${GAMES_DATADIR}/${PN}/levels"
+ insinto /usr/share/${PN}/levels
doins levels/*.xgl
make_desktop_entry ${PN} XGalaga
- dodir "${GAMES_STATEDIR}/${PN}"
- touch "${D}${GAMES_STATEDIR}/${PN}/scores"
- fperms 660 "${GAMES_STATEDIR}/${PN}/scores"
- prepgamesdirs
+ dodir /var/games/${PN}
+ touch "${ED}"/var/games/${PN}/scores || die
+
+ fperms -R 660 /var/games/${PN}
+ fowners -R root:gamestat /var/games/${PN}
+ fperms g+s /usr/bin/{xgalaga,xgal.sndsrv.oss,xgalaga-hyperspace}
}