1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit versionator games
7 MY_PV=$(delete_all_version_separators)
9 DESCRIPTION="Unreal-themed single-player campaign"
10 HOMEPAGE="http://www.moddb.com/mods/operation-na-pali"
11 SRC_URI="http://www.ut-files.com/Maps/SinglePlayer/1263-ONP${MY_PV}_Umod.zip"
15 KEYWORDS="~amd64 ~x86"
19 >=games-fps/unreal-tournament-436
20 >=games-fps/unreal-tournament-goty-436 )"
21 DEPEND="games-util/umodpack
25 dir=${GAMES_PREFIX_OPT}/unreal-tournament
33 umod -x "${f}" || die "umod ${f} failed"
41 mv -f *.unr Maps || die
42 mv -f *.u System || die
44 # Fix filenames in HTML
45 sed -i data/docs/*.html \
48 -e "s:TVshortie:tvshortie:" \
49 || die "sed docs failed"
52 -e "s:data/docs:${docdir}/docs:" \
53 || die "sed help doc failed"
55 for n in Skaarj Nali Mercenary Krall Brute ; do
56 lcn=$(echo "${n}" | tr [:upper:] [:lower:])
57 sed -i data/docs/*.html \
58 -e "s:${n}\.jpg:${lcn}\.jpg:" \
59 || die "sed ${n} failed"
63 sed -i data/docs/faq.html \
65 || die "sed faq failed"
67 mv "Operation NaPali Help Doc.html" "${docdir}.html" || die
68 mv data "${docdir}" || die
73 doins -r * || die "doins -r failed"
81 elog "For instructions and story, read:"
82 elog " ${dir}/${docdir}.html"