diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-arcade/trailblazer/trailblazer-0.9.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/trailblazer/trailblazer-0.9.ebuild')
-rw-r--r-- | games-arcade/trailblazer/trailblazer-0.9.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
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" +} |