ChangeLog

# ChangeLog for games-strategy/netherearth
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/netherearth/ChangeLog,v 1.4 2008/05/30 06:36:41 phreak Exp $

30 May 2008; Christian Heim metadata.xml:
Removing Andrej Kacian (Ticho) from metadata.xml (as per #59986).

26 Sep 2006; Tristan Heaven
+files/netherearth-0.52-freeglut.patch, netherearth-0.52.ebuild:
Add patch for freeglut-2.4, bug #133062

27 Jun 2006; Chris Gianelloni
netherearth-0.52.ebuild:
Added www to the beginning of HOMEPAGE/SRC_URI and closing bug #137740.

*netherearth-0.52 (08 Sep 2005)

08 Sep 2005; Andrej Kacian
+files/netherearth-0.52-gentoo-paths.patch,
+files/netherearth-0.52-linux.patch, +files/Makefile, +metadata.xml,
+netherearth-0.52.ebuild:
Initial import. Based on ebuild by Alexandru Toma ,
bug #48062.

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX Makefile 1003 RMD160 ef32ff40017278bd3ec72397fec294890064c670 SHA1 bead9ede2d198f81ca8d8afef12f9a8e701e6576 SHA256 436792a5c1763fff48f7ec33175b323da36c3ceed89fcb3b4d30692a216ebbce
AUX netherearth-0.52-freeglut.patch 367 RMD160 2bc91ec5643945940f67554570e5017995681555 SHA1 a0da0404801572a3bc81667bf1b1a8c5c3357f2b SHA256 6a2a6bd3f11b326f8e5c5d4729fe72fb51d04f6cbd75136b4fe5178de5aa027e
AUX netherearth-0.52-gentoo-paths.patch 4356 RMD160 c9a5d588e509d2709623ae269269c9d1b461ff48 SHA1 4f3bf07b9a8d294d8a0da84be016697f47bfcbef SHA256 62a2243f3244f0d238383d61909cbd4ebc6c3f6a24e6093bac05657c48913a36
AUX netherearth-0.52-linux.patch 1255 RMD160 c8b679407421d1eb1af37ed59357624bf6cd74f0 SHA1 1fed7d7c2bf10565bed73f6ac33be4e8e8c9883b SHA256 3761a82cfb8aa70781a83a9af5d7a2eca5dd0dac98adb14aa232785cdf37a315
DIST netherearth052.zip 872397 RMD160 124ca449b3bf02336f765e673e9307dea693f349 SHA1 6a968dfc4e1c7622c243c5123c29e2b5b02bc890 SHA256 79d533a56b4939a402edd7665f234e7f462e68b00ea36d9ae110f02a36357caf
DIST sources.zip 75918 RMD160 ba75e3356ea4cae49b548ee9aaa46b70f677903f SHA1 04fe9d3b4428b2f57b160b6eb125865f594faa62 SHA256 0d4f80f5d3f73e957ccb7c292dcc830b88cb5624aa086ea3416522a8a66b766f
EBUILD netherearth-0.52.ebuild 2067 RMD160 80673e272d23acc0ec27b9afafbaf8457f4ab007 SHA1 1b6b29a0ef7496837e5b3420cb13d385767872e5 SHA256 5c5d64909e847ec26a14a7a05f5e13515c32384c41164fd864b2016d9164d6d2
MISC ChangeLog 991 RMD160 5456298e77fe1ca6b1ff055faad91a6c3c052f23 SHA1 bc1874b14319c25ca71130fcd319a88988c9b81d SHA256 668bfd1a2afb9b49dcdd87a4693396af83c22d4dc206626ecdc777ab8c063aa2
MISC metadata.xml 436 RMD160 94ce82a0b7fb6414f91d1c1e33ce7538c183040a SHA1 84c7e3e8c3a49146124ad734248506c576bca1dc SHA256 95624e4ca82861963e6a1414a75493eb67db3f504e00be22a9376c941c63c7cf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkg/oH8ACgkQyuNVb5qfaOZHhACguS+xFgb+YoKa6gTkDqHzi+XJ
2WUAmwXQN/C4l+YUwgtYff5FeT+SH6WZ
=43lV
-----END PGP SIGNATURE-----

files

metadata.xml




games

Nether Earth was the very first real time strategy game. It worked on a
SPECTRUM machine, and only needed 48KB of RAM to work!! It has all the
typical elements of strategy games: resources, factories, combat units,
etc.

netherearth-0.52.ebuild

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/netherearth/netherearth-0.52.ebuild,v 1.4 2006/09/26 16:51:23 nyhm Exp $

inherit eutils games

MY_PV="${PV/./}"
DESCRIPTION="A remake of the SPECTRUM game Nether Earth."
HOMEPAGE="http://www.braingames.getput.com/nether/"
SRC_URI="http://www.braingames.getput.com/nether/sources.zip
http://www.braingames.getput.com/nether/${PN}${MY_PV}.zip"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND=">=media-libs/libsdl-1.2.6-r3
>=media-libs/sdl-mixer-1.2.5-r1
virtual/glut"

DEPEND="${RDEPEND}
app-arch/unzip"

S=${WORKDIR}/sources

data=../nether\ earth\ v${PV}

src_unpack() {
DATA_DIR=${GAMES_DATADIR}/${PN}

unzip -LL "${DISTDIR}/${PN}${MY_PV}.zip" >/dev/null || die "unzip ${PN}${MY_PV} failed"
unzip -LL "${DISTDIR}/sources.zip" >/dev/null || die "unzip sources.zip failed"
cd "${S}"
cp "${FILESDIR}/Makefile" . || die "Makefile copying failed"

# Fix compilation errors/warnings
epatch "${FILESDIR}/${P}-linux.patch"

epatch "${FILESDIR}/${P}-freeglut.patch"

# Modify dirs and some fopen() permissions
epatch "${FILESDIR}/${P}-gentoo-paths.patch"
sed -i \
-e "s:models:${DATA_DIR}/models:" \
-e "s:textures:${DATA_DIR}/textures:" \
-e "s:maps/\*:${DATA_DIR}/maps/\*:" \
-e "s:\./maps:${DATA_DIR}/maps:" \
mainmenu.cpp || die "sed mainmenu.cpp failed"
sed -i \
-e "s:models:${DATA_DIR}/models:g" \
-e "s:textures:${DATA_DIR}/textures:" \
-e "s:sound/:${DATA_DIR}/sound/:" \
nether.cpp || die "sed nether.cpp failed"
sed -i -e "s:maps:${DATA_DIR}/maps:" \
main.cpp || die "sed main.cpp failed"
sed -i -e "s:textures/:${DATA_DIR}/textures/:" \
myglutaux.cpp || die "sed myglutaux.cpp failed"

cd "${data}"
rm textures/thumbs.db
}

src_install() {
dogamesbin nether_earth || die "dogamesbin failed"

cd "${data}"

# Install all game data
insinto "${DATA_DIR}"
doins -r maps models sound textures || die "doins failed"

dodoc readme.txt

prepgamesdirs
}