# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/doom3-mitm/doom3-mitm-20060328.ebuild,v 1.1 2006/11/15 19:55:18 wolf31o2 Exp $ MOD_DESC="single-player map trilogy" MOD_NAME="Make it to Morning" MOD_DIR="mitm" inherit versionator games games-mods # End up with MY_PV=03282k6 DATE=$(get_version_component_range 1-1) MY_PV=${DATE:4:4}-${DATE:0:4} MY_PV=${MY_PV/-2006/2k6} HOMEPAGE="http://www.makeittomorning.co.uk" SRC_URI="mirror://filefront/Doom_III/Resurrection_of_Evil/Maps/Single_Player/make_it_to_morning_${MY_PV}.zip" LICENSE="as-is" KEYWORDS="-* ~amd64 ~x86" RDEPEND="games-fps/doom3-roe" S=${WORKDIR} src_unpack() { games-mods_src_unpack mkdir -p mitm mv "MITM Readme.txt" README.MITM mv mitm.pk4 mitm } src_install() { games-mods_src_install games_make_wrapper ${PN} \ "doom3 +set fs_game ${MOD_DIR} +set fs_game_base d3xp +map mitm" make_desktop_entry ${PN} "Doom III - Make it to Morning (1)" doom3.png local n for n in {2,3} ; do games_make_wrapper ${PN}${n} \ "doom3 +set fs_game ${MOD_DIR} +set fs_game_base d3xp +map mitm${n}" make_desktop_entry ${PN}${n} \ "Doom III - Make it to Morning (${n})" doom3.png done }