diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-11-05 22:30:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-11-05 22:30:21 +0000 |
commit | 9e172e787228a05d39e632040239343ed2ae3575 (patch) | |
tree | 0e121ec2c14ef5161781cde93cdedae390fd2ea3 /games-fps/quake1-data/quake1-data-2.40.ebuild | |
parent | Added ~sparc keyword wrt bug #111603. (diff) | |
download | historical-9e172e787228a05d39e632040239343ed2ae3575.tar.gz historical-9e172e787228a05d39e632040239343ed2ae3575.tar.bz2 historical-9e172e787228a05d39e632040239343ed2ae3575.zip |
add support for existing installs/ultimate quake by UncleOwen #111615
Package-Manager: portage-2.0.53_rc7
Diffstat (limited to 'games-fps/quake1-data/quake1-data-2.40.ebuild')
-rw-r--r-- | games-fps/quake1-data/quake1-data-2.40.ebuild | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/games-fps/quake1-data/quake1-data-2.40.ebuild b/games-fps/quake1-data/quake1-data-2.40.ebuild index 5f7d5c79bab0..d3b1728f4bfd 100644 --- a/games-fps/quake1-data/quake1-data-2.40.ebuild +++ b/games-fps/quake1-data/quake1-data-2.40.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake1-data/quake1-data-2.40.ebuild,v 1.1 2005/10/30 05:57:41 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake1-data/quake1-data-2.40.ebuild,v 1.2 2005/11/05 22:30:21 vapier Exp $ inherit games @@ -18,18 +18,31 @@ DEPEND="" S=${WORKDIR} pkg_setup() { + export CDROM_SET_NAMES=("Existing Install" "Quake CD" "Ultimate Quake Collection") games_pkg_setup - cdrom_get_cds q101_int.1 + cdrom_get_cds id1:q101_int.1:Setup/ID1 } src_unpack() { echo ">>> Unpacking q101_int.1 to ${PWD}" - lha xqf "${CDROM_ROOT}"/q101_int.1 || die "failure unpacking q101_int.1" + if [[ ${CDROM_SET} == "1" ]] ; then + lha xqf "${CDROM_ROOT}"/q101_int.1 || die "failure unpacking q101_int.1" + fi } src_install() { insinto ${GAMES_DATADIR}/quake1/id1 - doins id1/* || die "doins pak files" - dodoc *.txt + case ${CDROM_SET} in + 0) doins "${CDROM_ROOT}"/id1/* || die "doins pak files" + dodoc "${CDROM_ROOT}"/*.txt + ;; + 1) doins id1/* || die "doins pak files" + dodoc *.txt + ;; + 2) newins "${CDROM_ROOT}"/Setup/ID1/PAK0.PAK pak0.pak || die "ins pak0.pak failed" + newins "${CDROM_ROOT}"/Setup/ID1/PAK1.PAK pak1.pak || die "ins pak1.pak failed" + dodoc "${CDROM_ROOT}"/Docs/* + ;; + esac prepgamesdirs } |