diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2012-11-11 04:57:37 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2012-11-11 04:57:37 +0000 |
commit | 39459c98446fe4a0a98f114e8ddefab8bcd7ac07 (patch) | |
tree | 848e28588d92833ea50390f4090f062c955d3654 /games-rpg/queen | |
parent | Initial import of the cardpeek tool. (diff) | |
download | gentoo-2-39459c98446fe4a0a98f114e8ddefab8bcd7ac07.tar.gz gentoo-2-39459c98446fe4a0a98f114e8ddefab8bcd7ac07.tar.bz2 gentoo-2-39459c98446fe4a0a98f114e8ddefab8bcd7ac07.zip |
update and add language support with ebuild from Calchan
(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-rpg/queen')
-rw-r--r-- | games-rpg/queen/ChangeLog | 10 | ||||
-rw-r--r-- | games-rpg/queen/queen-1.ebuild | 127 |
2 files changed, 134 insertions, 3 deletions
diff --git a/games-rpg/queen/ChangeLog b/games-rpg/queen/ChangeLog index 4f38826262a9..9a47c1bdeaba 100644 --- a/games-rpg/queen/ChangeLog +++ b/games-rpg/queen/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-rpg/queen -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/queen/ChangeLog,v 1.10 2011/02/13 17:55:41 armin76 Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/queen/ChangeLog,v 1.11 2012/11/11 04:57:37 mr_bones_ Exp $ + +*queen-1 (11 Nov 2012) + + 11 Nov 2012; Michael Sterrett <mr_bones_@gentoo.org> +queen-1.ebuild: + update and add language support with ebuild from Calchan 13 Feb 2011; Raúl Porcel <armin76@gentoo.org> queen-0-r1.ebuild: Drop sparc keywords, move to ~ppc as scummvm is not stable @@ -33,4 +38,3 @@ 30 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> metadata.xml, queen-0.ebuild: initial commit; ebuild submitted by Stephan Schiffel via bug #44812 - diff --git a/games-rpg/queen/queen-1.ebuild b/games-rpg/queen/queen-1.ebuild new file mode 100644 index 000000000000..3ae24d393338 --- /dev/null +++ b/games-rpg/queen/queen-1.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/queen/queen-1.ebuild,v 1.1 2012/11/11 04:57:37 mr_bones_ Exp $ + +EAPI=4 +inherit eutils games + +DESCRIPTION="Flight of the Amazon Queen - a 2D point-and-click adventure game set in the 1940s" +HOMEPAGE="http://scummvm.sourceforge.net/" +SF_BASE_URL="mirror://sourceforge/scummvm/" +LYS_BASE_URL="http://www.lysator.liu.se/~zino/scummvm/queen/" +FILE_DE="FOTAQ_Ger_talkie-1.0.zip" +FILE_EN="FOTAQ_Talkie-1.1.zip" +FILE_FR="FOTAQ_Fr_Talkie_1.0.zip" +FILE_HE="FOTAQ_Heb_talkie.zip" +FILE_IT="FOTAQ_It_Talkie_1.0.zip" +SRC_URI=" + linguas_de? ( + ${SF_BASE_URL}${FILE_DE} + ${LYS_BASE_URL}readme.txt -> queen-readme.txt + ) + linguas_en? ( + mp3? ( ${SF_BASE_URL}${FILE_EN} ) + !mp3? ( + ${LYS_BASE_URL}queen.1.bz2 + ${LYS_BASE_URL}readme.txt -> queen-readme.txt + ) + ) + linguas_fr? ( ${SF_BASE_URL}${FILE_FR} ) + linguas_he? ( + ${SF_BASE_URL}${FILE_HE} + ${LYS_BASE_URL}readme.txt -> queen-readme.txt + ) + linguas_it? ( ${SF_BASE_URL}${FILE_IT} ) + http://www.scummvm.org/images/cat-queen.png +" + +LICENSE="queen" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="mp3 linguas_de +linguas_en linguas_fr linguas_he linguas_it" +REQUIRED_USE="|| ( linguas_de linguas_en linguas_fr linguas_he linguas_it )" + +RDEPEND=" + linguas_de? ( games-engines/scummvm[vorbis] ) + linguas_en? ( games-engines/scummvm[mp3?] ) + linguas_fr? ( games-engines/scummvm[vorbis] ) + linguas_he? ( games-engines/scummvm[vorbis] ) + linguas_it? ( games-engines/scummvm[vorbis] ) +" +DEPEND="${RDEPEND} + linguas_de? ( app-arch/unzip ) + linguas_en? ( mp3? ( app-arch/unzip ) ) + linguas_fr? ( app-arch/unzip ) + linguas_he? ( app-arch/unzip ) + linguas_it? ( app-arch/unzip ) +" + +S=${WORKDIR} + +src_unpack() { + if use linguas_de ; then + mkdir de + unpack ${FILE_DE} + mv queen.1c de/queen.1c + rm COPYING + cp "${DISTDIR}"/queen-readme.txt de/readme.txt + fi + if use linguas_en ; then + mkdir en + if use mp3 ; then + unpack ${FILE_EN} + mv queen.1c en/queen.1c + mv readme.txt en/readme.txt + else + unpack queen.1.bz2 + mv queen.1 en/queen.1 + cp "${DISTDIR}"/queen-readme.txt en/readme.txt + fi + fi + if use linguas_fr ; then + mkdir fr + unpack ${FILE_FR} + mv queen.1c fr/queen.1c + mv readme.txt fr/readme.txt + fi + if use linguas_he ; then + mkdir he + unpack ${FILE_HE} + mv queen.1c he/queen.1c + rm COPYING + cp "${DISTDIR}"/queen-readme.txt he/readme.txt + fi + if use linguas_it ; then + mkdir it + unpack ${FILE_IT} + mv queen.1c it/queen.1c + mv readme.txt it/readme.txt + fi +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r * + newicon "${DISTDIR}"/cat-queen.png queen.png + if use linguas_de ; then + games_make_wrapper queen-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" queen" . + make_desktop_entry ${PN}-de "Flight of the Amazon Queen (German)" queen + fi + if use linguas_en ; then + games_make_wrapper queen-en "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en\" queen" . + make_desktop_entry ${PN}-en "Flight of the Amazon Queen (English)" queen + fi + if use linguas_fr ; then + games_make_wrapper queen-fr "scummvm -f -p \"${GAMES_DATADIR}/${PN}/fr\" queen" . + make_desktop_entry ${PN}-fr "Flight of the Amazon Queen (French)" queen + fi + if use linguas_he ; then + games_make_wrapper queen-he "scummvm -f -p \"${GAMES_DATADIR}/${PN}/he\" queen" . + make_desktop_entry ${PN}-he "Flight of the Amazon Queen (Hebrew)" queen + fi + if use linguas_it ; then + games_make_wrapper queen-it "scummvm -f -p \"${GAMES_DATADIR}/${PN}/it\" queen" . + make_desktop_entry ${PN}-it "Flight of the Amazon Queen (Italian)" queen + fi + prepgamesdirs +} |