diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-06-28 00:13:48 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-06-28 00:13:48 +0000 |
commit | 859c580fe6c49a6f390f1bc5c1c599faacb28b8d (patch) | |
tree | 880b88cef7baf17b0dd164ae13001ac97036affd /games-fps | |
parent | version bump (diff) | |
download | gentoo-2-859c580fe6c49a6f390f1bc5c1c599faacb28b8d.tar.gz gentoo-2-859c580fe6c49a6f390f1bc5c1c599faacb28b8d.tar.bz2 gentoo-2-859c580fe6c49a6f390f1bc5c1c599faacb28b8d.zip |
add support for Atomic Edition wrt #172183
(Portage version: 2.2.0_alpha185/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/duke3d-data/ChangeLog | 7 | ||||
-rw-r--r-- | games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild | 51 |
2 files changed, 57 insertions, 1 deletions
diff --git a/games-fps/duke3d-data/ChangeLog b/games-fps/duke3d-data/ChangeLog index 86b313582061..72e2d88a083d 100644 --- a/games-fps/duke3d-data/ChangeLog +++ b/games-fps/duke3d-data/ChangeLog @@ -1,6 +1,11 @@ # 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.7 2013/02/02 18:53:30 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d-data/ChangeLog,v 1.8 2013/06/28 00:13:48 hasufell Exp $ + +*duke3d-data-1.0-r1 (28 Jun 2013) + + 28 Jun 2013; Julian Ospald <hasufell@gentoo.org> +duke3d-data-1.0-r1.ebuild: + add support for Atomic Edition wrt #172183 02 Feb 2013; Julian Ospald <hasufell@gentoo.org> duke3d-data-1.0.ebuild: add ~amd64 keyword, update RDEPEND logic diff --git a/games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild b/games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild new file mode 100644 index 000000000000..fdaa801ed328 --- /dev/null +++ b/games-fps/duke3d-data/duke3d-data-1.0-r1.ebuild @@ -0,0 +1,51 @@ +# 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 $ + +inherit eutils cdrom games + +DESCRIPTION="Duke Nukem 3D data files" +HOMEPAGE="http://www.3drealms.com/" +SRC_URI="" + +LICENSE="DUKE3D" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="" + +DEPEND="" +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."; + 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" + prepgamesdirs +} |