From ff733bfb4d0bd82175e03255004faef8721b53ea Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 2 Jan 2025 06:31:11 +0000 Subject: gentoo auto-resync : 02:01:2025 - 06:31:11 --- games-arcade/Manifest.gz | Bin 20093 -> 20102 bytes games-arcade/jvgs/Manifest | 3 ++ games-arcade/jvgs/files/jvgs-0.5-path.patch | 32 +++++++++++++++ games-arcade/jvgs/jvgs-0.5.1.ebuild | 60 ++++++++++++++++++++++++++++ 4 files changed, 95 insertions(+) create mode 100644 games-arcade/jvgs/files/jvgs-0.5-path.patch create mode 100644 games-arcade/jvgs/jvgs-0.5.1.ebuild (limited to 'games-arcade') diff --git a/games-arcade/Manifest.gz b/games-arcade/Manifest.gz index 0a19bb3358cf..55cfdcb6d1c2 100644 Binary files a/games-arcade/Manifest.gz and b/games-arcade/Manifest.gz differ diff --git a/games-arcade/jvgs/Manifest b/games-arcade/jvgs/Manifest index 1ce2f69158cc..1a1015998f26 100644 --- a/games-arcade/jvgs/Manifest +++ b/games-arcade/jvgs/Manifest @@ -1,5 +1,8 @@ AUX jvgs-0.5-fix-build-system.patch 1028 BLAKE2B 644c07ed7374ec7677ca0f744d08e10a08e1d49a1c0d4bab7d9b87ce78ebb138582238873353ce25471e4a95555b016010ca04fe5672ef8bf256cdb74ea3a378 SHA512 0f049df4b986d380634837e1e5bc4e21d0fb228a7c61cc6765ebec7cc74f3e37ef71260a2d7a7cc830ac9ea22258702f9cad29d3941bf2dff0f3f6ea56817dc8 +AUX jvgs-0.5-path.patch 577 BLAKE2B dcb1c1899a146f6fa5ba0a7c72cd0db673bc94207587263525ea549a79c4840939a3a46eca70f1b0e4a1bb5bd98a7baca4ebf98e639589fff604c4f04de9277d SHA512 833198d822b48160c51a0c0106b1329f79fab249bbde9fd422abef016d50becc88353c589b6e056b14ede8df90079d621a8ca3d9a4f51a5897c4923804aa2515 AUX jvgs-0.5-unbundle-tinyxml.patch 8652 BLAKE2B 0da26995149bb1918e6b6a6b7884b06e66728d0b931341a00aeea932d0c9ac235efe99f95648ad78900a53154f3b1dbdd8f1da6961fb1adf93b14694b4576694 SHA512 f652c855fa70f7f4e836b14c175c3a68c082976396e8d3722d92a89ec50574eb3f79bca2a8a0f5de365bd89856dba09025e341075169aaf1c918ef623dca48bf DIST jvgs-0.5-src.tar.gz 25917861 BLAKE2B 8b7716a16cd7dfdb3f8f7eb2292a121b142a4487f8fb58d046db81cc579b61b3db56728f5ecef8272ec74d8cf898da5c3ee12fa7c492fd219de977ea37bc9ee9 SHA512 0a0a8e7a0e7dce6f61bcd328f579212115eb95e3dce8ca223c1d8a3432d9083bf9a313f02f46b799991aa32f10cb9c14e8ecb63a4578b1ffaabc374ba139b28d +DIST jvgs-0.5.1-src.tar.gz 25932185 BLAKE2B 317e1005fd6107c6ef9ddd9d5614df0e889d4f7a529b39a2b00bb1d6ec81d6cfe101af31b7b17873ea224b28148c9c19eb2618f194a12b6ca5b4b7fc5c9f97d4 SHA512 f1a9cb96a1a40f1a27fced0aa1809c06d4fef79d88508d1503bfa3e35f58255673d900ea4f8902b65b3fa63c029423b622e96b14c9aa71e5825c907a4b59e1af EBUILD jvgs-0.5-r100.ebuild 1221 BLAKE2B 7ea2a125c67c7ded0cc657f2536c0cda013854d820bf2988d70e0b90e6ead57109525d0490db95768ab4dbb361c7c7c9243187a08f8dbd98102b52bf1af97f54 SHA512 a9919e95c91c14c3b15a985a394fc6d082609b43ba73157c20a61d6099ca11ee987a9752355c4ce5e174bcd6d520ec25033f34ef0ca37fb245f59c394b8a8234 +EBUILD jvgs-0.5.1.ebuild 1195 BLAKE2B ae3e45c399ae60146bb210314b30b65b1cabe93bb39cdd420ab9358343357e70f84cca316039edc8b332d66ef850d37e81da126cc33a75e6f28cb8011cf1701e SHA512 939ea0185910616d5c6e44f09c234d57d606191f404b2c1a9b87866c41eec68efd5f88650538a0783740964e62da31ac7acc03c28fa0c416a982f72ae81dad13 MISC metadata.xml 328 BLAKE2B bfdd88a00ef8acde7520fa55ee3de143afaec563d663626ea55237cba459beaf7dcb216e69c75c7bec7f1748429268b4e7aaa1b9b15ca3f2738952840a01e94c SHA512 5d48c549967ec2bf3250220d652c9e5aff9eb8bd8ed91e1d79820265bc814b6b0b867b1f64944fc1a816ceffbbfd2f0a6b7cd3ade7e63c4593f4cd8100a870ec diff --git a/games-arcade/jvgs/files/jvgs-0.5-path.patch b/games-arcade/jvgs/files/jvgs-0.5-path.patch new file mode 100644 index 000000000000..30e5cf8cdb97 --- /dev/null +++ b/games-arcade/jvgs/files/jvgs-0.5-path.patch @@ -0,0 +1,32 @@ +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -6,6 +6,7 @@ + + #include + using namespace std; ++#include + + /* Needed on windows to link main with SDLmain. */ + #include +@@ -20,9 +21,20 @@ + + if(argc < 2) { + /* Some default. */ ++ chdir("/usr/share/jvgs/"); + fileName = "main.lua"; + } else { +- fileName = argv[1]; ++ char *pos; ++ pos = strrchr(argv[1],'/'); ++ if(pos) { ++ *pos='\0'; ++ pos++; ++ chdir(argv[1]); ++ fileName=pos; ++ } ++ else { ++ fileName = argv[1]; ++ } + } + + scriptManager->runScript(fileName); diff --git a/games-arcade/jvgs/jvgs-0.5.1.ebuild b/games-arcade/jvgs/jvgs-0.5.1.ebuild new file mode 100644 index 000000000000..1268a12b2be5 --- /dev/null +++ b/games-arcade/jvgs/jvgs-0.5.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-1 ) + +inherit cmake desktop lua-single + +DESCRIPTION="Open-source platform game with a sketched and minimalistic look" +HOMEPAGE="https://jvgs.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/jvgs/${P}-src.tar.gz" +S="${WORKDIR}/${P}-src" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="${LUA_DEPS} + dev-libs/tinyxml[stl] + media-libs/libsdl[video] + media-libs/sdl-mixer[vorbis] + media-libs/freetype:2 + sys-libs/zlib:= + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + virtual/opengl + virtual/glu +" +DEPEND="${RDEPEND}" +BDEPEND="dev-lang/swig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5-fix-build-system.patch + "${FILESDIR}"/${PN}-0.5-unbundle-tinyxml.patch + "${FILESDIR}"/${PN}-0.5-path.patch +) + +src_prepare() { + # Make sure we don't use bundled copy + rm -r src/tinyxml/ || die + + cmake_src_prepare +} + +src_install() { + dobin "${BUILD_DIR}"/src/${PN} + + insinto /usr/share/${PN} + doins -r main.lua resources + + newicon resources/drawing.svg ${PN}.svg + make_desktop_entry ${PN} ${PN} + + einstalldocs +} -- cgit v1.2.3