public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-fps/duke3d-data: duke3d-data-1.0-r2.ebuild ChangeLog
@ 2014-09-21 11:42 Julian Ospald (hasufell)
  0 siblings, 0 replies; only message in thread
From: Julian Ospald (hasufell) @ 2014-09-21 11:42 UTC (permalink / raw
  To: gentoo-commits

hasufell    14/09/21 11:42:42

  Modified:             ChangeLog
  Added:                duke3d-data-1.0-r2.ebuild
  Log:
  update for new gog linux tarball
  
  (Portage version: 2.2.12-r1/cvs/Linux x86_64, signed Manifest commit with key BDEED020)

Revision  Changes    Path
1.13                 games-fps/duke3d-data/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/duke3d-data/ChangeLog?rev=1.13&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/duke3d-data/ChangeLog?rev=1.13&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/duke3d-data/ChangeLog?r1=1.12&r2=1.13

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/games-fps/duke3d-data/ChangeLog,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ChangeLog	1 Jun 2014 20:23:51 -0000	1.12
+++ ChangeLog	21 Sep 2014 11:42:42 -0000	1.13
@@ -1,6 +1,11 @@
 # ChangeLog for games-fps/duke3d-data
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d-data/ChangeLog,v 1.12 2014/06/01 20:23:51 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d-data/ChangeLog,v 1.13 2014/09/21 11:42:42 hasufell Exp $
+
+*duke3d-data-1.0-r2 (21 Sep 2014)
+
+  21 Sep 2014; Julian Ospald <hasufell@gentoo.org> +duke3d-data-1.0-r2.ebuild:
+  update for new gog linux tarball
 
   01 Jun 2014; Julian Ospald <hasufell@gentoo.org> duke3d-data-1.0.ebuild:
   stable



1.1                  games-fps/duke3d-data/duke3d-data-1.0-r2.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/duke3d-data/duke3d-data-1.0-r2.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/duke3d-data/duke3d-data-1.0-r2.ebuild?rev=1.1&content-type=text/plain

Index: duke3d-data-1.0-r2.ebuild
===================================================================
# Copyright 1999-2014 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-r2.ebuild,v 1.1 2014/09/21 11:42:42 hasufell Exp $

EAPI=5

CDROM_OPTIONAL="yes"
inherit eutils cdrom games

GOG_FILE="gog_duke_nukem_3d_1.0.0.7.tar.gz"
DESCRIPTION="Duke Nukem 3D data files"
HOMEPAGE="http://www.3drealms.com/"
SRC_URI="gog? ( ${GOG_FILE} )"

LICENSE="DUKE3D"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
IUSE="gog"
REQUIRED_USE="^^ ( cdinstall gog )"
RESTRICT="mirror bindist gog? ( fetch )"

RDEPEND="|| ( games-fps/eduke32 games-fps/duke3d )"

S=${WORKDIR}

pkg_nofetch() {
	einfo "Please download ${GOG_FILE} from your GOG.com account after buying Duke Nukem 3d"
	einfo "and put it into ${DISTDIR}."
}

src_unpack() {
	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
		unpack "${GOG_FILE}"
		cd "Duke Nukem 3D/data" || die

		# convert to lowercase
		find . -type f \
			-execdir sh -c 'echo "converting ${1} to lowercase"
			lower="`echo "${1}" | tr [:upper:] [:lower:]`"
			[ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
	fi
}

src_install() {
	local DATAROOT

	insinto "${GAMES_DATADIR}"/duke3d

	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 "Duke Nukem 3D/data"/{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con}
	fi

	prepgamesdirs
}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-21 11:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-21 11:42 [gentoo-commits] gentoo-x86 commit in games-fps/duke3d-data: duke3d-data-1.0-r2.ebuild ChangeLog Julian Ospald (hasufell)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox