From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-fps/quake2-data/Manifest | 5 ++ games-fps/quake2-data/metadata.xml | 8 +++ games-fps/quake2-data/quake2-data-3.20.ebuild | 85 +++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 games-fps/quake2-data/Manifest create mode 100644 games-fps/quake2-data/metadata.xml create mode 100644 games-fps/quake2-data/quake2-data-3.20.ebuild (limited to 'games-fps/quake2-data') diff --git a/games-fps/quake2-data/Manifest b/games-fps/quake2-data/Manifest new file mode 100644 index 000000000000..880ebc972f92 --- /dev/null +++ b/games-fps/quake2-data/Manifest @@ -0,0 +1,5 @@ +DIST q2-3.20-x86-full-ctf.exe 19267584 SHA256 f82197c8c8089202a4b3a85d8833b0c2e827a709d205c760369407c212488baa SHA512 056a56f218f3fd7a3c5270665990bb347ce3e6f4aa8afa3b65a5d291d3b0cd149e3b58ed0cd136bd3edecb3c080f790f9dac68c63d19f095818720f0537b5bad WHIRLPOOL fbff168a81452635c1e0c593298885929c30c74b426e6b602242d24b2ae2299d6ebaeb46587c97599c92e5f5540481944cbe94f91a01e2a102596e62d4c55756 +EBUILD quake2-data-3.20.ebuild 2459 SHA256 1dc2a2b4ab82b308a3a63c4986e5ced219cb2b332faba8ad3805bc0a2a934fdc SHA512 31322198a9b59c87debf55afc0260eb3f216dbe0b7f7f8baf762dec3fb5537c5aa81158966fcd09e0c65478cb96fb8093fd99a3cb653102366335134a4f0b1d4 WHIRLPOOL d5bc06c295dc67f79479404ea2c99f67a82b8c2679ffc014559a380755821a627f32852a05d2ed0744f87c07a13e2f4848c8d3ac29eaf7e0ad2fbb2d66a5980d +MISC ChangeLog 2565 SHA256 bfa46200467039c8fa9355a612d597e4065255b72375fdbb4fd163877fdcaa39 SHA512 e139add5a06f6469fa599fc376c6f4bdd6e15a90d4776c581c27a458bde9137f4bcfc2f764d572aa1a1f125af5900b935988c02c9f957e6b1b8020a7e8e5b1e4 WHIRLPOOL d621967b97d807d494e2264cd56db324cc1f23e44780c9d3de2036c2e0493d62794f3002960d8186f2a89f3bbd773d32deaee6963b7528d6e037774a3faef346 +MISC ChangeLog-2015 2487 SHA256 8e19e55388ce063d120b7e504717bb43119bc037465c44a8001794234008c177 SHA512 ad88d2ac941dbedd50baae2921cca88c6f059ffdefdf50ff838b950e3e48b98f25dde219b49cc10da953923f25f714ab5722aa8f325c9a674dd70bffc525860e WHIRLPOOL 722db1ae5333b1e9514796066ba2feff776a61e4248aa33461f4364f85b886b059d218385194c671ae98ade9d454d7252096d4df87fd7b3ef5fd15b4cde47bb1 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-fps/quake2-data/metadata.xml b/games-fps/quake2-data/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-fps/quake2-data/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + diff --git a/games-fps/quake2-data/quake2-data-3.20.ebuild b/games-fps/quake2-data/quake2-data-3.20.ebuild new file mode 100644 index 000000000000..08ed81faab7d --- /dev/null +++ b/games-fps/quake2-data/quake2-data-3.20.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit unpacker eutils cdrom games + +DESCRIPTION="iD Software's Quake 2 ... the data files" +HOMEPAGE="http://www.idsoftware.com/" +SRC_URI="mirror://idsoftware/quake2/q2-${PV}-x86-full-ctf.exe" + +LICENSE="Q2EULA" +SLOT="0" +KEYWORDS="~alpha amd64 x86 ~x86-fbsd" +IUSE="videos" + +DEPEND="app-arch/unzip" +RDEPEND="" + +S=${WORKDIR} + +pkg_setup() { + games_pkg_setup + if has_version "games-fps/quake2-demodata[symlink]" ; then + eerror "The symlink for the demo data conflicts with the cdinstall data" + die "Unmerge games-fps/quake2-demodata to remove the conflict" + fi +} + +src_unpack() { + export CDROM_NAME_SET=("Existing Install" "Ultimate Quake Edition" "Quake2 CD" "Quake4 Bonus DVD") + cdrom_get_cds baseq2:Install/patch:Install:Movies + # The .exe is just a self-extracting .zip + unpack_zip ${A} +} + +src_install() { + dodoc DOCS/* 3.20_Changes.txt + newdoc ctf/readme.txt ctf-readme.txt + case ${CDROM_SET} in + 0) dohtml -r "${CDROM_ROOT}"/Install/DOCS/quake2_manual/* ;; + 1) dohtml -r "${CDROM_ROOT}"/Install/Docs/quake2_manual/* ;; + 2) dohtml -r "${CDROM_ROOT}"/Install/DOCS/quake2_manual/* ;; + 3) dodoc "${CDROM_ROOT}"/Docs/* ;; + esac + + local baseq2_cdpath + case ${CDROM_SET} in + 0) baseq2_cdpath=${CDROM_ROOT}/baseq2;; + 1) baseq2_cdpath=${CDROM_ROOT}/Install/Data/baseq2;; + 2) baseq2_cdpath=${CDROM_ROOT}/Install/Data/baseq2;; + 3) baseq2_cdpath=${CDROM_ROOT}/setup/Data/baseq2;; + esac + + dodir "${GAMES_DATADIR}"/quake2/baseq2 + + if use videos ; then + insinto "${GAMES_DATADIR}"/quake2/baseq2/video + doins "${baseq2_cdpath}"/video/* + fi + + insinto "${GAMES_DATADIR}"/quake2/baseq2 + doins "${baseq2_cdpath}"/pak0.pak + doins baseq2/*.pak baseq2/maps.lst + dodir "${GAMES_DATADIR}"/quake2/baseq2/players + cp -R "${baseq2_cdpath}"/players/* baseq2/players/* \ + "${D}/${GAMES_DATADIR}"/quake2/baseq2/players/ || die + + for mod in ctf rogue xatrix ; do + if [[ -d ${baseq2_cdpath}/../${mod} ]] ; then + if use videos && [[ -d ${baseq2_cdpath}/../${mod}/video ]] ; then + insinto "${GAMES_DATADIR}"/quake2/${mod}/video + doins "${baseq2_cdpath}"/../${mod}/video/* 2>/dev/null + fi + if [[ -n $(ls "${baseq2_cdpath}"/../${mod}/*.pak 2>/dev/null) ]] ; then + insinto "${GAMES_DATADIR}"/quake2/${mod} + doins "${baseq2_cdpath}"/../${mod}/*.pak + fi + fi + done + + insinto "${GAMES_DATADIR}"/quake2/ctf + doins ctf/*.{cfg,ico,pak} + + prepgamesdirs +} -- cgit v1.2.3