[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2023-03-11 Thread Christian Schmitt
commit: a0116a8f27a044e969546156f525f2d23f5c80a4
Author: Christian Schmitt  ilovelinux  de>
AuthorDate: Fri Nov 11 10:01:25 2022 +
Commit: Christian Schmitt  ilovelinux  de>
CommitDate: Sat Mar 11 21:00:25 2023 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=a0116a8f

games-simulation/kerbal-space-program: version bump

Signed-off-by: Christian Schmitt  ilovelinux.de>

 ...1.ebuild => kerbal-space-program-1.12.4.ebuild} | 25 +-
 1 file changed, 10 insertions(+), 15 deletions(-)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.12.4.ebuild
similarity index 85%
rename from 
games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild
rename to 
games-simulation/kerbal-space-program/kerbal-space-program-1.12.4.ebuild
index 5de86f3..736d640 100644
--- a/games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild
+++ b/games-simulation/kerbal-space-program/kerbal-space-program-1.12.4.ebuild
@@ -1,19 +1,16 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
-inherit eutils
+inherit desktop unpacker
 
 DESCRIPTION="A space flight simulation"
 HOMEPAGE="http://kerbalspaceprogram.com/;
 
-GOG_MAGIC="03142_48164"
+GOG_MAGIC="03187_59948"
 
-SRC_PH="${PN//-/_}@PH@_${PV//./_}_${GOG_MAGIC}.sh"
-SRC_URI="
-   l10n_en? ( ${SRC_PH//@PH@/} )
-"
+SRC_URI="${PN//-/_}_${PV//./_}_${GOG_MAGIC}.sh"
 
 RESTRICT="fetch strip"
 LICENSE="all-rights-reserved"
@@ -21,9 +18,8 @@ LICENSE="all-rights-reserved"
 SLOT="0"
 KEYWORDS="-* ~amd64"
 
-L10NS="l10n_en" #l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru l10n_zh-CN"
-IUSE="${L10NS}"
-REQUIRED_USE="^^ ( ${L10NS} )"
+#L10NS="l10n_en" #l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru 
l10n_zh-CN"
+IUSE=""
 
 DEPEND="app-arch/unzip"
 RDEPEND="
@@ -53,13 +49,12 @@ src_unpack() {
 
mkdir "${tmp}" || die "mkdir 'tmp' failed"
cd "${tmp}" || die "cd 'tmp' failed"
-
-   unzip -q "${DISTDIR}/${A}"
+   unpack_zip "${A}"
local gpath="data/noarch/game"
 
-   mv "${gpath}" "${S}"
+   mv "${gpath}" "${S}" || die "mv failed"
 
-   cd "${S}"
+   cd "${S}" || die "cd 'workdir' failed"
 
#use l10n_de && unzip -oq ksp-lang-de-de.zip && rm ksp-lang-de-de.zip
#use l10n_es && unzip -oq ksp-lang-es-es.zip && rm ksp-lang-es-es.zip



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2021-06-30 Thread Christian Schmitt
commit: 54931b26d17a0aea1f65678a3e2aa5fec349c126
Author: Christian Schmitt  ilovelinux  de>
AuthorDate: Wed Jun 30 14:23:07 2021 +
Commit: Christian Schmitt  ilovelinux  de>
CommitDate: Wed Jun 30 14:23:07 2021 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=54931b26

games-simulation/kerbal-space-program: version bump

Signed-off-by: Christian Schmitt  ilovelinux.de>

 ...l-space-program-1.11.1.ebuild => kerbal-space-program-1.12.1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.11.1.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild
similarity index 99%
rename from 
games-simulation/kerbal-space-program/kerbal-space-program-1.11.1.ebuild
rename to 
games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild
index b672808..5de86f3 100644
--- a/games-simulation/kerbal-space-program/kerbal-space-program-1.11.1.ebuild
+++ b/games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild
@@ -8,7 +8,7 @@ inherit eutils
 DESCRIPTION="A space flight simulation"
 HOMEPAGE="http://kerbalspaceprogram.com/;
 
-GOG_MAGIC="03066_44517"
+GOG_MAGIC="03142_48164"
 
 SRC_PH="${PN//-/_}@PH@_${PV//./_}_${GOG_MAGIC}.sh"
 SRC_URI="



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2021-02-24 Thread Christian Schmitt
commit: 672b58f4592f6c6f2fd3a568d7e7529b5ebb27c7
Author: Christian Schmitt  ilovelinux  de>
AuthorDate: Wed Feb 24 21:01:30 2021 +
Commit: Christian Schmitt  ilovelinux  de>
CommitDate: Wed Feb 24 21:32:19 2021 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=672b58f4

games-simulation/kerbal-space-program: version bump

Signed-off-by: Christian Schmitt  ilovelinux.de>

 ...pace-program-1.8.1.ebuild => kerbal-space-program-1.11.1.ebuild} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.11.1.ebuild
similarity index 94%
rename from 
games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild
rename to 
games-simulation/kerbal-space-program/kerbal-space-program-1.11.1.ebuild
index 9926dd7..b672808 100644
--- a/games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild
+++ b/games-simulation/kerbal-space-program/kerbal-space-program-1.11.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -8,7 +8,7 @@ inherit eutils
 DESCRIPTION="A space flight simulation"
 HOMEPAGE="http://kerbalspaceprogram.com/;
 
-GOG_MAGIC="02694_33460"
+GOG_MAGIC="03066_44517"
 
 SRC_PH="${PN//-/_}@PH@_${PV//./_}_${GOG_MAGIC}.sh"
 SRC_URI="
@@ -21,7 +21,7 @@ LICENSE="all-rights-reserved"
 SLOT="0"
 KEYWORDS="-* ~amd64"
 
-L10NS="l10n_en " #l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru 
l10n_zh-CN"
+L10NS="l10n_en" #l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru l10n_zh-CN"
 IUSE="${L10NS}"
 REQUIRED_USE="^^ ( ${L10NS} )"
 



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2020-02-29 Thread Azamat H. Hackimov
commit: 3f495d29560c0b8a1acdfcdc3ddfd7fb78734d6e
Author: Azamat H. Hackimov  gmail  com>
AuthorDate: Sat Feb 29 12:53:48 2020 +
Commit: Azamat H. Hackimov  gentoo  ru>
CommitDate: Sat Feb 29 12:53:48 2020 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=3f495d29

games-simulation/kerbal-space-program: minor fixes

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Azamat H. Hackimov  gmail.com>

 .../kerbal-space-program/kerbal-space-program-1.8.1.ebuild|  9 ++---
 games-simulation/kerbal-space-program/metadata.xml| 11 +++
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild
index d5f2343..9926dd7 100644
--- a/games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild
+++ b/games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -16,10 +16,10 @@ SRC_URI="
 "
 
 RESTRICT="fetch strip"
-LICENSE="EULA"
+LICENSE="all-rights-reserved"
 
 SLOT="0"
-KEYWORDS="amd64"
+KEYWORDS="-* ~amd64"
 
 L10NS="l10n_en " #l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru 
l10n_zh-CN"
 IUSE="${L10NS}"
@@ -73,7 +73,10 @@ src_unpack() {
rm -r "${WORKDIR}/tmp"
 
find . -name .DS_Store -delete
+}
 
+src_prepare() {
+   default
sed -e "s@__PV__@${PV}@" -e "s@__PN__@${PN}@" "${FILESDIR}/ksp-wrapper" 
> "${T}"/ksp-wrapper
 }
 

diff --git a/games-simulation/kerbal-space-program/metadata.xml 
b/games-simulation/kerbal-space-program/metadata.xml
new file mode 100644
index 000..aec4945
--- /dev/null
+++ b/games-simulation/kerbal-space-program/metadata.xml
@@ -0,0 +1,11 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+
+m...@mva.name
+Vadim A. Misbakh-Soloviov
+
+
+
+
+



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2020-02-08 Thread Christian Schmitt
commit: f5b8927963beb0f3773059e013c250ab50bae77c
Author: Christian Schmitt  ilovelinux  de>
AuthorDate: Sat Feb  8 11:28:22 2020 +
Commit: Christian Schmitt  ilovelinux  de>
CommitDate: Sat Feb  8 11:56:27 2020 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=f5b89279

[kerbal-space-program]: Version bump. x64 support only

Signed-off-by: Christian Schmitt  ilovelinux.de>

 ...-program-1.6.1.ebuild => kerbal-space-program-1.8.1.ebuild} | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.6.1.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild
similarity index 91%
rename from 
games-simulation/kerbal-space-program/kerbal-space-program-1.6.1.ebuild
rename to 
games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild
index 772b8f1..d5f2343 100644
--- a/games-simulation/kerbal-space-program/kerbal-space-program-1.6.1.ebuild
+++ b/games-simulation/kerbal-space-program/kerbal-space-program-1.8.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -8,7 +8,7 @@ inherit eutils
 DESCRIPTION="A space flight simulation"
 HOMEPAGE="http://kerbalspaceprogram.com/;
 
-GOG_MAGIC="26533"
+GOG_MAGIC="02694_33460"
 
 SRC_PH="${PN//-/_}@PH@_${PV//./_}_${GOG_MAGIC}.sh"
 SRC_URI="
@@ -19,7 +19,7 @@ RESTRICT="fetch strip"
 LICENSE="EULA"
 
 SLOT="0"
-KEYWORDS="amd64 x86"
+KEYWORDS="amd64"
 
 L10NS="l10n_en " #l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru 
l10n_zh-CN"
 IUSE="${L10NS}"
@@ -83,9 +83,9 @@ src_install() {
exeinto "${dir}"
 
doins -r .
-   doexe {KSP,Launcher}.x86{,_64} || die "Failed to install executables"
+   doexe {KSP,KSPLauncher}.x86_64 || die "Failed to install executables"
 
newbin "${T}/ksp-wrapper" "${PN}"
-   newicon "Launcher_Data/Resources/UnityPlayer.png" "${PN}.png"
+   newicon "KSPLauncher_Data/Resources/UnityPlayer.png" "${PN}.png"
make_desktop_entry "${PN}" "Kerbal Space Program" "${PN}" || die 
"make_desktop_entry failed"
 }



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/files/, ...

2019-03-17 Thread Christian Schmitt
commit: b6c6ac7542a13769a67d071de43480fb5ad57d65
Author: Christian Schmitt  ilovelinux  de>
AuthorDate: Sun Mar 17 19:34:01 2019 +
Commit: Christian Schmitt  ilovelinux  de>
CommitDate: Sun Mar 17 19:34:59 2019 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=b6c6ac75

[kerbal-space-program] version bump. EN locale for now only

 .../kerbal-space-program/files/ksp-wrapper |  5 +--
 ...43.ebuild => kerbal-space-program-1.6.1.ebuild} | 37 --
 2 files changed, 17 insertions(+), 25 deletions(-)

diff --git a/games-simulation/kerbal-space-program/files/ksp-wrapper 
b/games-simulation/kerbal-space-program/files/ksp-wrapper
index fcbf49a..2d3acc5 100644
--- a/games-simulation/kerbal-space-program/files/ksp-wrapper
+++ b/games-simulation/kerbal-space-program/files/ksp-wrapper
@@ -3,8 +3,9 @@
 arch="$(uname -m)"
 arch="${arch/i[2-6]/x}"
 PV="__PV__"
-s_dir="/usr/share/kerbal-space-program-${PV}"
-t_dir="${HOME}/.local/share/kerbal-space-program"
+PN="__PN__"
+s_dir="/usr/share/${PN}"
+t_dir="${HOME}/.local/share/${PN}"
 
 
 mkdir -p "${t_dir}"

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.4.5.02243.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.6.1.ebuild
similarity index 58%
rename from 
games-simulation/kerbal-space-program/kerbal-space-program-1.4.5.02243.ebuild
rename to 
games-simulation/kerbal-space-program/kerbal-space-program-1.6.1.ebuild
index e61c442..772b8f1 100644
--- 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.4.5.02243.ebuild
+++ b/games-simulation/kerbal-space-program/kerbal-space-program-1.6.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -8,19 +8,11 @@ inherit eutils
 DESCRIPTION="A space flight simulation"
 HOMEPAGE="http://kerbalspaceprogram.com/;
 
-GOG_MAGIC="22594"
+GOG_MAGIC="26533"
 
 SRC_PH="${PN//-/_}@PH@_${PV//./_}_${GOG_MAGIC}.sh"
 SRC_URI="
-   l10n_de? ( ${SRC_PH//@PH@/_de} )
-   l10n_en? ( ${SRC_PH//@PH@/_en} )
-   l10n_es? ( ${SRC_PH//@PH@/_es} )
-   l10n_fr? ( ${SRC_PH//@PH@/_fr} )
-   l10n_it? ( ${SRC_PH//@PH@/_it} )
-   l10n_ja? ( ${SRC_PH//@PH@/_ja} )
-   l10n_pt-BR? ( ${SRC_PH//@PH@/_pt} )
-   l10n_ru? ( ${SRC_PH//@PH@/_ru} )
-   l10n_zh-CN? ( ${SRC_PH//@PH@/_zh} )
+   l10n_en? ( ${SRC_PH//@PH@/} )
 "
 
 RESTRICT="fetch strip"
@@ -29,7 +21,7 @@ LICENSE="EULA"
 SLOT="0"
 KEYWORDS="amd64 x86"
 
-L10NS="l10n_de l10n_en l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru 
l10n_zh-CN"
+L10NS="l10n_en " #l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru 
l10n_zh-CN"
 IUSE="${L10NS}"
 REQUIRED_USE="^^ ( ${L10NS} )"
 
@@ -69,25 +61,24 @@ src_unpack() {
 
cd "${S}"
 
-   use l10n_de && unzip -oq ksp-lang-de-de.zip && rm ksp-lang-de-de.zip
-   use l10n_es && unzip -oq ksp-lang-es-es.zip && rm ksp-lang-es-es.zip
-   use l10n_fr && unzip -oq ksp-lang-fr-fr.zip && rm ksp-lang-fr-fr.zip
-   use l10n_it && unzip -oq ksp-lang-it-it.zip && rm ksp-lang-it-it.zip
-   use l10n_ja && unzip -oq ksp-lang-ja.zip && rm ksp-lang-ja.zip
-   use l10n_pt-BR && unzip -oq ksp-lang-pt-br.zip && rm ksp-lang-pt-br.zip
-   use l10n_ru && unzip -oq ksp-lang-ru.zip && rm ksp-lang-ru.zip
-   use l10n_zh-CN && unzip -oq ksp-lang-zh-cn.zip && rm ksp-lang-zh-cn.zip
+   #use l10n_de && unzip -oq ksp-lang-de-de.zip && rm ksp-lang-de-de.zip
+   #use l10n_es && unzip -oq ksp-lang-es-es.zip && rm ksp-lang-es-es.zip
+   #use l10n_fr && unzip -oq ksp-lang-fr-fr.zip && rm ksp-lang-fr-fr.zip
+   #use l10n_it && unzip -oq ksp-lang-it-it.zip && rm ksp-lang-it-it.zip
+   #use l10n_ja && unzip -oq ksp-lang-ja.zip && rm ksp-lang-ja.zip
+   #use l10n_pt-BR && unzip -oq ksp-lang-pt-br.zip && rm ksp-lang-pt-br.zip
+   #use l10n_ru && unzip -oq ksp-lang-ru.zip && rm ksp-lang-ru.zip
+   #use l10n_zh-CN && unzip -oq ksp-lang-zh-cn.zip && rm ksp-lang-zh-cn.zip
 
rm -r "${WORKDIR}/tmp"
 
find . -name .DS_Store -delete
 
-   sed -e "s@__PV__@${PV}@" "${FILESDIR}/ksp-wrapper" > "${T}"/ksp-wrapper
+   sed -e "s@__PV__@${PV}@" -e "s@__PN__@${PN}@" "${FILESDIR}/ksp-wrapper" 
> "${T}"/ksp-wrapper
 }
 
 src_install() {
-   local arch="${ARCH//amd/x86_}"
-   local dir="/usr/share/${PF}"
+   local dir="/usr/share/${PN}"
insinto "${dir}"
exeinto "${dir}"
 



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2018-09-09 Thread Christian Schmitt
commit: c4bf54dcf5d6ce68622a493fa51c35c3f3fc215a
Author: Christian Schmitt  ilovelinux  de>
AuthorDate: Sun Sep  9 06:59:10 2018 +
Commit: Christian Schmitt  ilovelinux  de>
CommitDate: Sun Sep  9 07:00:06 2018 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=c4bf54dc

[games-simulation/kerbal-space-program] Version bump

 ...ild => kerbal-space-program-1.4.5.02243.ebuild} | 22 +++---
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.4.5.02243.ebuild
similarity index 69%
rename from 
games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild
rename to 
games-simulation/kerbal-space-program/kerbal-space-program-1.4.5.02243.ebuild
index 8bcfab3..e61c442 100644
--- 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild
+++ 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.4.5.02243.ebuild
@@ -8,13 +8,17 @@ inherit eutils
 DESCRIPTION="A space flight simulation"
 HOMEPAGE="http://kerbalspaceprogram.com/;
 
-GOG_MAGIC="1_3_1_15547"
+GOG_MAGIC="22594"
 
-SRC_PH="${PN//-/_}@PH@_${GOG_MAGIC}.sh"
+SRC_PH="${PN//-/_}@PH@_${PV//./_}_${GOG_MAGIC}.sh"
 SRC_URI="
+   l10n_de? ( ${SRC_PH//@PH@/_de} )
l10n_en? ( ${SRC_PH//@PH@/_en} )
l10n_es? ( ${SRC_PH//@PH@/_es} )
+   l10n_fr? ( ${SRC_PH//@PH@/_fr} )
+   l10n_it? ( ${SRC_PH//@PH@/_it} )
l10n_ja? ( ${SRC_PH//@PH@/_ja} )
+   l10n_pt-BR? ( ${SRC_PH//@PH@/_pt} )
l10n_ru? ( ${SRC_PH//@PH@/_ru} )
l10n_zh-CN? ( ${SRC_PH//@PH@/_zh} )
 "
@@ -25,7 +29,7 @@ LICENSE="EULA"
 SLOT="0"
 KEYWORDS="amd64 x86"
 
-L10NS="l10n_en l10n_es l10n_ja l10n_ru l10n_zh-CN"
+L10NS="l10n_de l10n_en l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru 
l10n_zh-CN"
 IUSE="${L10NS}"
 REQUIRED_USE="^^ ( ${L10NS} )"
 
@@ -65,10 +69,14 @@ src_unpack() {
 
cd "${S}"
 
-   use l10n_es && unzip -oq KSP-LANG-ES-ES.zip && rm KSP-LANG-ES-ES.zip
-   use l10n_ja && unzip -oq KSP-LANG-JA.zip && rm KSP-LANG-JA.zip
-   use l10n_ru && unzip -oq KSP-LANG-RU.zip && rm KSP-LANG-RU.zip
-   use l10n_zh-CN && unzip -oq KSP-LANG-ZH-CN.zip && rm KSP-LANG-ZH-CN.zip
+   use l10n_de && unzip -oq ksp-lang-de-de.zip && rm ksp-lang-de-de.zip
+   use l10n_es && unzip -oq ksp-lang-es-es.zip && rm ksp-lang-es-es.zip
+   use l10n_fr && unzip -oq ksp-lang-fr-fr.zip && rm ksp-lang-fr-fr.zip
+   use l10n_it && unzip -oq ksp-lang-it-it.zip && rm ksp-lang-it-it.zip
+   use l10n_ja && unzip -oq ksp-lang-ja.zip && rm ksp-lang-ja.zip
+   use l10n_pt-BR && unzip -oq ksp-lang-pt-br.zip && rm ksp-lang-pt-br.zip
+   use l10n_ru && unzip -oq ksp-lang-ru.zip && rm ksp-lang-ru.zip
+   use l10n_zh-CN && unzip -oq ksp-lang-zh-cn.zip && rm ksp-lang-zh-cn.zip
 
rm -r "${WORKDIR}/tmp"
 



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2017-11-16 Thread Christian Schmitt
commit: af5c7b899778146266f06152e2e794143c522b5a
Author: Christian Schmitt  ilovelinux  de>
AuthorDate: Tue Nov 14 20:12:19 2017 +
Commit: Christian Schmitt  ilovelinux  de>
CommitDate: Tue Nov 14 20:12:19 2017 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=af5c7b89

[games-simulation/kerbal-space-program] Provide proper description and webpage 
link

 .../kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild
index 20ec760..8bcfab3 100644
--- 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild
+++ 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild
@@ -5,8 +5,8 @@ EAPI=6
 
 inherit eutils
 
-DESCRIPTION="A combination of platformer and role playing game"
-HOMEPAGE="http://www.unepicgame.com/;
+DESCRIPTION="A space flight simulation"
+HOMEPAGE="http://kerbalspaceprogram.com/;
 
 GOG_MAGIC="1_3_1_15547"
 



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2017-11-13 Thread Christian Schmitt
commit: 81ad7a1caaa63e17fc57b2b238ed8e9e4c0d55f2
Author: Christian Schmitt  ilovelinux  de>
AuthorDate: Mon Nov 13 20:17:33 2017 +
Commit: Christian Schmitt  ilovelinux  de>
CommitDate: Mon Nov 13 20:17:33 2017 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=81ad7a1c

[games-simulation/kerbal-space-program] Version bump to 1.3.1

 1804.ebuild => kerbal-space-program-1.3.1.1891.ebuild} | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.3.0.1804.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild
similarity index 88%
rename from 
games-simulation/kerbal-space-program/kerbal-space-program-1.3.0.1804.ebuild
rename to 
games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild
index dde7e6a..20ec760 100644
--- 
a/games-simulation/kerbal-space-program/kerbal-space-program-1.3.0.1804.ebuild
+++ 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.3.1.1891.ebuild
@@ -8,15 +8,15 @@ inherit eutils
 DESCRIPTION="A combination of platformer and role playing game"
 HOMEPAGE="http://www.unepicgame.com/;
 
-GOG_MAGIC="2.13.0.16"
+GOG_MAGIC="1_3_1_15547"
 
-SRC_PH="gog_${PN//-/_}@PH@_${GOG_MAGIC}.sh"
+SRC_PH="${PN//-/_}@PH@_${GOG_MAGIC}.sh"
 SRC_URI="
-   l10n_en? ( ${SRC_PH//@PH@} )
-   l10n_es? ( ${SRC_PH//@PH@/_spanish} )
-   l10n_ja? ( ${SRC_PH//@PH@/_japanese} )
-   l10n_ru? ( ${SRC_PH//@PH@/_russian} )
-   l10n_zh-CN? ( ${SRC_PH//@PH@/_chinese} )
+   l10n_en? ( ${SRC_PH//@PH@/_en} )
+   l10n_es? ( ${SRC_PH//@PH@/_es} )
+   l10n_ja? ( ${SRC_PH//@PH@/_ja} )
+   l10n_ru? ( ${SRC_PH//@PH@/_ru} )
+   l10n_zh-CN? ( ${SRC_PH//@PH@/_zh} )
 "
 
 RESTRICT="fetch strip"



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/, ...

2017-06-21 Thread Vadim A. Misbakh-Soloviov
commit: 37baa79165e6395d5712d5e4ab51c5a266120202
Author: Vadim A. Misbakh-Soloviov  mva  name>
AuthorDate: Wed Jun 21 06:21:31 2017 +
Commit: Vadim A. Misbakh-Soloviov  mva  name>
CommitDate: Wed Jun 21 06:21:31 2017 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=37baa791

kerbal: fix

 .../kerbal-space-program/files/ksp-wrapper | 43 ++
 ...uild => kerbal-space-program-1.3.0.1804.ebuild} | 51 +-
 2 files changed, 74 insertions(+), 20 deletions(-)

diff --git a/games-simulation/kerbal-space-program/files/ksp-wrapper 
b/games-simulation/kerbal-space-program/files/ksp-wrapper
new file mode 100644
index 000..fcbf49a
--- /dev/null
+++ b/games-simulation/kerbal-space-program/files/ksp-wrapper
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+arch="$(uname -m)"
+arch="${arch/i[2-6]/x}"
+PV="__PV__"
+s_dir="/usr/share/kerbal-space-program-${PV}"
+t_dir="${HOME}/.local/share/kerbal-space-program"
+
+
+mkdir -p "${t_dir}"
+cd "${t_dir}";
+
+IPV=$(cat .version 2>/dev/null)
+
+if [[ "${IPV}" != "${PV}" ]]; then
+   cat .content 2>/dev/null | rev | while read t; do
+   if [[ -d "${t}" ]]; then
+   rmdir "${f}" &>/dev/null
+   else
+   rm "${t}" &>/dev/null
+   fi
+   done
+
+   echo -n '' > .content # truncate -s0 ?
+   cd "${s_dir}"
+
+   find * | while read t; do
+   if [[ -d "${t}" ]]; then
+   mkdir -p "${t_dir}/${t}"
+   else
+   # Hardlinks with owner/rights change is not allowed,
+   # and symlinks doesn't work (game engine dereferences
+   # them and still complains on missing write access)
+   cp "${s_dir}/${t}" "${t_dir}/${t}"
+   fi
+   echo "${t}" >> "${t_dir}"/.content
+   done
+   echo "${PV}" > "${t_dir}"/.version
+fi
+
+export LC_NUMERIC="C"
+cd "${t_dir}";
+exec "./KSP.${arch}" "$@"

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.3.0.1804.ebuild
similarity index 60%
rename from 
games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild
rename to 
games-simulation/kerbal-space-program/kerbal-space-program-1.3.0.1804.ebuild
index 64582c5..7b542dd 100644
--- 
a/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild
+++ 
b/games-simulation/kerbal-space-program/kerbal-space-program-1.3.0.1804.ebuild
@@ -7,14 +7,27 @@ inherit eutils
 
 DESCRIPTION="A combination of platformer and role playing game"
 HOMEPAGE="http://www.unepicgame.com/;
-SRC_URI="gog_${P//-/_}.sh"
+
+GOG_MAGIC="2.13.0.16"
+
+SRC_PH="gog_${PN//-/_}@PH@_${GOG_MAGIC}.sh"
+SRC_URI="
+   l10n_en? ( ${SRC_PH//@PH@} )
+   l10n_es? ( ${SRC_PH//@PH@/_spanish} )
+   l10n_ja? ( ${SRC_PH//@PH@/_japanese} )
+   l10n_ru? ( ${SRC_PH//@PH@/_russian} )
+   l10n_zh-CN? ( ${SRC_PH//@PH@/_chinese} )
+"
 
 RESTRICT="fetch strip"
 LICENSE="EULA"
 
 SLOT="0"
 KEYWORDS="amd64 x86"
-IUSE=""
+
+L10NS="l10n_en l10n_es l10n_ja l10n_ru l10n_zh-CN"
+IUSE="${L10NS}"
+REQUIRED_USE="^^ ( ${L10NS} )"
 
 DEPEND="app-arch/unzip"
 RDEPEND="
@@ -39,18 +52,29 @@ pkg_nofetch() {
 }
 
 src_unpack() {
+   local tmp="${WORKDIR}/tmp"
einfo "\nUnpacking files. This can take several minutes.\n"
 
-   mkdir "${WORKDIR}/tmp" || die "mkdir 'tmp' failed"
-   cd "${WORKDIR}/tmp" || die "cd 'tmp' failed"
+   mkdir "${tmp}" || die "mkdir 'tmp' failed"
+   cd "${tmp}" || die "cd 'tmp' failed"
 
unzip -q "${DISTDIR}/${A}"
-
local gpath="data/noarch/game"
 
mv "${gpath}" "${S}"
 
-   cd "${S}" && rm -r "${WORKDIR}/tmp"
+   cd "${S}"
+
+   use l10n_es && unzip -oq KSP-LANG-ES-ES.zip && rm KSP-LANG-ES-ES.zip
+   use l10n_ja && unzip -oq KSP-LANG-JA.zip && rm KSP-LANG-JA.zip
+   use l10n_ru && unzip -oq KSP-LANG-RU.zip && rm KSP-LANG-RU.zip
+   use l10n_zh-CN && unzip -oq KSP-LANG-ZH-CN.zip && rm KSP-LANG-ZH-CN.zip
+
+   rm -r "${WORKDIR}/tmp"
+
+   find . -name .DS_Store -delete
+
+   sed -e "s@__PV__@${PF}@" "${FILESDIR}/ksp-wrapper" > "${T}"/ksp-wrapper
 }
 
 src_install() {
@@ -62,20 +86,7 @@ src_install() {
doins -r .
doexe {KSP,Launcher}.x86{,_64} || die "Failed to install executables"
 
+   newbin "${T}/ksp-wrapper" "${PN}"
newicon "Launcher_Data/Resources/UnityPlayer.png" "${PN}.png"
-   make_wrapper "${PN}" "./KSP.${arch}" "${dir}"
-   make_wrapper "${PN}-launcher" "./Launcher.${arch}" "${dir}"
make_desktop_entry "${PN}" "Kerbal Space Program" "${PN}" || die 
"make_desktop_entry failed"
-   make_desktop_entry "${PN}-launcher" "Kerbal Space Program: Launcher" 
"${PN}" || die "make_desktop_entry failed"
-}
-
-pkg_postinst() {
-   einfo "Just in case: neither of these DRM-free versions sees Steam's 

[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2017-06-17 Thread Vadim A. Misbakh-Soloviov
commit: 1e7a9cf8915153f4c65c297c804a581e8bf9c9af
Author: Vadim A. Misbakh-Soloviov  mva  name>
AuthorDate: Sat Jun 17 06:06:00 2017 +
Commit: Vadim A. Misbakh-Soloviov  mva  name>
CommitDate: Sat Jun 17 06:06:00 2017 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=1e7a9cf8

kerbal: added missing deps

 .../kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild| 8 
 1 file changed, 8 insertions(+)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild
index fada004..64582c5 100644
--- 
a/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild
+++ 
b/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild
@@ -18,6 +18,14 @@ IUSE=""
 
 DEPEND="app-arch/unzip"
 RDEPEND="
+   dev-libs/glib:2
+   media-libs/mesa
+   sys-libs/glibc:2.2
+   x11-libs/gdk-pixbuf:2
+   x11-libs/gtk+:2
+   x11-libs/libX11
+   x11-libs/libXcursor
+   x11-libs/libXrandr
 "
 QA_DIR="usr/share/${PF}"
 QA_PREBUILT="${QA_DIR}/Launcher.x86 ${QA_DIR}/KSP.x86 
${QA_DIR}/Launcher_Data/Mono/x86/libmono.so 
${QA_DIR}/KSP_Data/Mono/x86/libmono.so"



[gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/

2017-06-17 Thread Vadim A. Misbakh-Soloviov
commit: 0a8bbdf4d8db63f63a94388dda01a29dfdf854d7
Author: Vadim A. Misbakh-Soloviov  mva  name>
AuthorDate: Sat Jun 17 06:00:43 2017 +
Commit: Vadim A. Misbakh-Soloviov  mva  name>
CommitDate: Sat Jun 17 06:00:43 2017 +
URL:https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=0a8bbdf4

kerbal-space-program: added

 .../kerbal-space-program-2.13.0.16.ebuild  | 73 ++
 1 file changed, 73 insertions(+)

diff --git 
a/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild 
b/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild
new file mode 100644
index 000..fada004
--- /dev/null
+++ 
b/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="A combination of platformer and role playing game"
+HOMEPAGE="http://www.unepicgame.com/;
+SRC_URI="gog_${P//-/_}.sh"
+
+RESTRICT="fetch strip"
+LICENSE="EULA"
+
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+"
+QA_DIR="usr/share/${PF}"
+QA_PREBUILT="${QA_DIR}/Launcher.x86 ${QA_DIR}/KSP.x86 
${QA_DIR}/Launcher_Data/Mono/x86/libmono.so 
${QA_DIR}/KSP_Data/Mono/x86/libmono.so"
+
+pkg_nofetch() {
+   einfo ""
+   einfo "Please buy and download \"${A}\" from corresponding shop 
(HumbleBundle or GOG)"
+   einfo "and move/link it to \"${DISTDIR}\""
+   einfo "You can get more info on ${HOMEPAGE}"
+   einfo ""
+}
+
+src_unpack() {
+   einfo "\nUnpacking files. This can take several minutes.\n"
+
+   mkdir "${WORKDIR}/tmp" || die "mkdir 'tmp' failed"
+   cd "${WORKDIR}/tmp" || die "cd 'tmp' failed"
+
+   unzip -q "${DISTDIR}/${A}"
+
+   local gpath="data/noarch/game"
+
+   mv "${gpath}" "${S}"
+
+   cd "${S}" && rm -r "${WORKDIR}/tmp"
+}
+
+src_install() {
+   local arch="${ARCH//amd/x86_}"
+   local dir="/usr/share/${PF}"
+   insinto "${dir}"
+   exeinto "${dir}"
+
+   doins -r .
+   doexe {KSP,Launcher}.x86{,_64} || die "Failed to install executables"
+
+   newicon "Launcher_Data/Resources/UnityPlayer.png" "${PN}.png"
+   make_wrapper "${PN}" "./KSP.${arch}" "${dir}"
+   make_wrapper "${PN}-launcher" "./Launcher.${arch}" "${dir}"
+   make_desktop_entry "${PN}" "Kerbal Space Program" "${PN}" || die 
"make_desktop_entry failed"
+   make_desktop_entry "${PN}-launcher" "Kerbal Space Program: Launcher" 
"${PN}" || die "make_desktop_entry failed"
+}
+
+pkg_postinst() {
+   einfo "Just in case: neither of these DRM-free versions sees Steam's 
savegames."
+   einfo "In case, if you played in Steam and moved to DRM-free version,"
+   einfo "consider copying files from:"
+   einfo "~/.local/share/Steam/userdata/[your_user_id]/233980/remote/save"
+   einfo "to:"
+   einfo "~/.local/share/Unepic/unepic/save"
+   einfo "and vice versa if you want to import DRM-free saves to Steam."
+   einfo "Although, it can cause sudden game freezes..."
+}