ChangeLog

# ChangeLog for games-fps/industri
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/industri/ChangeLog,v 1.10 2008/01/30 17:30:00 nyhm Exp $

30 Jan 2008; Tristan Heaven industri-1.01.ebuild:
Depend on virtual/opengl and not media-libs/mesa

02 Jul 2007; Tristan Heaven
+files/industri-1.01-exec-stack.patch, industri-1.01.ebuild:
remove need for an executable stack

21 Feb 2007; Piotr JaroszyƄski ChangeLog:
Transition to Manifest2.

11 Jan 2007; Chris Gianelloni industri-1.01.ebuild:
Add games-fps/quake1-data to RDEPEND w/ USE=cdinstall, since it requires the
data to play.

05 Dec 2006; Chris Gianelloni industri-1.01.ebuild:
Removing old virtual/x11 dependency.

22 Mar 2006; Michael Sterrett industri-1.01.ebuild:
modular X deps

16 Sep 2005; Michael Sterrett industri-1.01.ebuild:
needs app-arch/unzip; tidy

03 Jun 2004; Aron Griffis industri-1.01.ebuild:
Fix use invocation

*industri-1.01 (30 Oct 2003)

30 Oct 2003; Mike Frysinger :
Initial import. Ebuild submitted by me.

Manifest

AUX industri-1.01-exec-stack.patch 642 RMD160 ddb22f84e2daf1f2eee27ad13e30b7175aab2e4f SHA1 3df0fd513eb05e63ac83e897aef0cff51b7dcbb5 SHA256 d04cbf31f16929b27040ea9f4e599db2ea4e14b696708034ae523ff406de011c
AUX industri.pretty 42 RMD160 45b349d4a44a8cdeb4fd2215af11be46b2ce33e3 SHA1 9d44b2cdfe7862993cba4581bad1b4d87b87960c SHA256 127a00f5ce37b1502a09d049d9ad32e468c398ba0a98fbf66142d1408c382ba3
DIST industri-1.00.zip 30339989 RMD160 a8c3086f0105c4c9f6ad8405fb58297c3a2fba26 SHA1 ba383c48ab043849b5a6908f550ad99356f4d2d2 SHA256 6c0761c6eacb501fffe37f9be4b9e2ae62074f8714c4ef36251241aba6b90652
DIST industri_BIN-1.01-src.tar.gz 1086838 RMD160 288c35c9864d127ec1ea0c7f4bf90f65480c8ebf SHA1 34b3dfa47c8d838ad9d79432906f8be3ddf1e479 SHA256 b702b819c0b99cc9a7f8e9ec89c9a58812212826f592e3594904b4cd3cdd09f8
EBUILD industri-1.01.ebuild 1960 RMD160 03f1bea43477e549f91bed7bad27db0f44b7970e SHA1 8f8ddb464ec8c6ba1d9108dd15e98afee97aaed9 SHA256 90f0b5d599fd089ae94c75c9877c6fbb1ca46a66f5a853bf6c648fe82d1e57fb
MISC ChangeLog 1281 RMD160 3b42cb884279e41d7893a72498b3de955e285486 SHA1 12c8cb5e49c0f15bcbc95896dc1f0efd1b752d44 SHA256 dd02a26cf8b8d5b07cdd40d335a9507269bd408a3064e87a4e14f531bcc3105c
MISC metadata.xml 579 RMD160 f45d7504b9b1e9ab4a41fdf5aa396b6d7f71576d SHA1 3d060ebb0e9cd696cdcc8962363e3298c9b3b452 SHA256 2a18b6d76e1fe87370d6113bca5c558e0073866f5fa2ef316d76874b79aafb2a

files

industri-1.01.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/industri/industri-1.01.ebuild,v 1.15 2008/01/30 17:30:00 nyhm Exp $

inherit eutils toolchain-funcs games

DESCRIPTION="Quake/Tenebrae based, single player game"
HOMEPAGE="http://industri.sourceforge.net/"
SRC_URI="mirror://sourceforge/industri/industri_BIN-${PV}-src.tar.gz
mirror://sourceforge/industri/industri-1.00.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="cdinstall"

RDEPEND="virtual/opengl
x11-libs/libXxf86dga
x11-libs/libXext
x11-libs/libX11
x11-libs/libXxf86vm
media-libs/libpng
cdinstall? ( games-fps/quake1-data )"
DEPEND="${RDEPEND}
x11-proto/xf86dgaproto
x11-proto/xextproto
x11-proto/xf86vidmodeproto
x11-proto/xproto
app-arch/unzip"

S=${WORKDIR}/industri_BIN

src_unpack() {
unpack ${A}

cd "${S}"/linux
mv Makefile.i386linux Makefile
sed -i -e "s:-mpentiumpro.*:${CFLAGS} \\\\:" Makefile || die "sed failed"

# Remove duplicated typedefs #71841
cd "${S}"
for typ in PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC PFNGLVERTEXARRAYRANGEAPPLEPROC ; do
if echo '#include ' | $(tc-getCC) -E - 2>/dev/null | grep -sq ${typ} ; then
sed -i \
-e "/^typedef.*${typ}/d" \
glquake.h \
|| die "sed failed"
fi
done

epatch "${FILESDIR}"/${P}-exec-stack.patch
}

src_compile() {
emake \
-C linux \
MASTER_DIR="${GAMES_DATADIR}"/quake1 \
build_release \
|| die "emake failed"
}

src_install() {
newgamesbin linux/release*/bin/industri.run industri || die
dogamesbin "${FILESDIR}"/industri.pretty || die
insinto /usr/share/icons
doins industri.ico quake.ico || die
dodoc linux/README
cd "${WORKDIR}"/${PN}
dodoc *.txt
insinto "${GAMES_DATADIR}"/quake1/${PN}
doins *.pak *.cfg || die
prepgamesdirs
}

pkg_postinst() {
games_pkg_postinst
if ! use cdinstall
then
elog "You need to copy pak0.pak to ${GAMES_DATADIR}/quake1 to play."
fi
}

metadata.xml




games

industri is a Quake based, single player game using a modified version of the
Tenebrae 1.x engine. The Tenebrae engine is an Open Source (GNU GPL) modification
of Quake that brings per-pixel lighting, stencil shadows, hi-res textures,
bumpmap and normalmaps to the gaming experince.

The focus of industri is a rich single-player game and engine. There is no
multi-player at all.