From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B0BF013835A for ; Wed, 7 Apr 2021 10:18:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA2ECE096A; Wed, 7 Apr 2021 10:18:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2E90E096A for ; Wed, 7 Apr 2021 10:18:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 59D1833D3C2 for ; Wed, 7 Apr 2021 10:18:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A7D7F63E for ; Wed, 7 Apr 2021 10:18:27 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1617790698.300c8bf46050e76bed412facc289fe0f3c3c9f8d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/ut2003-bonuspack-de/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1-r1.ebuild games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1.ebuild X-VCS-Directories: games-fps/ut2003-bonuspack-de/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 300c8bf46050e76bed412facc289fe0f3c3c9f8d X-VCS-Branch: master Date: Wed, 7 Apr 2021 10:18:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7dcb085a-a1af-48d3-a0e7-128d954e420f X-Archives-Hash: d8bb02a15aa79165bb989ab8afad0b5a commit: 300c8bf46050e76bed412facc289fe0f3c3c9f8d Author: Sam James gentoo org> AuthorDate: Wed Apr 7 10:12:21 2021 +0000 Commit: Sam James gentoo org> CommitDate: Wed Apr 7 10:18:18 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=300c8bf4 games-fps/ut2003-bonuspack-de: port to EAPI 7, games.eclass-- Signed-off-by: Sam James gentoo.org> .../ut2003-bonuspack-de-1-r1.ebuild | 46 ++++++++++++++++++++++ .../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 00000000000..6e54cd2f15e --- /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 7fc87147a47..00000000000 --- 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 -}