summaryrefslogtreecommitdiff
path: root/games-arcade/blobwars
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-29 11:38:31 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-29 11:38:31 +0100
commit90c88731bd036e5698b281fbc0a5f3aa4c9983ac (patch)
tree83fc5facb6b12be510a37bc3d241cc63e965b13a /games-arcade/blobwars
parentfeb0daf81d888e9160f9f94502de09b66f2a63fd (diff)
gentoo resync : 29.06.2020
Diffstat (limited to 'games-arcade/blobwars')
-rw-r--r--games-arcade/blobwars/Manifest1
-rw-r--r--games-arcade/blobwars/blobwars-2.00-r1.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/games-arcade/blobwars/Manifest b/games-arcade/blobwars/Manifest
index bc5169bdbf86..56a402713acb 100644
--- a/games-arcade/blobwars/Manifest
+++ b/games-arcade/blobwars/Manifest
@@ -1,3 +1,4 @@
DIST blobwars-2.00.tar.gz 66982603 BLAKE2B 273b5eab5a569f7f4b78982499a85daf63e6fdfb7d4348290d64bbcbeb9be830bb7cf81a0a387df0daa176e7a2a82d62404e88c95f02d6af485bae054170ad38 SHA512 412afd029554e59e7947466f36b51ef863faf1712898397498d5497e9a38dced92777b7684c1fb231998d893a6ce2c435b8f4278429df41168385de8fa18725b
+EBUILD blobwars-2.00-r1.ebuild 1616 BLAKE2B 713c26a8d9111f20e96a4ecb81b8351533fe110874aac2f3a6276b75b8e635039dbd78820d477dc2e15c3b732cf08f6f9c5b24a0bc1020364203c2f605e0c8f7 SHA512 6cda604671dadc10c408cc2d032a6bea24ab9364b6f1407dc4cfb2d63c8de4011fa2cdb6de05f78592f336f620013867ad5da464546428c937ed4148ce1dbd80
EBUILD blobwars-2.00.ebuild 1124 BLAKE2B fae1ab03f69036eff035e706ebbcaa069ffafe3e3506915530fc6f68ee33832c9562853ab148673f3e5e70c3a216987355a9f26e4e0f30ec8359f15da8463fc3 SHA512 307dc3ab6bec986c2883e47a2520a7505f1bb7167be768ef21f6fc253c84d72c678d2fe73b232ff973e3a0ebd110b2459f68b7d0678b9952eb571a51398814a9
MISC metadata.xml 321 BLAKE2B 615ad32064001afb9fb3a3c4038f5e36e388193fef6855f157feb05085a5a803878035a225935e1c1350b10bc483c3ebd46c38f1f365828d2807d4387ce3a6d5 SHA512 9e885b0215caa2c061cfe52c19a389227087691b6ec1bca4fcd8c7279468454b21e32027c5f1d03aafdb982b873251ee8cddcad28987085d0960e3f39ad77867
diff --git a/games-arcade/blobwars/blobwars-2.00-r1.ebuild b/games-arcade/blobwars/blobwars-2.00-r1.ebuild
new file mode 100644
index 000000000000..1d51f12f8b9d
--- /dev/null
+++ b/games-arcade/blobwars/blobwars-2.00-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils xdg
+
+DESCRIPTION="Platform game about a blob and his quest to rescue MIAs from an alien invader"
+HOMEPAGE="https://sourceforge.net/projects/blobwars/ https://www.parallelrealities.co.uk/games/metalBlobSolid/ https://github.com/perpendicular-dimensions/blobwars"
+SRC_URI="mirror://sourceforge/blobwars/${P}.tar.gz"
+
+LICENSE="BSD CC-BY-SA-3.0 CC-BY-3.0 GPL-2 LGPL-2.1 fairuse public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ media-libs/libsdl2
+ media-libs/sdl2-mixer
+ media-libs/sdl2-ttf
+ media-libs/sdl2-image
+ media-libs/sdl2-net
+ sys-libs/zlib
+ virtual/libintl
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+"
+
+src_prepare() {
+ default
+
+ # Fixes from Fedora and OpenSuSE
+ sed -i -e 's|$(PREFIX)/games|$(PREFIX)/bin|;
+ s|$(PREFIX)/share/games|$(PREFIX)/share|;
+ s| -Werror||;
+ s|$(CXX) $(LIBS) $(GAMEOBJS) -o $(PROG)|$(CXX) $(GAMEOBJS) $(LIBS) -o $(PROG)|;
+ s|$(CXX) $(LIBS) $(PAKOBJS) -o pak|$(CXX) $(PAKOBJS) $(LIBS) -o pak|;
+ s|$(CXX) $(LIBS) $(MAPOBJS) -o mapeditor|$(CXX) $(MAPOBJS) $(LIBS) -o mapeditor|' \
+ Makefile || die
+ sed -i -e 's|gzclose(pak)|gzclose((gzFile)pak)|;
+ s|gzclose(fp)|gzclose((gzFile)fp)|' src/pak.cpp || die
+}
+
+src_compile() {
+ # USEPAK=1 breaks music
+ emake \
+ RELEASE="1" \
+ USEPAK="0"
+}
+
+src_install() {
+ emake \
+ BINDIR="/usr/bin/" \
+ USEPAK="0" \
+ DESTDIR="${D}" \
+ DOCDIR="/usr/share/doc/${PF}/html/" \
+ install
+
+ mv -vf \
+ "${D}"/usr/share/doc/${PF}/html/{changes,hacking,porting,readme} \
+ "${D}"/usr/share/doc/${PF}/
+}