public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-action/geki3-KXL/files/, games-action/geki3-KXL/
@ 2016-07-06 19:46 Austin English
  0 siblings, 0 replies; 2+ messages in thread
From: Austin English @ 2016-07-06 19:46 UTC (permalink / raw
  To: gentoo-commits

commit:     11db0f78b0edd2b81f64b53ed12f2d586827d1cf
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  6 19:33:02 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Wed Jul  6 19:45:40 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11db0f78

games-action/geki3-KXL: remove deprecated games eclass

Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: portage-2.2.28

 .../geki3-KXL/files/geki3-KXL-1.0.3-paths.patch    | 16 +++----
 games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild   | 53 ++++++++++++++++++++++
 2 files changed, 61 insertions(+), 8 deletions(-)

diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch
index 039b185..26f3f43 100644
--- a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch
+++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch
@@ -1,13 +1,13 @@
---- bmp/Makefile.am
-+++ bmp/Makefile.am
+--- a/bmp/Makefile.am
++++ b/bmp/Makefile.am
 @@ -1,4 +1,4 @@
 -bmpdir = $(prefix)/share/geki3/bmp
 +bmpdir = $(BMP_PATH)
  bmp_DATA =   back1.bmp boss2.bmp enemyshot1.bmp missile.bmp\
  	     pata.bmp back2.bmp boss3.bmp enemyshot2.bmp mogu.bmp\
               pata_ball.bmp back3.bmp boss4.bmp frame.bmp mogu_ball.bmp\
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
 @@ -25,9 +25,9 @@
          BMP_PATH=/usr/local/share/geki3/bmp
          WAV_PATH=/usr/local/share/geki3/wav
@@ -21,8 +21,8 @@
  fi
  AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
  AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
---- data/Makefile.am
-+++ data/Makefile.am
+--- a/data/Makefile.am
++++ b/data/Makefile.am
 @@ -1,6 +1,4 @@
 -datadir = $(prefix)/share/geki3/data
 +datadir = $(DATA_PATH)
@@ -31,8 +31,8 @@
  
 -install:
 -	$(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
---- wav/Makefile.am
-+++ wav/Makefile.am
+--- a/wav/Makefile.am
++++ b/wav/Makefile.am
 @@ -1,4 +1,4 @@
 -wavdir = $(prefix)/share/geki3/wav
 +wavdir = $(WAV_PATH)

diff --git a/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild b/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild
new file mode 100644
index 0000000..3d796f0
--- /dev/null
+++ b/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils user
+
+DESCRIPTION="2D length scroll shooting game"
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+	mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-games/KXL"
+RDEPEND="${DEPEND}
+	media-fonts/font-adobe-100dpi"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-paths.patch
+)
+
+pkg_setup(){
+	enewgroup gamestat 36
+}
+
+src_prepare() {
+	default
+	rm -f missing
+	sed -i \
+		-e '1i #include <string.h>' \
+		-e "s:DATA_PATH \"/.score\":\"/var/games/${PN}\":" \
+		src/ranking.c || die
+	sed -i -e '/CFLAGS/s/$/ @CFLAGS@/' src/Makefile.am || die #bug 426890
+	mv configure.{in,ac}
+	eautoreconf
+}
+
+src_install() {
+	default
+
+	insinto /var/games/${PN}
+	newins data/.score ${PN}
+	fowners root:gamestat /var/games/${PN} /usr/bin/geki3
+	fperms 660 /var/games/${PN}
+	fperms 2755 /usr/bin/geki3
+
+	doicon "${DISTDIR}"/${PN}.png
+	make_desktop_entry geki3 Geki3
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-action/geki3-KXL/files/, games-action/geki3-KXL/
@ 2021-09-15  2:43 Ionen Wolkens
  0 siblings, 0 replies; 2+ messages in thread
From: Ionen Wolkens @ 2021-09-15  2:43 UTC (permalink / raw
  To: gentoo-commits

commit:     2fc2e16c0ed4057ca455e1a684cb9a1838f64d65
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 14 22:33:14 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Sep 15 02:40:36 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fc2e16c

games-action/geki3-KXL: EAPI6->8, fix clang/fonts, cleanup patches

Removed paths patch that was mostly for /usr/games, and instead
require a smaller workaround to install-data and remove .score.

Also fix description, this is a different game than geki2 (horizontal).

Add media-fonts/font-bitstream-100dpi as it'd crash (later) without.

Closes: https://bugs.gentoo.org/730854
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../geki3-KXL/files/geki3-KXL-1.0.3-cflags.patch   |  9 ++++
 .../geki3-KXL/files/geki3-KXL-1.0.3-clang.patch    | 20 ++++++++
 .../geki3-KXL/files/geki3-KXL-1.0.3-paths.patch    | 41 -----------------
 games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild   | 50 --------------------
 games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild   | 53 ++++++++++++++++++++++
 5 files changed, 82 insertions(+), 91 deletions(-)

diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-cflags.patch b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-cflags.patch
new file mode 100644
index 00000000000..952b4bf6d74
--- /dev/null
+++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-cflags.patch
@@ -0,0 +1,9 @@
+https://bugs.gentoo.org/426890
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -5,4 +5,4 @@
+ 		ranking.c ranking.h your.c your.h
+ 
+-CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@
++AM_CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@
+ LIBS = @X_LIBS@ -lX11 @KXL_LIBS@ -lKXL

diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch
new file mode 100644
index 00000000000..ad84615a398
--- /dev/null
+++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch
@@ -0,0 +1,20 @@
+Use void so that clang does not complain about missing (unused)
+return value, and also add missing string.h.
+https://bugs.gentoo.org/730854
+--- a/src/ranking.c
++++ b/src/ranking.c
+@@ -1,2 +1,3 @@
+ #include <pwd.h>
++#include <string.h>
+ #include "geki3.h"
+@@ -7,3 +8,3 @@
+  **********************/
+-int ScoreRanking(void)
++void ScoreRanking(void)
+ {
+--- a/src/ranking.h
++++ b/src/ranking.h
+@@ -3,2 +3,3 @@
+ 
++void ScoreRanking(void);
+ void RankingScore(void);

diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch
deleted file mode 100644
index 26f3f4371b8..00000000000
--- a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch
+++ /dev/null
@@ -1,41 +0,0 @@
---- a/bmp/Makefile.am
-+++ b/bmp/Makefile.am
-@@ -1,4 +1,4 @@
--bmpdir = $(prefix)/share/geki3/bmp
-+bmpdir = $(BMP_PATH)
- bmp_DATA =   back1.bmp boss2.bmp enemyshot1.bmp missile.bmp\
- 	     pata.bmp back2.bmp boss3.bmp enemyshot2.bmp mogu.bmp\
-              pata_ball.bmp back3.bmp boss4.bmp frame.bmp mogu_ball.bmp\
---- a/configure.in
-+++ b/configure.in
-@@ -25,9 +25,9 @@
-         BMP_PATH=/usr/local/share/geki3/bmp
-         WAV_PATH=/usr/local/share/geki3/wav
- else
--        DATA_PATH=$prefix/share/geki3/data
--        BMP_PATH=$prefix/share/geki3/bmp
--        WAV_PATH=$prefix/share/geki3/wav
-+        DATA_PATH=$datadir/geki3/data
-+        BMP_PATH=$datadir/geki3/bmp
-+        WAV_PATH=$datadir/geki3/wav
- fi
- AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
- AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
---- a/data/Makefile.am
-+++ b/data/Makefile.am
-@@ -1,6 +1,4 @@
--datadir = $(prefix)/share/geki3/data
-+datadir = $(DATA_PATH)
- data_DATA = stage1.dat stage2.dat stage3.dat stage4.dat
- EXTRA_DIST = stage1.dat stage2.dat stage3.dat stage4.dat .score
- 
--install:
--	$(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
---- a/wav/Makefile.am
-+++ b/wav/Makefile.am
-@@ -1,4 +1,4 @@
--wavdir = $(prefix)/share/geki3/wav
-+wavdir = $(WAV_PATH)
- wav_DATA =   bgm1.wav bgm2.wav bgm3.wav bgm4.wav boom.wav boss.wav go.wav \
- 	     laser.wav open.wav pow.wav warning.wav
- EXTRA_DIST = bgm1.wav bgm2.wav bgm3.wav bgm4.wav boom.wav boss.wav go.wav \

diff --git a/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild b/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild
deleted file mode 100644
index 0e4d54af565..00000000000
--- a/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools desktop
-
-DESCRIPTION="2D length scroll shooting game"
-HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
-SRC_URI="mirror://gentoo/${P}.tar.gz
-	mirror://gentoo/${PN}.png"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="acct-group/gamestat
-	dev-games/KXL"
-RDEPEND="${DEPEND}
-	media-fonts/font-adobe-100dpi"
-
-PATCHES=(
-	"${FILESDIR}"/${P}-paths.patch
-)
-
-src_prepare() {
-	default
-	rm -f missing
-	sed -i \
-		-e '1i #include <string.h>' \
-		-e "s:DATA_PATH \"/.score\":\"/var/games/${PN}\":" \
-		src/ranking.c || die
-	sed -i -e '/CFLAGS/s/$/ @CFLAGS@/' src/Makefile.am || die #bug 426890
-	mv configure.{in,ac}
-	eautoreconf
-}
-
-src_install() {
-	default
-
-	insinto /var/games/${PN}
-	newins data/.score ${PN}
-	fowners root:gamestat /var/games/${PN} /usr/bin/geki3
-	fperms 660 /var/games/${PN}
-	fperms 2755 /usr/bin/geki3
-
-	doicon "${DISTDIR}"/${PN}.png
-	make_desktop_entry geki3 Geki3
-}

diff --git a/games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild b/games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild
new file mode 100644
index 00000000000..a7530fbd195
--- /dev/null
+++ b/games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools desktop
+
+DESCRIPTION="2D horizontal scroll shooting game"
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
+SRC_URI="
+	mirror://gentoo/${P}.tar.gz
+	mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+	acct-group/gamestat
+	dev-games/KXL"
+RDEPEND="
+	${DEPEND}
+	media-fonts/font-adobe-100dpi
+	media-fonts/font-bitstream-100dpi"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-cflags.patch
+	"${FILESDIR}"/${P}-clang.patch
+)
+
+src_prepare() {
+	default
+
+	sed -i "s|DATA_PATH \"/.score\"|\"${EPREFIX}/var/games/${PN}.hs\"|" src/ranking.c || die
+
+	eautoreconf
+}
+
+src_install() {
+	emake -C data DESTDIR="${D}" install-dataDATA
+	default
+
+	rm "${ED}"/usr/share/geki3/data/.score
+	insinto /var/games
+	newins data/.score ${PN}.hs
+
+	fowners :gamestat /var/games/${PN}.hs /usr/bin/geki3
+	fperms g+s /usr/bin/geki3
+	fperms 660 /var/games/${PN}.hs
+
+	doicon "${DISTDIR}"/${PN}.png
+	make_desktop_entry geki3 Geki3
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-15  2:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-06 19:46 [gentoo-commits] repo/gentoo:master commit in: games-action/geki3-KXL/files/, games-action/geki3-KXL/ Austin English
  -- strict thread matches above, loose matches on Subject: below --
2021-09-15  2:43 Ionen Wolkens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox