summaryrefslogtreecommitdiff
path: root/games-arcade/trailblazer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-arcade/trailblazer
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/trailblazer')
-rw-r--r--games-arcade/trailblazer/Manifest5
-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, 79 insertions, 0 deletions
diff --git a/games-arcade/trailblazer/Manifest b/games-arcade/trailblazer/Manifest
new file mode 100644
index 000000000000..3e42c34f58a2
--- /dev/null
+++ b/games-arcade/trailblazer/Manifest
@@ -0,0 +1,5 @@
+AUX trailblazer-0.9-ldflags.patch 317 BLAKE2B 49b4737c6527b209d12260314569224909ae9eba4a4b7643b426fdebf438ffc975f3a812380fa8bedfb7a4a3d1e36cc82cda0f2381a5cfcf42dee284c83b86ec SHA512 ba7885017a4e1d6a653119d591205a9e640d9c17c7a8b79226ce1c8f6b3ff3e1a6727a7b2d78cb7cfe21263c290288c8e140d6abcce751e1d9c79feeed5c2ff2
+AUX trailblazer-0.9-underlink.patch 320 BLAKE2B 06f88c4d95d5cafd818611d3f2c991cc82213a6e7f655f0ae8a2017d6404495568edb279e8cd509eaa2c437918dc33df83b160bc5950877ce974c0d582d789ac SHA512 c7f1f69b86e81e26257cffed457c921bbf4d8e991249913b5f6a3a04bd5b24974f46e34484c96ce7f2c2b261e69ce711e5b14cb86c2026cbdfacfda783e3c05d
+DIST trailblazer-0.9.tgz 20753 BLAKE2B f2cce7647ac9f5b9c2f048f6395f735a6c19432aafbbcea4e7210826a0773bf012a2772da1e44219d12d0ef1a96dc3f410404f0887bd0cbf8c1c5285ef708e22 SHA512 fddb379c2aee41e85042f4100bf08b2f1ca6393716fef1afa964c25dbcabfcd7df1d5c678c23b0f0f3ae1e1c757b01945e04934f67273434d0b51d441114f884
+EBUILD trailblazer-0.9.ebuild 1068 BLAKE2B f3b991d6fea73440b58f2341c83520a529b4916a685766e77cde058ef8b194000208d01178f1ce41bd107cd0ec19bf7ee49130524708ccb694de28472ffa54c0 SHA512 5eb1c4c2dfd506ff807d8d0c4dc0a8594cc66e877ca1909c144a90f1129ffd99745b292f6611c4d7eaf73e3d75d0e00e97ec613cf7f6a5a5c3a77aa335a4060b
+MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118
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..5638d0339bc1
--- /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"
+}