diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-08-13 01:45:22 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-08-13 05:00:06 -0400 |
commit | a4a10cc86a5b89c9395f3487e35b8bf16e8ab113 (patch) | |
tree | 7d35e9218ec4b188f16cb4b123b3d224cb7a381f /games-arcade/komi | |
parent | games-arcade/gnujump: EAPI6->8, misc fixes (diff) | |
download | gentoo-a4a10cc86a5b89c9395f3487e35b8bf16e8ab113.tar.gz gentoo-a4a10cc86a5b89c9395f3487e35b8bf16e8ab113.tar.bz2 gentoo-a4a10cc86a5b89c9395f3487e35b8bf16e8ab113.zip |
games-arcade/komi: EAPI6->8, misc changes
* drop Makefile in favor of implicit rules, somewhat useless and relied
on 2 patches, seds, and still needed a partial manual install anyway
* depend on libsdl[sound]
* respect EPREFIX
* install readme/changelog
* replace .bmp icon, not right format to be XDG-valid and no guarantees
it can be displayed by everything
* GPL-2 -> GPL-2+
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-arcade/komi')
-rw-r--r-- | games-arcade/komi/Manifest | 1 | ||||
-rw-r--r-- | games-arcade/komi/files/1.04-DESTDIR.patch | 36 | ||||
-rw-r--r-- | games-arcade/komi/files/komi-1.04-install.patch | 11 | ||||
-rw-r--r-- | games-arcade/komi/komi-1.04-r1.ebuild | 43 | ||||
-rw-r--r-- | games-arcade/komi/komi-1.04-r2.ebuild | 46 |
5 files changed, 47 insertions, 90 deletions
diff --git a/games-arcade/komi/Manifest b/games-arcade/komi/Manifest index d70fce631e1f..61052014abc0 100644 --- a/games-arcade/komi/Manifest +++ b/games-arcade/komi/Manifest @@ -1 +1,2 @@ DIST komi-1.04.tar.gz 954526 BLAKE2B b7be781da0143f4cd563e885ff7688c2f50b5c1be6fbd8d383aeda06873b25a2081ae58b750a00a70d140757a57ec49652ff5e8c4ebf6ba0f306539707c06c31 SHA512 60babb3642bea7598089b342ba582b2f63f6aa051352ad9b2fa5bad0222a32306775a207712d2e7a9242be5e3ff5b4734f5b62708e451e7230499c6812d4c8a3 +DIST komi.png 352 BLAKE2B 676acccaf198680b62143c436b21aae418ffeacefbcdf32b03b6a78d69e529a499dd4c7a4e2cdf7bdf996d330b683d09cd7b485b7a76dc6805e7798c13acf2e2 SHA512 ba899f07a56e38ccd7fe35b2060f651ab8a5a7edb099ec0bcc69bb70c43b94d459910fc4fb5fe931617cd8d17aa945e2847325ce5aba0b2550713a35216cf88f diff --git a/games-arcade/komi/files/1.04-DESTDIR.patch b/games-arcade/komi/files/1.04-DESTDIR.patch deleted file mode 100644 index 4060d51f3a7d..000000000000 --- a/games-arcade/komi/files/1.04-DESTDIR.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- a/Makefile.orig 2004-12-11 01:36:11.000000000 -0800 -+++ b/Makefile 2004-12-11 01:36:14.000000000 -0800 -@@ -13,9 +13,7 @@ - MIXER=-lSDL_mixer - SDL_LIB=$(shell sdl-config --static-libs) $(MIXER) - --CFLAGS=-Wall -pedantic -std=c99 -O2 \ -- $(shell sdl-config --cflags) \ -- -DDATAPATH=\"$(DATAPATH)\" -+CFLAGS= $(ECFLAGS) $(shell sdl-config --cflags) -DDATAPATH=\"$(DATAPATH)\" - - all: komi - -@@ -24,15 +22,13 @@ - -rm *.o - - install: -- install -d $(DATAPATH) -- cp -R komidata/* $(DATAPATH) -- chmod -R 644 $(DATAPATH) -- chmod 755 $(DATAPATH) -- install -d $(BINPATH) -- cp komi $(BINPATH) -- chmod 755 $(BINPATH)komi -- install -d $(MANPATH) -- cp komi.6 $(MANPATH)komi.6 -+ install -d $(DESTDIR)$(DATAPATH) -+ cp -R komidata/* $(DESTDIR)$(DATAPATH) -+ chmod -R 644 $(DESTDIR)$(DATAPATH) -+ chmod 755 $(DESTDIR)$(DATAPATH) -+ install -d $(DESTDIR)$(BINPATH) -+ cp komi $(DESTDIR)$(BINPATH) -+ chmod 755 $(DESTDIR)$(BINPATH)/komi - - komi: komi.o - $(CC) $(CFLAGS) komi.o -o komi $(SDL_LIB) diff --git a/games-arcade/komi/files/komi-1.04-install.patch b/games-arcade/komi/files/komi-1.04-install.patch deleted file mode 100644 index 30395eaff72b..000000000000 --- a/games-arcade/komi/files/komi-1.04-install.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/Makefile.old 2015-01-05 11:35:24.794160467 +0100 -+++ b/Makefile 2015-01-05 11:36:23.181058180 +0100 -@@ -24,8 +24,6 @@ - install: - install -d $(DESTDIR)$(DATAPATH) - cp -R komidata/* $(DESTDIR)$(DATAPATH) -- chmod -R 644 $(DESTDIR)$(DATAPATH) -- chmod 755 $(DESTDIR)$(DATAPATH) - install -d $(DESTDIR)$(BINPATH) - cp komi $(DESTDIR)$(BINPATH) - chmod 755 $(DESTDIR)$(BINPATH)/komi diff --git a/games-arcade/komi/komi-1.04-r1.ebuild b/games-arcade/komi/komi-1.04-r1.ebuild deleted file mode 100644 index 5e0804c4843e..000000000000 --- a/games-arcade/komi/komi-1.04-r1.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit desktop - -DESCRIPTION="Komi the Space Frog - simple SDL game of collection" -HOMEPAGE="http://komi.sourceforge.net" -SRC_URI="mirror://sourceforge/komi/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="media-libs/libsdl[video] - media-libs/sdl-mixer -" -RDEPEND="${DEPEND}" - -src_prepare() { - default - eapply "${FILESDIR}"/${PV}-DESTDIR.patch \ - "${FILESDIR}"/${P}-install.patch - sed -i \ - -e "/^BINPATH/s:=.*:=/usr/bin/:" \ - -e "/^DATAPATH/s:=.*:=/usr/share/${PN}/:" \ - -e '/^SDL_LIB/s:$: $(LDFLAGS):' \ - -e '/^SDL_LIB/s:--static-:--:' \ - Makefile \ - || die "sed failed" -} - -src_compile() { - emake ECFLAGS="${CFLAGS}" -} - -src_install() { - default - newicon komidata/sprites_komi.bmp ${PN}.bmp - make_desktop_entry komi Komi /usr/share/pixmaps/${PN}.bmp - doman komi.6 -} diff --git a/games-arcade/komi/komi-1.04-r2.ebuild b/games-arcade/komi/komi-1.04-r2.ebuild new file mode 100644 index 000000000000..037419878c52 --- /dev/null +++ b/games-arcade/komi/komi-1.04-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop flag-o-matic toolchain-funcs + +DESCRIPTION="Komi the Space Frog - a simple SDL game" +HOMEPAGE="http://komi.sourceforge.net/" +SRC_URI=" + mirror://sourceforge/komi/${P}.tar.gz + https://dev.gentoo.org/~ionen/distfiles/${PN}.png" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + media-libs/libsdl[sound,video] + media-libs/sdl-mixer" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_compile() { + tc-export CC + + append-cppflags $($(tc-getPKG_CONFIG) --cflags sdl SDL_mixer || die) \ + -DDATAPATH="'\"${EPREFIX}/usr/share/${PN}/\"'" + append-libs $($(tc-getPKG_CONFIG) --libs sdl SDL_mixer || die) + + # simpler to use implicit rules than fix the Makefile + emake -f /dev/null LDLIBS="${LIBS}" ${PN} +} + +src_install() { + dobin ${PN} + + insinto /usr/share/${PN} + doins -r komidata/. + + doman ${PN}.6 + dodoc CHANGELOG.txt README.txt + + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} ${PN^} +} |