diff options
author | Sam James <sam@gentoo.org> | 2021-04-07 11:12:21 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-07 11:18:18 +0100 |
commit | 300c8bf46050e76bed412facc289fe0f3c3c9f8d (patch) | |
tree | a44346fb2e39b7ba8879d79b0e66d3104bc307bf /games-fps/ut2003-bonuspack-de | |
parent | games-fps/ut2003-bonuspack-cm: port to EAPI 7, games.eclass-- (diff) | |
download | gentoo-300c8bf46050e76bed412facc289fe0f3c3c9f8d.tar.gz gentoo-300c8bf46050e76bed412facc289fe0f3c3c9f8d.tar.bz2 gentoo-300c8bf46050e76bed412facc289fe0f3c3c9f8d.zip |
games-fps/ut2003-bonuspack-de: port to EAPI 7, games.eclass--
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-fps/ut2003-bonuspack-de')
-rw-r--r-- | games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1-r1.ebuild | 46 | ||||
-rw-r--r-- | games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1.ebuild | 35 |
2 files changed, 46 insertions, 35 deletions
diff --git a/games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1-r1.ebuild b/games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1-r1.ebuild new file mode 100644 index 000000000000..6e54cd2f15ee --- /dev/null +++ b/games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P="debonus.ut2mod.zip" +DESCRIPTION="Digital Extremes Bonus Pack for UT2003" +HOMEPAGE="https://www.moddb.com/games/unreal-tournament-2003" +SRC_URI="http://ftp.student.utwente.nl/pub/games/UT2003/BonusPack/${MY_P}" +S="${WORKDIR}" + +LICENSE="ut2003" +SLOT="1" +KEYWORDS="~x86" +RESTRICT="bindist mirror strip" + +RDEPEND="games-fps/ut2003" +DEPEND="${RDEPEND}" +BDEPEND="app-arch/unzip" + +src_unpack() { + unzip -qq "${DISTDIR}"/${A} || die +} + +src_install() { + local dir="${EPREFIX}"/opt/ut2003 + local Ddir="${D}${dir}" + + # Inlined from games.eclass + _games_umod_unpack() { + local umod=${1} + + mkdir -p "${Ddir}"/System || die + cp "${dir}"/System/{ucc-bin,Manifest.ini,{Engine,Core,zlib,ogg,vorbis}.so,{Engine,Core}.int} "${Ddir}"/System || die + # Don't die here (for now) in case Default.ini, DefUser.ini are missing + cp "${dir}"/System/Def{ault,User}.ini "${Ddir}"/System &> /dev/null + + cd "${Ddir}"/System || die + UT_DATA_PATH="${Ddir}"/System ./ucc-bin umodunpack -x "${S}/${umod}" -nohomedir &> /dev/null || die "uncompressing file ${umod}" + rm -f "${Ddir}"/System/{ucc-bin,{Manifest,Def{ault,User},User,UT200{3,4}}.ini,{Engine,Core,zlib,ogg,vorbis}.so,{Engine,Core}.int,ucc.log &>/dev/null || die "Removing temporary files" + } + + mkdir -p "${Ddir}"/{System,Maps,StaticMeshes,Textures,Music,Help} || die + + _games_umod_unpack DEBonus.ut2mod +} diff --git a/games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1.ebuild b/games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1.ebuild deleted file mode 100644 index 7fc87147a470..000000000000 --- a/games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit games - -MY_P="debonus.ut2mod.zip" -DESCRIPTION="Digital Extremes Bonus Pack for UT2003" -HOMEPAGE="https://www.moddb.com/games/unreal-tournament-2003" -SRC_URI="http://ftp.student.utwente.nl/pub/games/UT2003/BonusPack/${MY_P}" - -LICENSE="ut2003" -SLOT="1" -KEYWORDS="~x86" -IUSE="" -RESTRICT="bindist mirror strip" - -RDEPEND="games-fps/ut2003" -DEPEND="${RDEPEND} - app-arch/unzip" - -S=${WORKDIR} - -dir=${GAMES_PREFIX_OPT}/ut2003 -Ddir=${D}/${dir} - -src_unpack() { - unzip -qq "${DISTDIR}"/${A} || die -} - -src_install() { - mkdir -p "${Ddir}"/{System,Maps,StaticMeshes,Textures,Music,Help} || die - games_umod_unpack DEBonus.ut2mod - prepgamesdirs -} |