commit:     78b78789167360c8e510555b40663b9c5beca762
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 19 22:49:00 2024 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Dec 19 22:51:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78b78789

games-arcade/jazz2-data: Rework for the C++ implementation

This implementation uses the original data files directly.

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 .../jazz2-data/jazz2-data-0-r20241219.ebuild       | 64 ++++++++++++++++++++++
 games-arcade/jazz2-data/metadata.xml               |  3 -
 2 files changed, 64 insertions(+), 3 deletions(-)

diff --git a/games-arcade/jazz2-data/jazz2-data-0-r20241219.ebuild 
b/games-arcade/jazz2-data/jazz2-data-0-r20241219.ebuild
new file mode 100644
index 000000000000..50ae121bfcfd
--- /dev/null
+++ b/games-arcade/jazz2-data/jazz2-data-0-r20241219.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit estack
+
+DESCRIPTION="Jazz Jackrabbit 2 data files for games-arcade/jazz2"
+HOMEPAGE="https://www.gog.com/game/jazz_jackrabbit_2_collection";
+
+# Order is significant!
+SRC_URI="
+       demo? (
+               https://deat.tk/jazz2/misc/shareware-demo.zip -> 
jazz2-shareware-demo.zip
+       )
+       !demo? (
+               setup_jazz_jackrabbit_2_1.24hf_(16886).exe
+               cc? ( setup_jazz_jackrabbit_2_cc_1.2x_(16742).exe )
+       )
+"
+
+S="${WORKDIR}/app"
+LICENSE="free-noncomm GOG-EULA"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+cc demo"
+RESTRICT="!demo? ( bindist fetch )"
+
+RDEPEND=">=games-arcade/jazz2-3.0.0-r1"
+
+BDEPEND="
+       demo? ( app-arch/unzip )
+       !demo? ( app-arch/innoextract )
+"
+
+DIR="/usr/share/jazz2"
+
+pkg_nofetch() {
+       einfo "Please buy and download the following files from"
+       einfo "${HOMEPAGE}."
+       einfo
+       local EXE
+       for EXE in ${A}; do
+               einfo " - ${EXE}"
+       done
+}
+
+src_unpack() {
+       if use demo; then
+               unzip -qoL -d app "${DISTDIR}/${A}" || die
+       else
+               local EXE
+               for EXE in ${A}; do
+                       innoextract -e -s -p0 -L -I app "${DISTDIR}/${EXE}" || 
die
+               done
+       fi
+}
+
+src_install() {
+       eshopts_push -s nullglob
+       insinto /usr/share/jazz2/Source
+       doins -r *.j?? *.it *.mod *.s3m tiles*/
+       eshopts_pop
+}

diff --git a/games-arcade/jazz2-data/metadata.xml 
b/games-arcade/jazz2-data/metadata.xml
index aa4c2459df1a..fcd190be0a62 100644
--- a/games-arcade/jazz2-data/metadata.xml
+++ b/games-arcade/jazz2-data/metadata.xml
@@ -5,9 +5,6 @@
                <email>[email protected]</email>
                <name>Gentoo Games Project</name>
        </maintainer>
-       <upstream>
-               <remote-id type="github">deathkiller/jazz2</remote-id>
-       </upstream>
        <use>
                <flag name="cc">Install The Christmas Chronicles additional 
data</flag>
                <flag name="demo">Use the free demo data instead of the full 
retail game data</flag>

Reply via email to