summaryrefslogtreecommitdiff
path: root/games-arcade/opentyrian
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/opentyrian
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/opentyrian')
-rw-r--r--games-arcade/opentyrian/Manifest9
-rw-r--r--games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff15
-rw-r--r--games-arcade/opentyrian/files/2.1.20130907-datapath.diff26
-rw-r--r--games-arcade/opentyrian/metadata.xml15
-rw-r--r--games-arcade/opentyrian/opentyrian-2.1.20130907-r1.ebuild49
-rw-r--r--games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild45
6 files changed, 159 insertions, 0 deletions
diff --git a/games-arcade/opentyrian/Manifest b/games-arcade/opentyrian/Manifest
new file mode 100644
index 000000000000..97b976535347
--- /dev/null
+++ b/games-arcade/opentyrian/Manifest
@@ -0,0 +1,9 @@
+AUX 2.1.20130907-cflag-idiocy.diff 583 SHA256 44d34a812e2b719709a640a7cdc7bdbc5e9e37238869aafddcdcb42eb56e1ff2 SHA512 fd12ebaabd2191baa248019b122acad205f1803b0abde19ae54d410550529bff93d42dfe26543d295efe3b4c6cd74e1d77681467dc8321832561b07bda92d9c4 WHIRLPOOL 2b5d917e6469b798c870b454281cfc09adfb8a760737dab4edc742954b6befbc3eade9528ecd9a8bb400c6548109c625ec7b1db65ed6994a3dd189b9b3cb3d9b
+AUX 2.1.20130907-datapath.diff 886 SHA256 38b82e8710b0519017f4f9c73e051e97f4d51169b9221068f0a2ee991dcf1161 SHA512 dcc5bf8e1c1384e7615112bf60f317f8bd3bae11e1fff1bce80a8a638fc6b719f4787f69d01f64dab2aecab4ef3007cb708e1b2891b6cb7c6213b2d495924d2a WHIRLPOOL 653ffa72df2e6ef510ef5bd18928eddfec0d26be1392b3ddc8baaf91cbf4b2788a8f2b4ac829c46a0bfaa2f0cc338000e5905f06fe091ec5f9f8cae9f62ae426
+DIST opentyrian-2.1.20130907-src.tar.gz 297517 SHA256 f54b6b3cedcefa187c9f605d6164aae29ec46a731a6df30d351af4c008dee45f SHA512 1a560f2061496fbbb57b6334ab207b00a6b2e6a4d6164c6df6ad535ae9d0435c32c3db51d3ce2a0a79eb66d72723d112c1993f59b781750f9bd97afb643a0b67 WHIRLPOOL 67544f4ca713837ab12c1dd7f89f00a2a871b71d85252e840586630d442c99540bcaa52e0ef168e984ea906dfdaefd47e8d0b402a5f3ffefe77d2fa04acd1b3c
+DIST tyrian21.zip 4754048 SHA256 7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277 SHA512 639aa773778386c14ce508feb4729512d00f80182a3bb0fe8bba4ee38bce91da1867ca93f1a7e5e30ff127da077eed275d8dd6ba82042b627b84f1606e2d6bce WHIRLPOOL 2f118dbc165df1d0ebd95edc1e43fedd7f7b19edbe09ea73413aacbd6cd2b10f64bdef26aea61f00f627285ffa7d80748add6f174d0c915e75a585abe06db180
+EBUILD opentyrian-2.1.20130907-r1.ebuild 1471 SHA256 d3798f5b8bce7399f3cd7a5d056445c4e5f8e8db02493ee25c7721fb4527d3dd SHA512 f29aa8a0bd8ad1fb4a4b574bb35a8843b295823125ae3eec2ce3f773e7688a330a578ac3c0520ad0726d3aa9656eee136cd63bd036971e3f3b98a0eefc70ec64 WHIRLPOOL a3a76d42fc26b4c95a2e2d0b2602aed007879a2654f67c425eaa74087bf3947b1b7987b638858e33cdf0c087fbbd8517e72e2488ece514b4964089efdb149469
+EBUILD opentyrian-2.1.20130907.ebuild 1433 SHA256 88d2e5771b02dbe292c413d0e0c3f292a925527696d6f2a5945b0a57ee68301b SHA512 a22a58f62e56d78c4bf467200607b2912eea7dfdfcf5cc4932cde95b9019541fc1f34f40f9a16029efff1e79f64f0eee10b3722b76487f3f1526ec57e24c0f29 WHIRLPOOL 0bdacbd302ef81d137b8ba484bd7f3049772a62f3eba0e6ec9102711fde108760da4144dbb4192105e7c9a13604d3eaa1d14c8f96ba2ef1df3e15676393a7ce9
+MISC ChangeLog 4090 SHA256 d13eeed970abf3f87d8b077156e4fccbb0ea2e51e8b4de9a0ee6832ef8a2d769 SHA512 62e8cf08cc03740d4d62944bc72662f07444e8fd2463b2a3fd4b00b1c80bd4bcf32892c8f7bd22d46ecbe0143f8e6b7185a2476836e41175585ffe303eb5a92d WHIRLPOOL 062b2fabe559cf75d2956527fcff7bb534f5985882eaee0bb9965e39082a46d829df249ac68f358beba424f84b5d6701152d1a4859adf1dcf3ecd30d11633a66
+MISC ChangeLog-2015 2801 SHA256 9aa02a4833344ae065736f5aafcb0b3523a485cb0365541bed096126025727db SHA512 ed3e5b803aabef09a09dd86b5f4ce3351b2726d570db565a1c9c7aa434c243b347e6ce786dd0ffef113df642c6c1c8a142437ebfcf205e9af815d3bc5666d99c WHIRLPOOL 9fe01f4adb06bbb2c533584a83b6885ffb85f0b5534452bcb16b8a509c4a1e9bf3c8f6f6d1e3032e3afa6f9f29a348d357049da85c4736f318aa4643fb2e065d
+MISC metadata.xml 464 SHA256 4ce2b24a832f66fbcbcfcc47c06fddd7e5a3a8a32701d7094190e81d77d84ee4 SHA512 98a768457cc15fd1a16e5fd6ab54bfa7a969ca51f8edcfdc93326c8b36b358eec1da67937b15fcee92d436e464b42fc57ead8f1a1c7c1bdcc94435e713cac379 WHIRLPOOL 40834311033e5b0e0b34a282ffc565550ba8763b64a9bc32c5eee851bf09d51f916b394ea0da6cb41fc030b9e1e1162c3c12657a408bce7b2b15132feba12ea9
diff --git a/games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff b/games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff
new file mode 100644
index 000000000000..39ccf1c79f66
--- /dev/null
+++ b/games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff
@@ -0,0 +1,15 @@
+diff -uNr opentyrian-2.1.20130907.ORIG/Makefile opentyrian-2.1.20130907/Makefile
+--- opentyrian-2.1.20130907.ORIG/Makefile 2013-12-08 17:38:06.982842189 +0000
++++ opentyrian-2.1.20130907/Makefile 2013-12-08 17:38:26.843842798 +0000
+@@ -21,11 +21,6 @@
+
+ # FLAGS ####################################################
+
+-ifneq ($(MAKECMDGOALS), release)
+- EXTRA_CFLAGS += -g3 -O0 -Werror
+-else
+- EXTRA_CFLAGS += -g0 -O2 -DNDEBUG
+-endif
+ EXTRA_CFLAGS += -MMD -pedantic -Wall -Wextra -Wno-missing-field-initializers
+ ifeq ($(WITH_NETWORK), true)
+ EXTRA_CFLAGS += -DWITH_NETWORK
diff --git a/games-arcade/opentyrian/files/2.1.20130907-datapath.diff b/games-arcade/opentyrian/files/2.1.20130907-datapath.diff
new file mode 100644
index 000000000000..5b0143ed9a50
--- /dev/null
+++ b/games-arcade/opentyrian/files/2.1.20130907-datapath.diff
@@ -0,0 +1,26 @@
+diff -uNr opentyrian-2.1.20130907.ORIG/Makefile opentyrian-2.1.20130907/Makefile
+--- opentyrian-2.1.20130907.ORIG/Makefile 2013-12-08 17:40:23.470846371 +0000
++++ opentyrian-2.1.20130907/Makefile 2013-12-08 17:40:49.355847165 +0000
+@@ -49,6 +49,10 @@
+ ALL_LDFLAGS += $(LDFLAGS)
+ LDLIBS += $(EXTRA_LDLIBS) $(SDL_LDLIBS)
+
++ifneq ($(DATA_PATH), )
++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\"
++endif
++
+ # RULES ####################################################
+
+ .PHONY : all release clean
+diff -uNr opentyrian-2.1.20130907.ORIG/src/file.c opentyrian-2.1.20130907/src/file.c
+--- opentyrian-2.1.20130907.ORIG/src/file.c 2013-12-08 17:40:23.468846371 +0000
++++ opentyrian-2.1.20130907/src/file.c 2013-12-08 17:40:49.355847165 +0000
+@@ -34,7 +34,7 @@
+ #ifdef TARGET_MACOSX
+ tyrian_game_folder(),
+ #endif
+- "/usr/share/opentyrian/data"
++ DATA_PATH
+ };
+
+ static const char *dir = NULL;
diff --git a/games-arcade/opentyrian/metadata.xml b/games-arcade/opentyrian/metadata.xml
new file mode 100644
index 000000000000..161bc1494dc2
--- /dev/null
+++ b/games-arcade/opentyrian/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="bitbucket">opentyrian/opentyrian</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/opentyrian/opentyrian-2.1.20130907-r1.ebuild b/games-arcade/opentyrian/opentyrian-2.1.20130907-r1.ebuild
new file mode 100644
index 000000000000..5b9619682157
--- /dev/null
+++ b/games-arcade/opentyrian/opentyrian-2.1.20130907-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter"
+HOMEPAGE="https://bitbucket.org/opentyrian/opentyrian/wiki/Home"
+SRC_URI="http://darklomax.org/tyrian/tyrian21.zip
+ http://www.camanis.net/${PN}/releases/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-net"
+
+# Yes, mercurial is needed to set the build version stamp.
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-vcs/mercurial"
+
+PATCHES=(
+ "${FILESDIR}/${PV}-datapath.diff"
+ "${FILESDIR}/${PV}-cflag-idiocy.diff"
+)
+
+src_compile() {
+ emake DATA_PATH="/usr/share/${PN}" || die "Compilation failed"
+}
+
+src_install() {
+ dobin opentyrian || die "Failed to install game binary"
+ dosym ../../usr/bin/opentyrian /usr/bin/tyrian || die "Failed to symlink"
+ dodoc CREDITS NEWS README || die "Failed to install documentation"
+ domenu linux/opentyrian.desktop || die "Failed to install desktop file"
+ for i in linux/icons/*.png ; do
+ local size=`echo ${i} | sed -e 's:.*-\([0-9]\+\).png:\1:'`
+ insinto /usr/share/icons/hicolor/${size}x${size}/apps
+ newins ${i} opentyrian.png || die "Failed to install program icon"
+ done
+ insinto "/usr/share/${PN}"
+ cd "${WORKDIR}/tyrian21"
+ rm *.exe dpmi16bi.ovl loudness.awe || die "Failed to remove win32 binaries"
+ doins * || die "Failed to install game data"
+}
diff --git a/games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild b/games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild
new file mode 100644
index 000000000000..3cebb6b78968
--- /dev/null
+++ b/games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit base games
+
+DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter"
+HOMEPAGE="https://bitbucket.org/opentyrian/opentyrian/wiki/Home"
+SRC_URI="http://darklomax.org/tyrian/tyrian21.zip
+ http://www.camanis.net/${PN}/releases/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-net"
+# Yes, mercurial is needed to set the build version stamp.
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-vcs/mercurial"
+PATCHES=(
+ "${FILESDIR}/${PV}-datapath.diff"
+ "${FILESDIR}/${PV}-cflag-idiocy.diff"
+)
+
+src_compile() {
+ emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed"
+}
+
+src_install() {
+ dogamesbin opentyrian || die "Failed to install game binary"
+ dosym "${GAMES_BINDIR}/opentyrian" "${GAMES_BINDIR}/tyrian" || die "Failed to symlink"
+ dodoc CREDITS NEWS README || die "Failed to install documentation"
+ domenu linux/opentyrian.desktop || die "Failed to install desktop file"
+ for i in linux/icons/*.png ; do
+ local size=`echo ${i} | sed -e 's:.*-\([0-9]\+\).png:\1:'`
+ insinto /usr/share/icons/hicolor/${size}x${size}/apps
+ newins ${i} opentyrian.png || die "Failed to install program icon"
+ done
+ insinto "${GAMES_DATADIR}/${PN}"
+ cd "${WORKDIR}/tyrian21"
+ doins * || die "Failed to install game data"
+ prepgamesdirs
+}