summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-04-01 23:06:51 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-04-01 23:06:51 +0100
commita1754bf69bf31c5a4474c44719e97a138f31acc1 (patch)
tree5f38607b4203919cbe7d51b5d449f677636ddccc /games-rpg/the-longest-journey
parentdev-python/requests-futures: Stabilize 1.0.0 amd64 (diff)
downloadgentoo-a1754bf69bf31c5a4474c44719e97a138f31acc1.tar.gz
gentoo-a1754bf69bf31c5a4474c44719e97a138f31acc1.tar.bz2
gentoo-a1754bf69bf31c5a4474c44719e97a138f31acc1.zip
games-rpg/the-longest-journey: New package
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-rpg/the-longest-journey')
-rw-r--r--games-rpg/the-longest-journey/Manifest2
-rw-r--r--games-rpg/the-longest-journey/metadata.xml12
-rw-r--r--games-rpg/the-longest-journey/the-longest-journey-142.24607.ebuild62
3 files changed, 76 insertions, 0 deletions
diff --git a/games-rpg/the-longest-journey/Manifest b/games-rpg/the-longest-journey/Manifest
new file mode 100644
index 000000000000..8fe86ac94bbf
--- /dev/null
+++ b/games-rpg/the-longest-journey/Manifest
@@ -0,0 +1,2 @@
+DIST setup_the_longest_journey_142_lang_update_(24607)-1.bin 1731065137 BLAKE2B 55d67ee12bcb527b45c4028ee1b84b6670fccad3000c0752138cd47e1225c7ed7a1f929be3711a091c6d749ec724c0768000bfa2324064d99eb070689a8dec57 SHA512 95d550a444f37b049c26aec04e851d5c057fdbd662306650024d0fc0eb88eaea8c831b2fddb599afed2dc1ed88b6a7d4f171525ebfc61fc6303080de30992687
+DIST setup_the_longest_journey_142_lang_update_(24607).exe 2126208 BLAKE2B 794c36e5080681da6b9e88fb42bb2325784336b5e2b6117240f07cc3aca87eaaa7001150dac42a5506bd3a41234775e401bd9bef4e59fff14589037f9c540cf4 SHA512 51c4221e8ddcf803814c781b0b441c8e38f17c78df0f62f35b540141799616abdcab2791dcc5f90c7ac4a9ff06ebb29b7d65a38777799087752f7c07ee1abdb9
diff --git a/games-rpg/the-longest-journey/metadata.xml b/games-rpg/the-longest-journey/metadata.xml
new file mode 100644
index 000000000000..8815a3aa2353
--- /dev/null
+++ b/games-rpg/the-longest-journey/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="hd">Install high definition backgrounds and sprites</flag>
+ <flag name="hd-fmv">Install upscaled full motion videos</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/the-longest-journey/the-longest-journey-142.24607.ebuild b/games-rpg/the-longest-journey/the-longest-journey-142.24607.ebuild
new file mode 100644
index 000000000000..e0aab360720b
--- /dev/null
+++ b/games-rpg/the-longest-journey/the-longest-journey-142.24607.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHECKREQS_DISK_BUILD="1826M"
+CHECKREQS_DISK_USR="1820M"
+inherit check-reqs desktop wrapper xdg
+
+MY_EXE="setup_the_longest_journey_${PV%.*}_lang_update_(${PV##*.})"
+ICON="9c94fffadc23bac626a24a9c04cf8f107598ef9d0d2a58cbb6a9abd4d6eb0fbc.png"
+
+DESCRIPTION="Adventure through the twin worlds of Stark and Arcadia, seen through the eyes of an 18-year old student"
+HOMEPAGE="https://www.gog.com/game/the_longest_journey"
+SRC_URI="${MY_EXE}.exe ${MY_EXE}-1.bin"
+LICENSE="GOG-EULA"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+hd +hd-fmv"
+RESTRICT="bindist fetch"
+
+RDEPEND="
+ >=games-engines/scummvm-2.5.1[opengl,truetype,vorbis]
+"
+
+PDEPEND="
+ hd? ( ${CATEGORY}/${PN}-hd )
+ hd-fmv? ( ${CATEGORY}/${PN}-hd-fmv )
+"
+
+BDEPEND="
+ app-arch/innoextract
+ app-arch/unzip
+"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ einfo "Please buy and download ${MY_EXE}{.exe,-1.bin} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to your distfiles directory."
+}
+
+src_unpack() {
+ innoextract -e -s -m "${DISTDIR}/${MY_EXE}.exe" || die
+ unzip -qo app/webcache.zip "${ICON}" || die
+}
+
+src_install() {
+ local dir=/usr/share/${PN}
+
+ insinto "${dir}"
+ doins -r [0-9]?/ Global/ Static/ Fonts/ game.exe x.xarc *.ini
+ dodoc manual.pdf
+
+ docinto html
+ dodoc -r tlj_faq_files/ tlj_faq.html
+
+ newicon -s 128 "${ICON}" "${PN}.png"
+ make_wrapper ${PN} "scummvm -p \"${EPREFIX}${dir}\" tlj"
+ make_desktop_entry ${PN} "The Longest Journey"
+}