logo

overlay

My (experimental) gentoo overlay
commit: 209dc4efe29a5bcf2645edc101727d99389ccaef
parent: 25aecc996d59684b89fa8877ec236a0b9efd950c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 28 Feb 2019 07:15:09 +0100

games-visualnovel/doki-doki-litterature-club: Bump to 1.1.1

Diffstat:

Mgames-visualnovel/doki-doki-litterature-club/Manifest3++-
Agames-visualnovel/doki-doki-litterature-club/doki-doki-litterature-club-1.1.1.ebuild80+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+), 1 deletion(-)

diff --git a/games-visualnovel/doki-doki-litterature-club/Manifest b/games-visualnovel/doki-doki-litterature-club/Manifest @@ -1 +1,2 @@ -DIST doki-doki-litterature-club-1.1.0.zip 240636060 SHA256 c7a68acd7547268b3f771e7224d3a3656ddb4638c9f5173dd0525345d4859585 SHA512 6e4f71d87778852a4cd9430a78ffb5dea23d5dac427444736542d47da59dad23c40e20cf35e37c670b210418ecb831cae8969cc614124dfbbece7a14efa1eacb WHIRLPOOL b2d7a393a9a60023a3e3b31c1aad2e1ae3697c2b54ed406adb448eb9a1162f04e33c7ede3c3a9b13844b4a01116e9a8b1eb5d38b55ec4b531ebbf72f7fe352e6 +DIST doki-doki-litterature-club-1.1.0.zip 240636060 BLAKE2B c884394d348ceacacaeb6ff93578e8a620ca21ec6d10884bf2909d1c40aa7f7c97cdb6c533c6df84fb6c80b6943e78ed23e9c651ba64ccb12944fa284ef915ec SHA512 6e4f71d87778852a4cd9430a78ffb5dea23d5dac427444736542d47da59dad23c40e20cf35e37c670b210418ecb831cae8969cc614124dfbbece7a14efa1eacb +DIST doki-doki-litterature-club-1.1.1.zip 231593427 BLAKE2B 5ad991f9e631c7db8c99fae23ce0d52e8afafb9e50026967d543c7818006ce63050fff1396c5b5eeedd2b36019ab95a0503466dbff911167dfa1d2cc85199951 SHA512 f5ecaa288f076c16532ceeada75e0086fdfb35544e5ac267a1de90eac20a4e1746d9edbd1d3b429153f611edfc2454b9efc86309d7059cd502d14a997117de70 diff --git a/games-visualnovel/doki-doki-litterature-club/doki-doki-litterature-club-1.1.1.ebuild b/games-visualnovel/doki-doki-litterature-club/doki-doki-litterature-club-1.1.1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2018 Gentoo Authors +# Copyright 2018-2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +# Copied from katawa-shoujo-1.3.1.ebuild + +EAPI=5 + +inherit eutils gnome2-utils + +DESCRIPTION="Psychological horror game presented as a romance visual novel" +HOMEPAGE="https://ddlc.moe/" +SRC_URI="${P}.zip" +RESTRICT="bindist fetch" + +# bundled renpy includes licenses of all libraries +LICENSE="all-rights-reserved + !system-renpy? ( MIT PSF-2 LGPL-2.1 || ( FTL GPL-2+ ) IJG libpng ZLIB BZIP2 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc +system-renpy" + +RDEPEND="system-renpy? ( games-engines/renpy )" + +REQUIRED_USE="!system-renpy? ( || ( amd64 x86 ) )" + +# Binaries are built extremely weirdly, resulting in errors like: +# BFD: Not enough room for program headers, try linking with -N +# +# Technically, we could make this unconditional because there are no other +# binaries, but it's still good practice. +RESTRICT="!system-renpy? ( strip )" + +QA_PREBUILT="/opt/${PN}/lib/*" + +S="${WORKDIR}/DDLC-${PV}-pc" + +pkg_nofetch() { + einfo "Please download “DDLC (Windows) version ${PV}” on ${HOMEPAGE}" + einfo "and save it as ${DISTDIR}/${SRC_URI}" +} + +src_install() { + if use system-renpy; then + insinto "/usr/share/${PN}" + doins -r game/. + + make_wrapper ${PN} "renpy '/usr/share/${PN}'" + else + insinto "/opt/${PN}" + doins -r game localizations renpy "DDLC."{py,sh} + + local host="${CTARGET:-${CHOST}}" + local arch="${host%%-*}" + + cd lib + insinto "/opt/${PN}/lib" + doins -r linux-${arch} pythonlib2.7 + cd .. + + fperms +x "/opt/${PN}/lib/linux-${arch}/"{python,"DDLC"} \ + "/opt/${PN}/DDLC."{py,sh} + + make_wrapper ${PN} "./DDLC.sh" "/opt/${PN}" + fi + + make_desktop_entry ${PN} "DDLC" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +}