summaryrefslogtreecommitdiff
path: root/games-arcade/trailblazer
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/trailblazer
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/trailblazer')
-rw-r--r--games-arcade/trailblazer/Manifest7
-rw-r--r--games-arcade/trailblazer/files/trailblazer-0.9-ldflags.patch11
-rw-r--r--games-arcade/trailblazer/files/trailblazer-0.9-underlink.patch11
-rw-r--r--games-arcade/trailblazer/metadata.xml8
-rw-r--r--games-arcade/trailblazer/trailblazer-0.9.ebuild44
5 files changed, 81 insertions, 0 deletions
diff --git a/games-arcade/trailblazer/Manifest b/games-arcade/trailblazer/Manifest
new file mode 100644
index 000000000000..ac6013d06366
--- /dev/null
+++ b/games-arcade/trailblazer/Manifest
@@ -0,0 +1,7 @@
+AUX trailblazer-0.9-ldflags.patch 317 SHA256 c61c014de95b5ca2e7fcc2d0005479c8d2aecdd06f54e80fb94a1fcbbb40da58 SHA512 ba7885017a4e1d6a653119d591205a9e640d9c17c7a8b79226ce1c8f6b3ff3e1a6727a7b2d78cb7cfe21263c290288c8e140d6abcce751e1d9c79feeed5c2ff2 WHIRLPOOL 57cb1919ef19f9d431be40c9c6d11864576c5ae852da1740c3292773dc0e3655087c1116a87b82be4d8ff3c46861fd2f00ddec4cfd479bf693c5e03c1922e616
+AUX trailblazer-0.9-underlink.patch 320 SHA256 b5a019ee1ba3898a90b709ea9ae7ebe1d3121afc3fe14957e5620c91be8ab73e SHA512 c7f1f69b86e81e26257cffed457c921bbf4d8e991249913b5f6a3a04bd5b24974f46e34484c96ce7f2c2b261e69ce711e5b14cb86c2026cbdfacfda783e3c05d WHIRLPOOL b9f1fa328e3fd0ba04c69ca31717bcfc55509aa3e67ed98d187c06989654bb6e23f3594ea52cf3a6b6356b7658da02319bf9a9410a9cae7d4bc34b3552b5d4e9
+DIST trailblazer-0.9.tgz 20753 SHA256 db7fdccd38fac4ec7559db33b21676525d870375da5b7c9ff15c11621b378be1 SHA512 fddb379c2aee41e85042f4100bf08b2f1ca6393716fef1afa964c25dbcabfcd7df1d5c678c23b0f0f3ae1e1c757b01945e04934f67273434d0b51d441114f884 WHIRLPOOL d1c24f9d8e31a72f47c255f4edf0242a608d40c48ab9a124c3c0fc93552d249792fc0a4b9c56386b3f827f7dacda45e511bf0a1c0fb521e02cb7d3dd6320f035
+EBUILD trailblazer-0.9.ebuild 1066 SHA256 278b8f24a48166d2d79dfc82b58b1c352f5c295786b20a129f746f80928fea37 SHA512 07bb96d6384c5daf7b749b68e8a7cf299472ecb0509578aada5b7fc82fcb9345d91608e6e513f028f30f7dc3210cfe6d43276b4f81dc1f0870f0f1510b9f7d7c WHIRLPOOL 645c8e04590732c3d90c4ca018dcae98e4d3747565d4a9b6b7fbc65a392b8089d4c53951469e00d032f1534a404db8b8110a00ccc9c156ec1993b93c35b157a1
+MISC ChangeLog 2521 SHA256 7de3c9199b6e8d8b29497a7c3bee744939e5299f4fc3f2e1f670534c439cbd66 SHA512 71cd11580be99e6f2be82bd8ce14b3ef197cb530f891eea088369c8ca7ade8868b299d74e2c8ab3349088503f2e795077ba50a2661d2e09a61c235c75373edcd WHIRLPOOL 066076c0f749613ac7060645817e443d6bdb8a1b99cf9bce304685125addd8df3c2c0ddb8626e354ad6b43e191e214d9e3937d1d4840277bfde6263350b269dd
+MISC ChangeLog-2015 1294 SHA256 c9fdaf0b5717de8f463865979aec8058dee51e9bb24a232fae9bbcb24c8a2edc SHA512 e4e626055a90eff7e3c8d2653840d01eec8ca837e08f7bbea075342f7b52aa8030d22782d323e0f19259e2172d606cf08e8b8f53590a39f0f9a4327a5ed68c30 WHIRLPOOL 1b60a51d62cc459da6db78b0fb40226732733d590b579daa8251c6df162ee70b4260074c15006b8eb62b8f82f8e04ab19444b6252c5b63b8e6c4fbfd067d2872
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-arcade/trailblazer/files/trailblazer-0.9-ldflags.patch b/games-arcade/trailblazer/files/trailblazer-0.9-ldflags.patch
new file mode 100644
index 000000000000..034a74e75f9e
--- /dev/null
+++ b/games-arcade/trailblazer/files/trailblazer-0.9-ldflags.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2010-09-30 23:56:21.000000000 +0200
++++ Makefile 2010-09-30 23:56:35.000000000 +0200
+@@ -9,7 +9,7 @@
+ bdir = /tmp/trailblazer-$(version)
+
+ all:
+- $(CC) $(sources) -o trailblazer $(cflags) $(libs)
++ $(CC) $(LDFLAGS) $(sources) -o trailblazer $(cflags) $(libs)
+
+ install:
+ cp trailblazer /usr/bin
diff --git a/games-arcade/trailblazer/files/trailblazer-0.9-underlink.patch b/games-arcade/trailblazer/files/trailblazer-0.9-underlink.patch
new file mode 100644
index 000000000000..31e9a1000324
--- /dev/null
+++ b/games-arcade/trailblazer/files/trailblazer-0.9-underlink.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2011-06-20 20:49:09.928013768 +0200
++++ Makefile 2011-06-20 20:49:18.725566328 +0200
+@@ -3,7 +3,7 @@
+ #
+
+ sources = game.c main.c road.c map.c gfx.c
+-libs = `sdl-config --libs`
++libs = `sdl-config --libs` -lm
+ cflags = -O2 -Wall `sdl-config --cflags`
+ version = 0.9
+ bdir = /tmp/trailblazer-$(version)
diff --git a/games-arcade/trailblazer/metadata.xml b/games-arcade/trailblazer/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-arcade/trailblazer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-arcade/trailblazer/trailblazer-0.9.ebuild b/games-arcade/trailblazer/trailblazer-0.9.ebuild
new file mode 100644
index 000000000000..590b24997fca
--- /dev/null
+++ b/games-arcade/trailblazer/trailblazer-0.9.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Guide a ball through a succession of levels while avoiding holes"
+HOMEPAGE="http://www.autismuk.freeserve.co.uk/"
+SRC_URI="http://www.autismuk.freeserve.co.uk/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.2.7[video]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ldflags.patch \
+ "${FILESDIR}"/${P}-underlink.patch
+
+ sed -i \
+ -e "s:-O2:${CFLAGS}:" \
+ Makefile || die "sed Makefile failed"
+
+ sed -i \
+ -e "s:/usr/share/trailblazer/trail\.dat:${GAMES_DATADIR}/${PN}/trail.dat:" \
+ -e "s:/usr/share/trailblazer/trail\.time:${GAMES_STATEDIR}/trail.time:" \
+ map.c || die "sed map.c failed"
+}
+
+src_install() {
+ dogamesbin trailblazer
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins trail.dat
+ dodoc README
+
+ dodir "${GAMES_STATEDIR}" \
+ && touch "${D}${GAMES_STATEDIR}/trail.time"
+
+ prepgamesdirs
+ fperms 660 "${GAMES_STATEDIR}/trail.time"
+}