/[gentoo-x86]/games-arcade/supertransball2/supertransball2-1.5.ebuild
Gentoo

Contents of /games-arcade/supertransball2/supertransball2-1.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Mar 16 07:27:31 2015 UTC (3 years, 5 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +12 -8 lines
EAPI=5

(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-arcade/supertransball2/supertransball2-1.5.ebuild,v 1.5 2010/10/16 19:41:49 tupone Exp $
4
5 EAPI=5
6 inherit eutils versionator games
7
8 MY_PV=$(delete_all_version_separators)
9 MY_P=stransball2-v${MY_PV}
10 FILE=${MY_P}-linux
11 DEBIAN_PATCH="${PN}_${PV}-3.diff"
12
13 DESCRIPTION="Thrust clone"
14 HOMEPAGE="http://www.braingames.getput.com/stransball2/"
15 SRC_URI="http://braingames.bugreport.nl/stransball2/${FILE}.zip
16 mirror://debian/pool/main/s/${PN}/${DEBIAN_PATCH}.gz"
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="x86 ~x86-fbsd"
20 IUSE=""
21
22 RDEPEND="media-libs/libsdl[sound,video]
23 media-libs/sdl-image
24 media-libs/sdl-mixer
25 media-libs/sdl-sound
26 media-libs/sge"
27 DEPEND="${RDEPEND}
28 app-arch/unzip"
29
30 S=${WORKDIR}/${P}/sources
31
32 src_unpack() {
33 unpack ${A}
34 mv -f "${FILE}" ${P}
35 }
36
37 src_prepare() {
38 cd "${WORKDIR}"
39 sed -i \
40 -e "s:/usr/share/games:${GAMES_DATADIR}:" \
41 "${DEBIAN_PATCH}" || die
42
43 epatch "${DEBIAN_PATCH}"
44
45 local deb_dir=${P}/debian/patches
46 rm -f "${deb_dir}"/00list
47 epatch "${deb_dir}"/*
48
49 cd "${S}"
50 sed -i \
51 -e "s: -I/usr/local/include/SDL::" \
52 -e "s:-g3 -O3:\$(CXXFLAGS):" \
53 -e "s:c++:\$(CXX):" \
54 Makefile || die "sed Makefile failed"
55 epatch "${FILESDIR}"/${P}-ldflags.patch
56 }
57
58 src_install() {
59 cd ..
60 dogamesbin ${PN}
61 make_desktop_entry ${PN} "Super Transball 2"
62 dodoc readme.txt
63 doman debian/supertransball2.6
64
65 insinto "${GAMES_DATADIR}/${PN}"
66 doins -r demos graphics maps sound
67
68 prepgamesdirs
69 }

  ViewVC Help
Powered by ViewVC 1.1.20