[gentoo-commits] repo/proj/guru:master commit in: games-arcade/SpaceCadetPinball/

2024-03-14 Thread David Roman
commit: a6721d46297a71ebb2d6ccdc887ca0858cb7b069
Author: Piotr Kubaj  anongoth  pl>
AuthorDate: Wed Mar 13 23:31:54 2024 +
Commit: David Roman  gmail  com>
CommitDate: Wed Mar 13 23:31:54 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a6721d46

games-arcade/SpaceCadetPinball: keyword 2.1.0 for ~ppc64

Signed-off-by: Piotr Kubaj  anongoth.pl>

 games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.1.0.ebuild 
b/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.1.0.ebuild
index 8a905a8510..673101364d 100644
--- a/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.1.0.ebuild
+++ b/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.1.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/k4zmu2a/${PN}/archive/refs/tags/Release_${PV}.tar.gz
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
 
 DEPEND="
media-libs/libsdl2



[gentoo-commits] repo/proj/guru:master commit in: games-arcade/SpaceCadetPinball/

2023-10-16 Thread Viorel Munteanu
commit: 9249b3ba6fec76cc2aa78258eac16da78e3b12d5
Author: Nicola Smaniotto  gmail  com>
AuthorDate: Mon Oct 16 15:06:10 2023 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Mon Oct 16 15:06:10 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9249b3ba

games-arcade/SpaceCadetPinball: add 2.1.0

Signed-off-by: Nicola Smaniotto  gmail.com>

 games-arcade/SpaceCadetPinball/Manifest|  1 +
 .../SpaceCadetPinball-2.1.0.ebuild | 31 ++
 2 files changed, 32 insertions(+)

diff --git a/games-arcade/SpaceCadetPinball/Manifest 
b/games-arcade/SpaceCadetPinball/Manifest
index 95cb3a26e3..da733fd063 100644
--- a/games-arcade/SpaceCadetPinball/Manifest
+++ b/games-arcade/SpaceCadetPinball/Manifest
@@ -1,2 +1,3 @@
 DIST SpaceCadetPinball-2.0.1.tar.gz 1882629 BLAKE2B 
55b2c4232880b065bad30371ad4c170ee2fbc485d2673d25d3afa82144d17bc6a74f70cee7dcc365992df61e95d65a97b57924e54a140b98790ee6e75b06cefd
 SHA512 
b8a23c650a6251838c531a7f1427284199ba859fbdf8715a974404dbef3485503dffa723839f6b41d335e2afc73a85bd0fe0d670ebb7fc1462f089250f1f546f
 DIST SpaceCadetPinball-2.0.tar.gz 933826 BLAKE2B 
b4a079ca856ebf315202eaae59a825d4c7022acfff7f38907ffd750f0e146da6d7c4f03286ef5c59ee5e3c725d938e30c2aad2f7269d9f18e8ae8f6807af80e1
 SHA512 
29b3f886d6ec6507c12a59b0c2877cbb51c54eee0163d0537588bb1e0fa0eb08b530d5684e8753598a823430559d5b3b9490be40ca9a3310043dac71912994c7
+DIST SpaceCadetPinball-2.1.0.tar.gz 3219590 BLAKE2B 
93bbfb33cf4e4a05132764dab503a5e4f4db0295716279f9f0e077dcff145cd024fb626c6777dad888496590b81d9d999f928e5ea9a344effcf77484572a486e
 SHA512 
0fff9049953af83b1a274fd5d845e2f19531cafae33b9fb337745169057f1a28b6eaaa1042a912fc5732eb10bb70e5ede174f2ca7873a267f368b8841bfa055d

diff --git a/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.1.0.ebuild 
b/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.1.0.ebuild
new file mode 100644
index 00..68d1514392
--- /dev/null
+++ b/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.1.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+DESCRIPTION="Decompilation of 3D Pinball for Windows - Space Cadet"
+HOMEPAGE="https://github.com/k4zmu2a/SpaceCadetPinball";
+SRC_URI="https://github.com/k4zmu2a/${PN}/archive/refs/tags/Release_${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+   media-libs/libsdl2
+   media-libs/sdl2-mixer[midi]
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-Release_${PV}"
+
+pkg_postinst(){
+   ewarn "This game is distributed without the data files."
+   ewarn "To play, copy the original DAT and SOUND files from a Windows or"
+   ewarn 'Full Tilt! installation and place them in 
$XDG_DATA_HOME/'"${PN}/"
+   ewarn "(usually: ~/.local/share/${PN}/)"
+
+   xdg_pkg_postinst
+}



[gentoo-commits] repo/proj/guru:master commit in: games-arcade/SpaceCadetPinball/

2021-12-30 Thread Florian Schmaus
commit: 0a210e9a8d83d773ab640bcdf3895a0fe1100990
Author: Nicola Smaniotto  gmail  com>
AuthorDate: Wed Dec 29 09:45:15 2021 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Wed Dec 29 09:45:38 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0a210e9a

games-arcade/SpaceCadetPinball: bump to 2.0.1

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Nicola Smaniotto  gmail.com>

 games-arcade/SpaceCadetPinball/Manifest|  1 +
 .../SpaceCadetPinball-2.0.1.ebuild | 38 ++
 2 files changed, 39 insertions(+)

diff --git a/games-arcade/SpaceCadetPinball/Manifest 
b/games-arcade/SpaceCadetPinball/Manifest
index ae7dcfd5f..95cb3a26e 100644
--- a/games-arcade/SpaceCadetPinball/Manifest
+++ b/games-arcade/SpaceCadetPinball/Manifest
@@ -1 +1,2 @@
+DIST SpaceCadetPinball-2.0.1.tar.gz 1882629 BLAKE2B 
55b2c4232880b065bad30371ad4c170ee2fbc485d2673d25d3afa82144d17bc6a74f70cee7dcc365992df61e95d65a97b57924e54a140b98790ee6e75b06cefd
 SHA512 
b8a23c650a6251838c531a7f1427284199ba859fbdf8715a974404dbef3485503dffa723839f6b41d335e2afc73a85bd0fe0d670ebb7fc1462f089250f1f546f
 DIST SpaceCadetPinball-2.0.tar.gz 933826 BLAKE2B 
b4a079ca856ebf315202eaae59a825d4c7022acfff7f38907ffd750f0e146da6d7c4f03286ef5c59ee5e3c725d938e30c2aad2f7269d9f18e8ae8f6807af80e1
 SHA512 
29b3f886d6ec6507c12a59b0c2877cbb51c54eee0163d0537588bb1e0fa0eb08b530d5684e8753598a823430559d5b3b9490be40ca9a3310043dac71912994c7

diff --git a/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.0.1.ebuild 
b/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.0.1.ebuild
new file mode 100644
index 0..004213635
--- /dev/null
+++ b/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.0.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+DESCRIPTION="Decompilation of 3D Pinball for Windows - Space Cadet"
+HOMEPAGE="https://github.com/k4zmu2a/SpaceCadetPinball";
+SRC_URI="https://github.com/k4zmu2a/${PN}/archive/refs/tags/Release_${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+   media-libs/libsdl2
+   media-libs/sdl2-mixer[midi]
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-Release_${PV}"
+
+src_prepare(){
+   # the paths should be relative
+   sed -i "s|/Platform|Platform|g" CMakeLists.txt || die
+
+   cmake_src_prepare
+}
+
+pkg_postinst(){
+   ewarn "This game is distributed without the data files."
+   ewarn "To play, copy the original DAT and SOUND files from a Windows or"
+   ewarn 'Full Tilt! installation and place them in 
$XDG_DATA_HOME/'"${PN}/"
+   ewarn "(usually: ~/.local/share/${PN}/)"
+
+   xdg_pkg_postinst
+}



[gentoo-commits] repo/proj/guru:master commit in: games-arcade/SpaceCadetPinball/files/, games-arcade/SpaceCadetPinball/

2021-11-08 Thread Andrew Ammerlaan
commit: 6fea813162aac21d7794396946e56e33475981bd
Author: Nicola Smaniotto  gmail  com>
AuthorDate: Mon Nov  8 12:07:43 2021 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Mon Nov  8 12:08:18 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6fea8131

games-arcade/SpaceCadetPinball: new package (2.0)

The patch enables loading files from user-writeable directories.

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Nicola Smaniotto  gmail.com>

 games-arcade/SpaceCadetPinball/Manifest|  1 +
 .../SpaceCadetPinball/SpaceCadetPinball-2.0.ebuild | 37 
 ...aceCadetPinball-2.0-respect-XDG_DATA_HOME.patch | 98 ++
 games-arcade/SpaceCadetPinball/metadata.xml|  8 ++
 4 files changed, 144 insertions(+)

diff --git a/games-arcade/SpaceCadetPinball/Manifest 
b/games-arcade/SpaceCadetPinball/Manifest
new file mode 100644
index 0..ae7dcfd5f
--- /dev/null
+++ b/games-arcade/SpaceCadetPinball/Manifest
@@ -0,0 +1 @@
+DIST SpaceCadetPinball-2.0.tar.gz 933826 BLAKE2B 
b4a079ca856ebf315202eaae59a825d4c7022acfff7f38907ffd750f0e146da6d7c4f03286ef5c59ee5e3c725d938e30c2aad2f7269d9f18e8ae8f6807af80e1
 SHA512 
29b3f886d6ec6507c12a59b0c2877cbb51c54eee0163d0537588bb1e0fa0eb08b530d5684e8753598a823430559d5b3b9490be40ca9a3310043dac71912994c7

diff --git a/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.0.ebuild 
b/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.0.ebuild
new file mode 100644
index 0..af9bc3d8d
--- /dev/null
+++ b/games-arcade/SpaceCadetPinball/SpaceCadetPinball-2.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Decompilation of 3D Pinball for Windows - Space Cadet"
+HOMEPAGE="https://github.com/k4zmu2a/SpaceCadetPinball";
+SRC_URI="https://github.com/k4zmu2a/${PN}/archive/refs/tags/Release_${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+   media-libs/libsdl2
+   media-libs/sdl2-mixer[midi]
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/"${P}"-respect-XDG_DATA_HOME.patch
+)
+
+S="${WORKDIR}/${PN}-Release_${PV}"
+
+src_install(){
+   dobin "${S}/bin/${PN}"
+}
+
+pkg_postinst(){
+   ewarn "This game is distributed without the data files."
+   ewarn "To play, copy the original DAT and SOUND files from a Windows or"
+   ewarn 'Full Tilt! installation and place them in 
$XDG_DATA_HOME/'"${PN}/"
+   ewarn "(usually: ~/.local/share/${PN}/)"
+}

diff --git 
a/games-arcade/SpaceCadetPinball/files/SpaceCadetPinball-2.0-respect-XDG_DATA_HOME.patch
 
b/games-arcade/SpaceCadetPinball/files/SpaceCadetPinball-2.0-respect-XDG_DATA_HOME.patch
new file mode 100644
index 0..eed02d4c3
--- /dev/null
+++ 
b/games-arcade/SpaceCadetPinball/files/SpaceCadetPinball-2.0-respect-XDG_DATA_HOME.patch
@@ -0,0 +1,98 @@
+Enables support for loading the data files from outside the executable folder,
+respecting the user $XDG_DATA_HOME variable if set.
+Backport of commit ecdf802d68f9852150ac92f9737426c340fb64a3 by k4zmu2a.
+Patch by Nicola Smaniotto.
+
+diff --git a/SpaceCadetPinball/pb.cpp b/SpaceCadetPinball/pb.cpp
+index 284ef7e..9fa7fb2 100644
+--- a/SpaceCadetPinball/pb.cpp
 b/SpaceCadetPinball/pb.cpp
+@@ -39,6 +39,8 @@ int pb::init()
+ {
+   float projMat[12], zMin = 0, zScaler = 0;
+ 
++  if (winmain::DatFileName.empty())
++  return 1;
+   auto dataFilePath = pinball::make_path_name(winmain::DatFileName);
+   record_table = partman::load_records(dataFilePath.c_str(), 
FullTiltMode);
+ 
+diff --git a/SpaceCadetPinball/winmain.cpp b/SpaceCadetPinball/winmain.cpp
+index 1b9a4c6..5e4fa9c 100644
+--- a/SpaceCadetPinball/winmain.cpp
 b/SpaceCadetPinball/winmain.cpp
+@@ -36,7 +36,7 @@ bool winmain::ShowSpriteViewer = false;
+ bool winmain::LaunchBallEnabled = true;
+ bool winmain::HighScoresEnabled = true;
+ bool winmain::DemoActive = false;
+-char* winmain::BasePath;
++std::string winmain::BasePath;
+ int winmain::MainMenuHeight = 0;
+ std::string winmain::FpsDetails;
+ double winmain::UpdateToFrameRatio;
+@@ -58,19 +58,44 @@ int winmain::WinMain(LPCSTR lpCmdLine)
+   SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Could not 
initialize SDL2", SDL_GetError(), nullptr);
+   return 1;
+   }
+-  BasePath = SDL_GetBasePath();
+ 
+   pinball::quickFlag = strstr(lpCmdLine, "-quick") != nullptr;
+-  DatFileName = options::get_string("Pinball Data", 
pinball::get_rc_string(168, 0));
+ 
+-  /*Check for full tilt .dat file and switch to it automatically*/
+-  auto cadetFilePath = pinball::make_path_name("CADET.DAT");
+-  auto cadetDat = fopen(cadetFilePath.c_str(), "r");
+-  if (cadetDat)
++  // Search for game data in: game folder, user folder
++  // Game data test order: CADET.DAT, PINBALL.DAT
++  char* dataSearchPaths[