summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-rpg/bass/ChangeLog6
-rw-r--r--games-rpg/bass/Manifest15
-rw-r--r--games-rpg/bass/bass-1.2-r1.ebuild5
-rw-r--r--games-rpg/bass/files/scummvmGetLang.sh19
4 files changed, 40 insertions, 5 deletions
diff --git a/games-rpg/bass/ChangeLog b/games-rpg/bass/ChangeLog
index 5759f2dc3a42..352acbd7df37 100644
--- a/games-rpg/bass/ChangeLog
+++ b/games-rpg/bass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-rpg/bass
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/bass/ChangeLog,v 1.12 2011/02/13 17:54:35 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/bass/ChangeLog,v 1.13 2011/07/26 10:28:31 tupone Exp $
+
+ 26 Jul 2011; Tupone Alfredo <tupone@gentoo.org> bass-1.2-r1.ebuild,
+ +files/scummvmGetLang.sh:
+ Enabling translation. Bug #211203 by Pacho Ramos
13 Feb 2011; Raúl Porcel <armin76@gentoo.org> bass-1.2-r1.ebuild:
Drop sparc keywords, move to ~ppc as scummvm is not stable
diff --git a/games-rpg/bass/Manifest b/games-rpg/bass/Manifest
index dc4c4db0cde2..ef881ec52868 100644
--- a/games-rpg/bass/Manifest
+++ b/games-rpg/bass/Manifest
@@ -1,5 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX scummvmGetLang.sh 358 RMD160 b4b8825a115692b4f40fd2efb04f2c59ff36219e SHA1 ea7e052c22431e1cf416c3dda66b7173ea642f58 SHA256 3b7468b5ec106f9d37509c65b8f2d6cfa948afa86be99207997d01e421e8e3c3
DIST bass-cd-1.2.zip 69377781 RMD160 8ebf7b3f3ce8c11a0ea4af7a4e8e778a63742331 SHA1 6cf6548cb89f051f7d8024e4e06bb799f9f4dcf1 SHA256 53209b9400eab6fd7fa71518b2f357c8de75cfeaa5ba57024575ab79cc974593
DIST bass.png 27613 RMD160 d56ddff004edafb2c077ade6bb90460729fd7cc2 SHA1 de7e41dd2f836cd29e6be8d96321c776cb5c8362 SHA256 cd27b33772c967bb2c248dcfaa187adc0ee4436d03899c8a57ccc4c6fd92e92c
-EBUILD bass-1.2-r1.ebuild 981 RMD160 c4b3aba87a69becda651ea6e2b0d38a9a84b5486 SHA1 f9abd6cb96195cec23177776ec7f9334d0df4fe3 SHA256 fff3ad713675e81089c07439fbe0c8ece0aa005137ff585f9d9839b029119e43
-MISC ChangeLog 1532 RMD160 b52df386480c9392da23643886e9cca186b6af2e SHA1 f2f399eaf7da0c81af7ff7119f8353af6dd93f45 SHA256 97449ca8b63e8ecab85defdaba5e28c6121479dba60151a14c1c30cf6591dc8e
+EBUILD bass-1.2-r1.ebuild 1048 RMD160 a6b5e6b950b45ccb273b3fa05132af30e68952fe SHA1 2aedcb6cd3350283c243f289f3985da60dbc4f4e SHA256 9af468b546c3b624a7756efb9630bea6b966553bb521b30d2193a3374a60b3d2
+MISC ChangeLog 1681 RMD160 e8ade2fefbf1ada4325913c7d37ebdf7851cf7c0 SHA1 186f840b2426ef723787cb4af6e4b77fbea2f84d SHA256 4e81722167f88669d490494cdfcf7f9a0a40fe7f5fb80b779756ba184a476e3e
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEARECAAYFAk4ulrUACgkQIY77eQFFFC1qEwCg4/Gcn/sjxGEcf0dLWBi7wL5N
+nhYAoN43/aBi2RZH5Q0ObTtr6cnxHBkJ
+=pfmL
+-----END PGP SIGNATURE-----
diff --git a/games-rpg/bass/bass-1.2-r1.ebuild b/games-rpg/bass/bass-1.2-r1.ebuild
index a53b6b386ab7..22fc60dd5727 100644
--- a/games-rpg/bass/bass-1.2-r1.ebuild
+++ b/games-rpg/bass/bass-1.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/bass/bass-1.2-r1.ebuild,v 1.4 2011/02/13 17:54:35 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/bass/bass-1.2-r1.ebuild,v 1.5 2011/07/26 10:28:31 tupone Exp $
inherit eutils games
@@ -22,7 +22,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/bass-cd-${PV}
src_install() {
- games_make_wrapper bass "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" sky" .
+ games_make_wrapper bass "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" -q\$(scummvmGetLang.sh) sky" .
+ dogamesbin "${FILESDIR}"/scummvmGetLang.sh
insinto "${GAMES_DATADIR}"/${PN}
doins sky.* || die "doins failed"
dodoc readme.txt
diff --git a/games-rpg/bass/files/scummvmGetLang.sh b/games-rpg/bass/files/scummvmGetLang.sh
new file mode 100644
index 000000000000..b313cc7d81da
--- /dev/null
+++ b/games-rpg/bass/files/scummvmGetLang.sh
@@ -0,0 +1,19 @@
+tmplang="$LANG"
+test "$LC_MESSAGES" != "" && tmplang="$LC_MESSAGES"
+test "$LC_ALL" != "" && tmplang="$LC_ALL"
+test "$LANGUAGE" != "" && tmplang="$LANGUAGE"
+
+lang=`echo $tmplang|cut -d "_" -f 1`
+
+case $lang in
+ en)
+ lang=gb
+ echo $tmplang | grep en_US &>/dev/null && lang=en
+ ;;
+ de|fr|it|pt|es|se)
+ ;;
+ *)
+ lang=gb
+ ;;
+esac
+echo $lang