# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit cdrom games MY_HRP=1.57 DESCRIPTION="Duke It Out in D.C. data files" HOMEPAGE="http://www.3drealms.com/ http://hrp.duke4.net/" SRC_URI="textures? ( http://www.duke4.org/files/nightfright/dukedc_hrp.zip -> dukedc_hrp_${MY_HRP}.zip )" LICENSE="all-rights-reserved textures? ( hrp_art )" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc textures" DEPEND="app-arch/unzip games-fps/eduke32[tools]" RDEPEND="games-fps/duke3d-data" S=${WORKDIR} src_unpack() { cdrom_get_cds dukedc/dukedcpp.ssi # Unpack and rebuild GRP file in proper format unpackssi "${CDROM_ROOT}/dukedc/dukedcpp.ssi" \ || die "unpack SSI failed" unzip -q "${DISTDIR}"/dukedc_hrp_${MY_HRP}.zip "*.txt" || die "unzip HRP failed" } src_prepare() { kgroup dukedc.grp *.* || die "kgroup failed" } src_install() { insinto "${GAMES_DATADIR}/duke3d" doins dukedc.grp dodoc "${CDROM_ROOT}"/dukedc/readme.txt use doc && dodoc "${CDROM_ROOT}"/dukedc/dcintro.txt if use textures; then newins "${DISTDIR}"/dukedc_hrp_${MY_HRP}.zip dukedc_hrp.zip dodoc dukedc_hrp.txt use doc && dodoc {dcwalk,todo-list}.txt fi prepgamesdirs }