Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/netherearth/
Date: Wed, 02 May 2018 19:28:38
Message-Id: 1525289287.12d1242eb8a299643d9b67487c056b1aec62a37d.pacho@gentoo
1 commit: 12d1242eb8a299643d9b67487c056b1aec62a37d
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 2 18:47:34 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed May 2 19:28:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d1242e
7
8 games-strategy/netherearth: Drop old
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 games-strategy/netherearth/netherearth-0.52.ebuild | 80 ----------------------
13 1 file changed, 80 deletions(-)
14
15 diff --git a/games-strategy/netherearth/netherearth-0.52.ebuild b/games-strategy/netherearth/netherearth-0.52.ebuild
16 deleted file mode 100644
17 index 5fc80fe0afb..00000000000
18 --- a/games-strategy/netherearth/netherearth-0.52.ebuild
19 +++ /dev/null
20 @@ -1,80 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -inherit eutils games
26 -
27 -MY_PV="${PV/./}"
28 -DESCRIPTION="A remake of the SPECTRUM game Nether Earth"
29 -HOMEPAGE="http://www.braingames.getput.com/nether/"
30 -SRC_URI="http://www.braingames.getput.com/nether/sources.zip
31 - http://www.braingames.getput.com/nether/${PN}${MY_PV}.zip"
32 -
33 -LICENSE="all-rights-reserved"
34 -SLOT="0"
35 -KEYWORDS="~x86"
36 -IUSE=""
37 -RESTRICT="mirror bindist"
38 -
39 -RDEPEND=">=media-libs/libsdl-1.2.6-r3
40 - >=media-libs/sdl-mixer-1.2.5-r1
41 - media-libs/freeglut"
42 -DEPEND="${RDEPEND}
43 - app-arch/unzip"
44 -
45 -S=${WORKDIR}/sources
46 -
47 -data=../nether\ earth\ v${PV}
48 -
49 -src_unpack() {
50 - unzip -LL "${DISTDIR}/${PN}${MY_PV}.zip" >/dev/null || die
51 - unzip -LL "${DISTDIR}/sources.zip" >/dev/null || die
52 -}
53 -
54 -src_prepare() {
55 - DATA_DIR=${GAMES_DATADIR}/${PN}
56 -
57 - cp "${FILESDIR}/Makefile" . || die
58 -
59 - # Fix compilation errors/warnings
60 - epatch "${FILESDIR}"/${P}-linux.patch
61 -
62 - epatch "${FILESDIR}"/${P}-freeglut.patch \
63 - "${FILESDIR}"/${P}-glibc-212.patch \
64 - "${FILESDIR}"/${P}-ldflags.patch
65 -
66 - # Modify dirs and some fopen() permissions
67 - epatch "${FILESDIR}/${P}-gentoo-paths.patch"
68 - sed -i \
69 - -e "s:models:${DATA_DIR}/models:" \
70 - -e "s:textures:${DATA_DIR}/textures:" \
71 - -e "s:maps/\*:${DATA_DIR}/maps/\*:" \
72 - -e "s:\./maps:${DATA_DIR}/maps:" \
73 - mainmenu.cpp || die
74 - sed -i \
75 - -e "s:models:${DATA_DIR}/models:g" \
76 - -e "s:textures:${DATA_DIR}/textures:" \
77 - -e "s:sound/:${DATA_DIR}/sound/:" \
78 - nether.cpp || die
79 - sed -i -e "s:maps:${DATA_DIR}/maps:" \
80 - main.cpp || die
81 - sed -i -e "s:textures/:${DATA_DIR}/textures/:" \
82 - myglutaux.cpp || die
83 -
84 - cd "${data}"
85 - rm textures/thumbs.db
86 -}
87 -
88 -src_install() {
89 - dogamesbin nether_earth
90 -
91 - cd "${data}"
92 -
93 - # Install all game data
94 - insinto "${DATA_DIR}"
95 - doins -r maps models sound textures
96 -
97 - dodoc readme.txt
98 -
99 - prepgamesdirs
100 -}