diff options
Diffstat (limited to 'games-fps/quake2-demodata')
-rw-r--r-- | games-fps/quake2-demodata/Manifest | 2 | ||||
-rw-r--r-- | games-fps/quake2-demodata/quake2-demodata-3.14-r1.ebuild (renamed from games-fps/quake2-demodata/quake2-demodata-3.14.ebuild) | 28 |
2 files changed, 14 insertions, 16 deletions
diff --git a/games-fps/quake2-demodata/Manifest b/games-fps/quake2-demodata/Manifest index f7d21bba52dd..21a19c937889 100644 --- a/games-fps/quake2-demodata/Manifest +++ b/games-fps/quake2-demodata/Manifest @@ -1,3 +1,3 @@ DIST q2-314-demo-x86.exe 39015499 BLAKE2B 1259d8e2481e5667a1a458e356593b026619a16d8dff32b664143121481f61b5e29129aac6b1aee0c0f0f12eee0f254965355f265c6c66d0ba3acab6e1b5983d SHA512 9aa5123807a64a6e3e3b113b582efd353f176f093fd0aae6bd01d9cff397374c06948a7147f59748b3aa6f4251769e409fae838157edb66429c9d41381b3df86 -EBUILD quake2-demodata-3.14.ebuild 1299 BLAKE2B 0ef0f2ebd5620f99e3ca13c5187c309c20825cc38e73b586e298614a26368387d69ad65740426ca3e4351cbecf7e07c030f1cd320f0479c91f26bb4695627c7b SHA512 2d0d5ee34ae5d2a8d5d8b174ce5500264312caa1869d06cee16048992935be4f0e40ceca1e8a450de2978f7b56792704430d156688b0a66e5b014554d7f25687 +EBUILD quake2-demodata-3.14-r1.ebuild 1267 BLAKE2B a6c55477c31070b4d7df471923e4a1989f9e88a7e50314a269d07e7f6ef8e74e5b57edd1cfe3efee55c5300fec48534bc0f02c3095b7d175c9721db3c26b6b8c SHA512 7feafbab771c30d1b7c8d1049c737acc3623fc38e8d31fc946acfe8fa85f3971ea251338d35fa53b02e9297dca21e8510ed3a65ebcd26dc8d93076340b75d226 MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-fps/quake2-demodata/quake2-demodata-3.14.ebuild b/games-fps/quake2-demodata/quake2-demodata-3.14-r1.ebuild index bcca12997738..b7fe8cd32c7d 100644 --- a/games-fps/quake2-demodata/quake2-demodata-3.14.ebuild +++ b/games-fps/quake2-demodata/quake2-demodata-3.14-r1.ebuild @@ -1,16 +1,19 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit unpacker eutils versionator games +EAPI=7 -MY_PV=$(delete_all_version_separators) +inherit unpacker + +#MY_PV=$(delete_all_version_separators) +MY_PV=$(ver_rs 1- '') MY_PN="quake2" FILE="q2-${MY_PV}-demo-x86.exe" DESCRIPTION="Demo data for Quake 2" HOMEPAGE="https://en.wikipedia.org/wiki/Quake_II" SRC_URI="mirror://idsoftware/${MY_PN}/${FILE}" +S="${WORKDIR}" # See license.txt - it's a bit different to Q2EULA in Portage LICENSE="quake2-demodata" @@ -18,19 +21,17 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~x86" IUSE="symlink" -RDEPEND="" -DEPEND="app-arch/unzip - !games-fps/quake2-data" # games-fps/quake2-data already includes the demo data +RDEPEND="!games-fps/quake2-data" # games-fps/quake2-data already includes the demo data +BDEPEND="app-arch/unzip" -S=${WORKDIR} -dir=${GAMES_DATADIR}/${MY_PN} +dir=usr/share/${MY_PN} src_unpack() { unpack_zip ${A} } src_install() { - insinto "${dir}"/demo + insinto ${dir}/demo doins -r Install/Data/baseq2/{pak0.pak,players} dodoc Install/Data/DOCS/*.txt @@ -38,15 +39,12 @@ src_install() { if use symlink ; then # Make the demo the default, so that people can just run it, # without having to mess with command-line options. - cd "${D}/${dir}" && ln -sfn demo baseq2 + cd "${ED}"/${dir} || die + ln -sfn demo baseq2 || die fi - - prepgamesdirs } pkg_postinst() { - games_pkg_postinst - elog "This is just the demo data. To play, install a client" elog "such as games-fps/qudos" echo |