summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-11-22 23:06:53 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-11-22 23:06:53 +0000
commit04967cb7a5713d016045a741ebf0a245b7d62351 (patch)
treef05844d818878324e7ca35a9d2affde77f4b8a67 /games-fps
parentmask gog useflag of games-fps/duke3d-data for hppa and ppc32 (diff)
downloadgentoo-2-04967cb7a5713d016045a741ebf0a245b7d62351.tar.gz
gentoo-2-04967cb7a5713d016045a741ebf0a245b7d62351.tar.bz2
gentoo-2-04967cb7a5713d016045a741ebf0a245b7d62351.zip
add gog useflag
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/duke3d-data/ChangeLog5
-rw-r--r--games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild63
-rw-r--r--games-fps/duke3d-data/metadata.xml5
3 files changed, 46 insertions, 27 deletions
diff --git a/games-fps/duke3d-data/ChangeLog b/games-fps/duke3d-data/ChangeLog
index 72e2d88a083d..e077994c7de3 100644
--- a/games-fps/duke3d-data/ChangeLog
+++ b/games-fps/duke3d-data/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-fps/duke3d-data
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d-data/ChangeLog,v 1.8 2013/06/28 00:13:48 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d-data/ChangeLog,v 1.9 2013/11/22 23:06:53 hasufell Exp $
+
+ 22 Nov 2013; Julian Ospald <hasufell@gentoo.org> duke3d-data-1.0-r1.ebuild:
+ add gog useflag
*duke3d-data-1.0-r1 (28 Jun 2013)
diff --git a/games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild b/games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild
index fdaa801ed328..e28b93d9bddd 100644
--- a/games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild
+++ b/games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild
@@ -1,51 +1,64 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild,v 1.1 2013/06/28 00:13:48 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild,v 1.2 2013/11/22 23:06:53 hasufell Exp $
+EAPI=5
+
+CDROM_OPTIONAL="yes"
inherit eutils cdrom games
DESCRIPTION="Duke Nukem 3D data files"
HOMEPAGE="http://www.3drealms.com/"
-SRC_URI=""
+SRC_URI="gog? ( setup_duke3d_2.0.0.84.exe )"
LICENSE="DUKE3D"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
-IUSE=""
+IUSE="gog"
+REQUIRED_USE="^^ ( cdinstall gog )"
-DEPEND=""
+DEPEND="gog? ( app-arch/innoextract )"
RDEPEND="|| ( games-fps/eduke32 games-fps/duke3d )"
S=${WORKDIR}
src_unpack() {
- export CDROM_NAME_SET=(
- "Existing Install"
- "Duke Nukem 3D CD"
- "Duke Nukem 3D Atomic Edition CD"
- )
- cdrom_get_cds duke3d.grp:dvd/dn3dinst/duke3d.grp:atominst/duke3d.grp
-
- if [[ ${CDROM_SET} -ne 0
- && ${CDROM_SET} -ne 1
- && ${CDROM_SET} -ne 2 ]]
- then
- die "Error locating data files.";
+ if use cdinstall ; then
+ export CDROM_NAME_SET=(
+ "Existing Install"
+ "Duke Nukem 3D CD"
+ "Duke Nukem 3D Atomic Edition CD"
+ )
+ cdrom_get_cds duke3d.grp:dvd/dn3dinst/duke3d.grp:atominst/duke3d.grp
+
+ if [[ ${CDROM_SET} -ne 0
+ && ${CDROM_SET} -ne 1
+ && ${CDROM_SET} -ne 2 ]]
+ then
+ die "Error locating data files.";
+ fi
+ else
+ innoextract --lowercase "${DISTDIR}"/setup_duke3d_2.0.0.84.exe
fi
}
src_install() {
local DATAROOT
- case ${CDROM_SET} in
- 0) DATAROOT="" ;;
- 1) DATAROOT="dn3dinst/" ;;
- 2) DATAROOT="atominst/" ;;
- esac
-
insinto "${GAMES_DATADIR}"/duke3d
- # avoid double slash
- doins "${CDROM_ROOT}"/${DATAROOT}{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con} \
- || die "doins failed"
+
+ if use cdinstall ; then
+ case ${CDROM_SET} in
+ 0) DATAROOT="" ;;
+ 1) DATAROOT="dn3dinst/" ;;
+ 2) DATAROOT="atominst/" ;;
+ esac
+
+ # avoid double slash
+ doins "${CDROM_ROOT}"/${DATAROOT}{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con}
+ else
+ doins app/{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con}
+ fi
+
prepgamesdirs
}
diff --git a/games-fps/duke3d-data/metadata.xml b/games-fps/duke3d-data/metadata.xml
index f72870c0c28d..3fba2a006d70 100644
--- a/games-fps/duke3d-data/metadata.xml
+++ b/games-fps/duke3d-data/metadata.xml
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>games</herd>
+ <herd>games</herd>
+ <use>
+ <flag name='gog'>Extract the data from the GOG.com installer.</flag>
+ </use>
</pkgmetadata>