From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C98CF1382C5 for ; Sun, 15 Apr 2018 13:08:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4A5EE07DB; Sun, 15 Apr 2018 13:08:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9DE29E07DB for ; Sun, 15 Apr 2018 13:08:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 90353335C7A for ; Sun, 15 Apr 2018 13:08:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 20071257 for ; Sun, 15 Apr 2018 13:08:30 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1523797702.87157efd7375a80fe783a2ac2da0f24c87edc0eb.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-misc/katawa-shoujo/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-misc/katawa-shoujo/katawa-shoujo-1.3.1-r1.ebuild X-VCS-Directories: games-misc/katawa-shoujo/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 87157efd7375a80fe783a2ac2da0f24c87edc0eb X-VCS-Branch: master Date: Sun, 15 Apr 2018 13:08:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b2955790-c2f0-44da-84e9-a9b9045d684b X-Archives-Hash: 76cd260721741abbf74d33ff3820b46a commit: 87157efd7375a80fe783a2ac2da0f24c87edc0eb Author: Pacho Ramos gentoo org> AuthorDate: Sun Apr 15 13:07:02 2018 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sun Apr 15 13:08:22 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87157efd games-misc/katawa-shoujo: Use newer renpy (#601200) Package-Manager: Portage-2.3.28, Repoman-2.3.9 .../katawa-shoujo/katawa-shoujo-1.3.1-r1.ebuild | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/games-misc/katawa-shoujo/katawa-shoujo-1.3.1-r1.ebuild b/games-misc/katawa-shoujo/katawa-shoujo-1.3.1-r1.ebuild new file mode 100644 index 00000000000..6c9ac1da578 --- /dev/null +++ b/games-misc/katawa-shoujo/katawa-shoujo-1.3.1-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils gnome2-utils + +DESCRIPTION="Bishoujo-style visual novel by Four Leaf Studios" +HOMEPAGE="http://katawa-shoujo.com/" +SRC_URI="http://dl.katawa-shoujo.com/gold_1.3.1/%5B4ls%5D_katawa_shoujo_1.3.1-%5Blinux-x86%5D%5B18161880%5D.tar.bz2 -> ${P}.tar.bz2 + https://dev.gentoo.org/~hasufell/distfiles/katawa-shoujo-48.png + https://dev.gentoo.org/~hasufell/distfiles/katawa-shoujo-256.png" + +# bundled renpy includes licenses of all libraries +LICENSE=" + CC-BY-NC-ND-3.0 + !system-renpy? ( MIT PSF-2 LGPL-2.1 || ( FTL GPL-2+ ) IJG libpng ZLIB BZIP2 ) +" + +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="doc +system-renpy" +REQUIRED_USE="!system-renpy? ( || ( amd64 x86 ) )" + +RDEPEND="system-renpy? ( games-engines/renpy:6.99 )" +DEPEND="" + +# 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}/Katawa Shoujo-${PV}-linux" + +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 "Katawa Shoujo."{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,"Katawa Shoujo"} \ + "/opt/${PN}/Katawa Shoujo."{py,sh} + + make_wrapper ${PN} "./Katawa\ Shoujo.sh" "/opt/${PN}" + fi + + local i + for i in 48 256; do + newicon -s ${i} "${DISTDIR}"/${PN}-${i}.png ${PN}.png + done + + make_desktop_entry ${PN} "Katawa Shoujo" + + if use doc; then + dodoc "Game Manual.pdf" + fi +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +}