summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-02-28 21:38:07 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-02-28 21:38:07 +0000
commite6953c3c372429d11b1ef2edb55c192c2f880b3d (patch)
tree8c8c65bb4ee32ebaa7a99c821e5d947ea0044bbc /games-misc/katawa-shoujo
parentAutomatic deansification was requested by the build system but not actually r... (diff)
downloadgentoo-2-e6953c3c372429d11b1ef2edb55c192c2f880b3d.tar.gz
gentoo-2-e6953c3c372429d11b1ef2edb55c192c2f880b3d.tar.bz2
gentoo-2-e6953c3c372429d11b1ef2edb55c192c2f880b3d.zip
add system-renpy useflag and fix bug #459742
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-misc/katawa-shoujo')
-rw-r--r--games-misc/katawa-shoujo/ChangeLog8
-rw-r--r--games-misc/katawa-shoujo/katawa-shoujo-1.0-r1.ebuild (renamed from games-misc/katawa-shoujo/katawa-shoujo-1.0.ebuild)27
-rw-r--r--games-misc/katawa-shoujo/metadata.xml3
3 files changed, 30 insertions, 8 deletions
diff --git a/games-misc/katawa-shoujo/ChangeLog b/games-misc/katawa-shoujo/ChangeLog
index 22f0a95b8969..06c3ae23c946 100644
--- a/games-misc/katawa-shoujo/ChangeLog
+++ b/games-misc/katawa-shoujo/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-misc/katawa-shoujo
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/katawa-shoujo/ChangeLog,v 1.1 2013/02/27 22:13:05 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/katawa-shoujo/ChangeLog,v 1.2 2013/02/28 21:38:07 hasufell Exp $
+
+*katawa-shoujo-1.0-r1 (28 Feb 2013)
+
+ 28 Feb 2013; Julian Ospald <hasufell@gentoo.org> -katawa-shoujo-1.0.ebuild,
+ +katawa-shoujo-1.0-r1.ebuild:
+ add system-renpy useflag and fix bug #459742
*katawa-shoujo-1.0 (27 Feb 2013)
diff --git a/games-misc/katawa-shoujo/katawa-shoujo-1.0.ebuild b/games-misc/katawa-shoujo/katawa-shoujo-1.0-r1.ebuild
index ed1648498cb7..8589d91f1acb 100644
--- a/games-misc/katawa-shoujo/katawa-shoujo-1.0.ebuild
+++ b/games-misc/katawa-shoujo/katawa-shoujo-1.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/katawa-shoujo/katawa-shoujo-1.0.ebuild,v 1.1 2013/02/27 22:13:05 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/katawa-shoujo/katawa-shoujo-1.0-r1.ebuild,v 1.1 2013/02/28 21:38:07 hasufell Exp $
EAPI=5
@@ -15,17 +15,28 @@ SRC_URI="http://naodesu.org/files/katawa-shoujo/${P}.tar.bz2
LICENSE="CC-BY-NC-ND-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="doc"
+IUSE="doc system-renpy"
-RDEPEND="games-engines/renpy"
+# make system-renpy optional due to #459742 :(
+RDEPEND="system-renpy? ( games-engines/renpy )"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/lib/*"
S="${WORKDIR}/Katawa Shoujo-linux-x86"
src_install() {
- insinto "${GAMES_DATADIR}/${PN}"
- doins -r game/.
-
- games_make_wrapper ${PN} "renpy '${GAMES_DATADIR}/${PN}'"
+ if use system-renpy ; then
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r game/.
+ games_make_wrapper ${PN} "renpy '${GAMES_DATADIR}/${PN}'"
+ else
+ insinto "${GAMES_PREFIX_OPT}"/${PN}
+ doins -r common game lib renpy "Katawa Shoujo.py" "Katawa Shoujo.sh"
+ games_make_wrapper ${PN} "./Katawa\ Shoujo.sh" "${GAMES_PREFIX_OPT}/${PN}"
+ fperms +x "${GAMES_PREFIX_OPT}/${PN}"/lib/{python,linux-x86/python.real} \
+ "${GAMES_PREFIX_OPT}/${PN}/Katawa Shoujo.sh" \
+ "${GAMES_PREFIX_OPT}/${PN}/Katawa Shoujo.py"
+ fi
local i
for i in 48 256; do
@@ -47,6 +58,8 @@ pkg_preinst() {
}
pkg_postinst() {
+ elog "Savegames from system-renpy and the bundled version are incompatible"
+
games_pkg_postinst
gnome2_icon_cache_update
}
diff --git a/games-misc/katawa-shoujo/metadata.xml b/games-misc/katawa-shoujo/metadata.xml
index 1046abad4c4a..7f6495fee9f3 100644
--- a/games-misc/katawa-shoujo/metadata.xml
+++ b/games-misc/katawa-shoujo/metadata.xml
@@ -12,6 +12,9 @@
<name>Maks Verver</name>
<description>Proxy maintainer. CC him on bugs</description>
</maintainer>
+ <use>
+ <flag name="system-renpy">Use <pkg>games-engines/renpy</pkg> instead of the bundled one (experimental)</flag>
+ </use>
<longdescription>
Katawa Shoujo is a bishoujo-style visual novel set in the fictional
Yamaku High School for disabled children, located somewhere in modern