summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-01-20 02:17:03 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-01-20 02:17:03 +0000
commit88eb6779578a782dfc87a17f7290305fc03ea2fd (patch)
tree817fc89e2d9bdcc95715db44e03dfe69bdfa55e2 /games-fps/duke3d-data/duke3d-data-1.0.ebuild
parentadded for games-fps/duke3d-data (diff)
downloadgentoo-2-88eb6779578a782dfc87a17f7290305fc03ea2fd.tar.gz
gentoo-2-88eb6779578a782dfc87a17f7290305fc03ea2fd.tar.bz2
gentoo-2-88eb6779578a782dfc87a17f7290305fc03ea2fd.zip
initial commit - ebuild submitted by Brandon Captain via bug #162261
(Portage version: 2.1.6.4/cvs/Linux 2.6.27.8 i686)
Diffstat (limited to 'games-fps/duke3d-data/duke3d-data-1.0.ebuild')
-rw-r--r--games-fps/duke3d-data/duke3d-data-1.0.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/games-fps/duke3d-data/duke3d-data-1.0.ebuild b/games-fps/duke3d-data/duke3d-data-1.0.ebuild
new file mode 100644
index 000000000000..45b242ded9dd
--- /dev/null
+++ b/games-fps/duke3d-data/duke3d-data-1.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils games
+
+DESCRIPTION="Duke Nukem 3D data files"
+HOMEPAGE="http://www.3drealms.com/"
+SRC_URI=""
+
+LICENSE="DUKE3D"
+SLOT="0"
+KEYWORDS="~hppa ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="games-fps/duke3d"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ export CDROM_NAME_SET=("Existing Install" "Duke Nukem 3D CD")
+ cdrom_get_cds duke3d.grp:dvd/dn3dinst/duke3d.grp
+
+ if [[ ${CDROM_SET} -ne 0 && ${CDROM_SET} -ne 1 ]] ; then
+ die "Error locating data files.";
+ fi
+}
+
+src_install() {
+ local DATAROOT
+
+ case ${CDROM_SET} in
+ 0) DATAROOT= ;;
+ 1) DATAROOT="dn3dinst/" ;;
+ esac
+
+ insinto "${GAMES_DATADIR}"/duke3d
+ doins "${CDROM_ROOT}"/$DATAROOT/{duke3d.grp,duke.rts,game.con,user.con,demo2.dmo,defs.con,demo1.dmo} \
+ || die "doins failed"
+ prepgamesdirs
+}