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 | 88db8f32cdee218b2bfa8e412cbe79e4b8363fda (patch) | |
tree | 78629bd87ae7c76179e4e211fc4fd8aa184e7b8c | |
parent | Added ~sparc keyword wrt bug #111603. (diff) | |
download | gentoo-2-88db8f32cdee218b2bfa8e412cbe79e4b8363fda.tar.gz gentoo-2-88db8f32cdee218b2bfa8e412cbe79e4b8363fda.tar.bz2 gentoo-2-88db8f32cdee218b2bfa8e412cbe79e4b8363fda.zip |
add support for existing installs/ultimate quake by UncleOwen #111615
(Portage version: 2.0.53_rc7)
-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 } |