summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-arcade/trailblazer
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-arcade/trailblazer')
-rw-r--r--games-arcade/trailblazer/Manifest1
-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.xml5
-rw-r--r--games-arcade/trailblazer/trailblazer-0.9.ebuild45
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"
+}