summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2021-08-02 18:40:08 +0200
committerIonen Wolkens <ionen@gentoo.org>2021-08-02 14:17:00 -0400
commit405f1eb2b0d7201ba4ee5cf20eb7e603d859aee0 (patch)
tree5d78fc530c07f7910bd934fdc8554ef454b069aa /games-arcade
parentapp-misc/broot: bump to 1.6.3 (diff)
downloadgentoo-405f1eb2b0d7201ba4ee5cf20eb7e603d859aee0.tar.gz
gentoo-405f1eb2b0d7201ba4ee5cf20eb7e603d859aee0.tar.bz2
gentoo-405f1eb2b0d7201ba4ee5cf20eb7e603d859aee0.zip
games-arcade/defendguin: EAPI8, ebuild improvements
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/defendguin/Manifest1
-rw-r--r--games-arcade/defendguin/defendguin-0.0.12-r2.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/games-arcade/defendguin/Manifest b/games-arcade/defendguin/Manifest
index 1c3ec4e32a71..410c7a2bc99c 100644
--- a/games-arcade/defendguin/Manifest
+++ b/games-arcade/defendguin/Manifest
@@ -1 +1,2 @@
DIST defendguin-0.0.12.tar.gz 2235694 BLAKE2B 4e694edb5a8e51948e343da8ba4555062505c1c7f2563e291cc4f421624b791630dec7b0c7ce08df0ca0db40070418cd67f750fbe525ef1b1d1577951a5224bd SHA512 3a62c7ac62b016eeb6fc63655e8a8c1ac6c5c7cae7eee03c4ab0b9951ba605c7634336d94adb538e94ccbf1d9f927ac530f58da87413a4b1555b2684681e4167
+DIST defendguin.png 4444 BLAKE2B 54790605accf524c8fff3b465ace1d09f2a320a66dd4dcf7a216eb74489a02ff029c95aaec32ad31ca4491809ccc8bdf5eecab44c7a6ce7060db96bd01d2c8de SHA512 3adc8db2ea8c3f726b03fdfafba3e79121edb8b3ca70a4006c288ccbebb5d35c104f0095d3812a7c094dc23760bd846902133d5252ae7e186ddf1a114bfb37e7
diff --git a/games-arcade/defendguin/defendguin-0.0.12-r2.ebuild b/games-arcade/defendguin/defendguin-0.0.12-r2.ebuild
new file mode 100644
index 000000000000..5094ba506e91
--- /dev/null
+++ b/games-arcade/defendguin/defendguin-0.0.12-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop toolchain-funcs
+
+DESCRIPTION="Clone of the arcade game Defender, but with a Linux theme"
+HOMEPAGE="http://www.newbreedsoftware.com/defendguin/"
+SRC_URI="
+ ftp://ftp.tuxpaint.org/unix/x/defendguin/src/${P}.tar.gz
+ https://dev.gentoo.org/~ionen/distfiles/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ media-libs/libsdl[joystick,sound,video]
+ media-libs/sdl-mixer[mod]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ tc-export CC
+ sed -e "s|\$(DATA_PREFIX)|${EPREFIX}/usr/share/${PN}/|" \
+ -e '/^CFLAGS=.*-O2/d' \
+ -e '/^CFLAGS=/s|=|+= $(LDFLAGS) |' \
+ -i Makefile || die
+ rm data/images/l2r.sh || die
+}
+
+src_install() {
+ dobin ${PN}
+
+ insinto /usr/share/${PN}
+ doins -r data/.
+
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} ${PN^}
+
+ doman src/${PN}.6
+ dodoc docs/{AUTHORS,CHANGES,README,TODO}.txt
+}