From e6953c3c372429d11b1ef2edb55c192c2f880b3d Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 28 Feb 2013 21:38:07 +0000 Subject: add system-renpy useflag and fix bug #459742 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) --- games-misc/katawa-shoujo/ChangeLog | 8 ++- .../katawa-shoujo/katawa-shoujo-1.0-r1.ebuild | 69 ++++++++++++++++++++++ games-misc/katawa-shoujo/katawa-shoujo-1.0.ebuild | 56 ------------------ games-misc/katawa-shoujo/metadata.xml | 3 + 4 files changed, 79 insertions(+), 57 deletions(-) create mode 100644 games-misc/katawa-shoujo/katawa-shoujo-1.0-r1.ebuild delete mode 100644 games-misc/katawa-shoujo/katawa-shoujo-1.0.ebuild (limited to 'games-misc') 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 -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-r1.ebuild b/games-misc/katawa-shoujo/katawa-shoujo-1.0-r1.ebuild new file mode 100644 index 000000000000..8589d91f1acb --- /dev/null +++ b/games-misc/katawa-shoujo/katawa-shoujo-1.0-r1.ebuild @@ -0,0 +1,69 @@ +# 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-r1.ebuild,v 1.1 2013/02/28 21:38:07 hasufell Exp $ + +EAPI=5 + +inherit eutils gnome2-utils games + +DESCRIPTION="Bishoujo-style visual novel set in the fictional Yamaku High School for disabled children" +HOMEPAGE="http://katawa-shoujo.com/" +SRC_URI="http://naodesu.org/files/katawa-shoujo/${P}.tar.bz2 + http://dev.gentoo.org/~hasufell/distfiles/katawa-shoujo-48.png + http://dev.gentoo.org/~hasufell/distfiles/katawa-shoujo-256.png" + +LICENSE="CC-BY-NC-ND-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc system-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() { + 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 + newicon -s ${i} "${DISTDIR}"/${PN}-${i}.png ${PN}.png + done + + make_desktop_entry ${PN} "Katawa Shoujo" + + if use doc ; then + newdoc "Game Manual.pdf" manual.pdf + fi + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "Savegames from system-renpy and the bundled version are incompatible" + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-misc/katawa-shoujo/katawa-shoujo-1.0.ebuild b/games-misc/katawa-shoujo/katawa-shoujo-1.0.ebuild deleted file mode 100644 index ed1648498cb7..000000000000 --- a/games-misc/katawa-shoujo/katawa-shoujo-1.0.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# 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 $ - -EAPI=5 - -inherit eutils gnome2-utils games - -DESCRIPTION="Bishoujo-style visual novel set in the fictional Yamaku High School for disabled children" -HOMEPAGE="http://katawa-shoujo.com/" -SRC_URI="http://naodesu.org/files/katawa-shoujo/${P}.tar.bz2 - http://dev.gentoo.org/~hasufell/distfiles/katawa-shoujo-48.png - http://dev.gentoo.org/~hasufell/distfiles/katawa-shoujo-256.png" - -LICENSE="CC-BY-NC-ND-3.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc" - -RDEPEND="games-engines/renpy" - -S="${WORKDIR}/Katawa Shoujo-linux-x86" - -src_install() { - insinto "${GAMES_DATADIR}/${PN}" - doins -r game/. - - games_make_wrapper ${PN} "renpy '${GAMES_DATADIR}/${PN}'" - - 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 - newdoc "Game Manual.pdf" manual.pdf - fi - - prepgamesdirs -} - -pkg_preinst() { - games_pkg_preinst - gnome2_icon_savelist -} - -pkg_postinst() { - games_pkg_postinst - gnome2_icon_cache_update -} - -pkg_postrm() { - 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 @@ Maks Verver Proxy maintainer. CC him on bugs + + Use games-engines/renpy instead of the bundled one (experimental) + Katawa Shoujo is a bishoujo-style visual novel set in the fictional Yamaku High School for disabled children, located somewhere in modern -- cgit v1.2.3-65-gdbad