logo

overlay

My (experimental) gentoo overlay
commit: b070c3fa70f7c7c30524d6b597f4923cd1230ede
parent: 11d102b4b8ad64af58f243c3b56672aa4517c493
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 18 Feb 2018 19:06:36 +0100

games-visualnovel/doki-doki-litterature-club: Init

Diffstat:

Agames-visualnovel/doki-doki-litterature-club/Manifest1+
Agames-visualnovel/doki-doki-litterature-club/doki-doki-litterature-club-1.1.0.ebuild79+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Agames-visualnovel/doki-doki-litterature-club/metadata.xml11+++++++++++
Mprofiles/categories4++--
4 files changed, 93 insertions(+), 2 deletions(-)

diff --git a/games-visualnovel/doki-doki-litterature-club/Manifest b/games-visualnovel/doki-doki-litterature-club/Manifest @@ -0,0 +1 @@ +DIST doki-doki-litterature-club-1.1.0.zip 240636060 SHA256 c7a68acd7547268b3f771e7224d3a3656ddb4638c9f5173dd0525345d4859585 SHA512 6e4f71d87778852a4cd9430a78ffb5dea23d5dac427444736542d47da59dad23c40e20cf35e37c670b210418ecb831cae8969cc614124dfbbece7a14efa1eacb WHIRLPOOL b2d7a393a9a60023a3e3b31c1aad2e1ae3697c2b54ed406adb448eb9a1162f04e33c7ede3c3a9b13844b4a01116e9a8b1eb5d38b55ec4b531ebbf72f7fe352e6 diff --git a/games-visualnovel/doki-doki-litterature-club/doki-doki-litterature-club-1.1.0.ebuild b/games-visualnovel/doki-doki-litterature-club/doki-doki-litterature-club-1.1.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 +} diff --git a/games-visualnovel/doki-doki-litterature-club/metadata.xml b/games-visualnovel/doki-doki-litterature-club/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> +</maintainer> +<use> + <flag name="system-renpy">Use <pkg>games-engines/renpy</pkg> instead of the bundled one (experimental)</flag> +</use> +</pkgmetadata> diff --git a/profiles/categories b/profiles/categories @@ -1 +1,2 @@ -games-music- \ No newline at end of file +games-music +games-visualnovel