You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-fps/doom3-mitm/doom3-mitm-20070129.ebuild

47 lines
1.0 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
MOD_DESC="Single player maps"
MOD_NAME="Make it to Morning"
inherit eutils games games-mods
HOMEPAGE="http://www.makeittomorning.co.uk/"
SRC_URI="http://www.doomwadstation.com/doom3/maps/Morning/mitm_4.zip
http://www.doomwadstation.com/doom3/maps/Morning/mitm5.zip"
LICENSE="all-rights-reserved"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="games-fps/doom3-roe
games-fps/doom3[opengl,roe]"
src_unpack() {
mkdir mitm || die
cd mitm || die
unpack ${A}
}
src_prepare() {
cd mitm || die
mv -f MITM*.txt mitm.txt || die
mv -f Mitm5*.txt mitm5.txt || die
}
src_install() {
games_make_wrapper ${PN} \
"doom3 +set fs_game_base d3xp +set fs_game mitm +map mitm"
make_desktop_entry ${PN} "Doom 3 - ${MOD_NAME} (1)" doom3
local i
for i in {2..5} ; do
games_make_wrapper ${PN}${i} \
"doom3 +set fs_game_base d3xp +set fs_game mitm +map mitm${i}"
make_desktop_entry ${PN}${i} "Doom 3 - ${MOD_NAME} (${i})" doom3
done
games-mods_src_install
}