diff options
Diffstat (limited to 'games-arcade/trailblazer')
-rw-r--r-- | games-arcade/trailblazer/Manifest | 1 | ||||
-rw-r--r-- | games-arcade/trailblazer/files/trailblazer-0.9-ldflags.patch | 11 | ||||
-rw-r--r-- | games-arcade/trailblazer/files/trailblazer-0.9-underlink.patch | 11 | ||||
-rw-r--r-- | games-arcade/trailblazer/metadata.xml | 5 | ||||
-rw-r--r-- | games-arcade/trailblazer/trailblazer-0.9.ebuild | 45 |
5 files changed, 73 insertions, 0 deletions
diff --git a/games-arcade/trailblazer/Manifest b/games-arcade/trailblazer/Manifest new file mode 100644 index 000000000000..90338f71ce0c --- /dev/null +++ b/games-arcade/trailblazer/Manifest @@ -0,0 +1 @@ +DIST trailblazer-0.9.tgz 20753 SHA256 db7fdccd38fac4ec7559db33b21676525d870375da5b7c9ff15c11621b378be1 SHA512 fddb379c2aee41e85042f4100bf08b2f1ca6393716fef1afa964c25dbcabfcd7df1d5c678c23b0f0f3ae1e1c757b01945e04934f67273434d0b51d441114f884 WHIRLPOOL d1c24f9d8e31a72f47c255f4edf0242a608d40c48ab9a124c3c0fc93552d249792fc0a4b9c56386b3f827f7dacda45e511bf0a1c0fb521e02cb7d3dd6320f035 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..d3c2cc926f0b --- /dev/null +++ b/games-arcade/trailblazer/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</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..337400bd302c --- /dev/null +++ b/games-arcade/trailblazer/trailblazer-0.9.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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" +} |