summaryrefslogtreecommitdiff
path: root/games-rpg/silence
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-10-26 00:10:07 +0100
committerV3n3RiX <venerix@koprulu.sector>2021-10-26 00:10:07 +0100
commit95461df035e3867364495f065e5e805bf629b2d7 (patch)
tree867dce371a84a696e91be255d89f282975aa0480 /games-rpg/silence
parent46eedbedafdb0040c37884982d4c775ce277fb7b (diff)
gentoo resync : 25.10.2021
Diffstat (limited to 'games-rpg/silence')
-rw-r--r--games-rpg/silence/Manifest3
-rw-r--r--games-rpg/silence/metadata.xml8
-rw-r--r--games-rpg/silence/silence-1.2.20280.ebuild93
3 files changed, 104 insertions, 0 deletions
diff --git a/games-rpg/silence/Manifest b/games-rpg/silence/Manifest
new file mode 100644
index 000000000000..b8dd42d86698
--- /dev/null
+++ b/games-rpg/silence/Manifest
@@ -0,0 +1,3 @@
+DIST Silence_1.2.20280_Linux_Full_EN_DE_IT_ES_FR_ZH_JA_PT_KO_RU_PL_EL_Daedalic_noDRM.zip 4618513055 BLAKE2B 6a7b420d32e0fb8c9203ce73d201c765f046fe0f2d0514fc3abc6f666216ef920091eb0ec2f896477c084d40bd5c311514211bafe778c4309897ea0ebd5f824e SHA512 9b10b5ba75b7d493ace35d4f3f5fd419614e11b80b6c4e2723b254b94651fc73db9b4d4153a97df19d667fc9838950dda53c6997039368ec4278e619297eb513
+EBUILD silence-1.2.20280.ebuild 2440 BLAKE2B 68712a24d0f0fd52a91cdaf9afab830bb6d259ac0ccc00ef15c93a747c9400ee5168a16a273eb81d956b5d4b37ea045a9299459dab97542e8ac42368889ae4dd SHA512 3cc21dfc1d95ac399eba3a614b58df538d9e0e1838aee346ed99e280da823d36e425d8bee5cc4b825c2832406c41cb66c9a5e87d1d1597622375c3cc74dbcd2e
+MISC metadata.xml 254 BLAKE2B 4e6c8e1f126f76233a38aba6f5388488656795cb1d7d4767ccb1349772f5e78d59fc5663d4f1933dbe4633c2fbb90cd1d42d4b4d4f5ededc53653e7df13c7187 SHA512 2b82da849e3b0dec378f3fb497014f5d1dbc7aceb8a1f9d1638e83fe69448b1c5151eb4b1187154d828e4a296609ce5125b40977b2581d95b5588e353ca75135
diff --git a/games-rpg/silence/metadata.xml b/games-rpg/silence/metadata.xml
new file mode 100644
index 000000000000..7c730d47817a
--- /dev/null
+++ b/games-rpg/silence/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/games-rpg/silence/silence-1.2.20280.ebuild b/games-rpg/silence/silence-1.2.20280.ebuild
new file mode 100644
index 000000000000..b54a9afa9fe3
--- /dev/null
+++ b/games-rpg/silence/silence-1.2.20280.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop wrapper xdg
+
+DESCRIPTION="3D point and click adventure, sequel to The Whispered World"
+HOMEPAGE="https://www.daedalic.com/silence"
+SRC_URI="Silence_${PV}_Linux_Full_EN_DE_IT_ES_FR_ZH_JA_PT_KO_RU_PL_EL_Daedalic_noDRM.zip"
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="l10n_de +l10n_en l10n_pl l10n_zh"
+REQUIRED_USE="|| ( ${IUSE//+} )"
+RESTRICT="bindist fetch splitdebug strip"
+
+BDEPEND="app-arch/unzip"
+
+RDEPEND="
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXcursor
+ x11-libs/libXrandr
+"
+
+S="${WORKDIR}"
+DIR="/opt/${PN}"
+QA_PREBUILT="${DIR#/}/*"
+
+pkg_nofetch() {
+ einfo "Please buy and download ${SRC_URI} from:"
+ einfo " https://www.humblebundle.com/store/${PN}"
+ einfo "and move it to your distfiles directory."
+}
+
+src_prepare() {
+ default
+
+ MY_ARCH=$(usex amd64 x86_64 x86)
+ OTHER_ARCH=$(usex amd64 x86 x86_64)
+
+ # Delete files for the other architecture.
+ # Delete Steam library because we're not running under Steam.
+ # Delete Screen Selector library, because it requires GTK2 but is unused.
+ rm -rv \
+ Silence_Data/{Mono,Plugins}/${OTHER_ARCH}/ \
+ Silence_Data/Plugins/${MY_ARCH}/{libDaedalic.Ecosystems.Steam.External,ScreenSelector}.so \
+ || die
+
+ # Remove unneeded language files.
+ local locale localedir
+ for locale in ${IUSE//+}; do
+ if [[ ${locale} = l10n_* ]] && ! use ${locale}; then
+ case ${locale#l10n_} in
+ de) localedir=german ;;
+ en) localedir=english ;;
+ pl) localedir=polish ;;
+ zh) localedir=chinese ;;
+ *) die "unrecognised locale ${locale}" ;;
+ esac
+ rm -rv Silence_Data/GameData/Sounds/{LipSync,Voice}/${localedir}/ || die
+ fi
+ done
+}
+
+src_install() {
+ exeinto "${DIR}"
+ newexe Silence.${MY_ARCH} Silence
+ make_wrapper ${PN} ./Silence "${DIR}"
+
+ insinto "${DIR}"
+ doins -r Silence_Data version.txt
+
+ local libdir
+ for libdir in Mono Plugins; do
+ exeinto "${DIR}"/Silence_Data/${libdir}/${MY_ARCH}
+ doexe Silence_Data/${libdir}/${MY_ARCH}/*.so
+ done
+
+ newicon -s 128 Silence_Data/Resources/UnityPlayer.png silence.png
+ make_desktop_entry ${PN} Silence
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if ! use l10n_en; then
+ ewarn "You have disabled the English voice audio and lip sync data. The game"
+ ewarn "still defaults to English though, so you will need to manually change"
+ ewarn "the voice language in the options menu."
+ fi
+}