commit:     ffd6fcd61ca358266abf110356ee86c81b3be719
Author:     hautist <lookatnadeko <AT> protonmail <DOT> com>
AuthorDate: Mon Sep 29 21:27:32 2025 +0000
Commit:     hautist <lookatnadeko <AT> protonmail <DOT> com>
CommitDate: Mon Sep 29 21:27:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ffd6fcd6

games-engines/xsystem4: add 1.0.0

Signed-off-by: hautist <lookatnadeko <AT> protonmail.com>

 games-engines/xsystem4/Manifest              |  2 +
 games-engines/xsystem4/xsystem4-1.0.0.ebuild | 79 ++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/games-engines/xsystem4/Manifest b/games-engines/xsystem4/Manifest
new file mode 100644
index 0000000000..fe656c2c47
--- /dev/null
+++ b/games-engines/xsystem4/Manifest
@@ -0,0 +1,2 @@
+DIST libsys4-6adc519d11a63df266902abf2d8e755d23894709.tar.gz 122332 BLAKE2B 
c681a70548acfa5cd30730645bad627c692d4b3d409d7c00a0646d4b07ab4a7329d033ad6b019ace6109d9e90f694d2046e5c9bf982eb6aaa195a0c9eec8ac3f
 SHA512 
e35b3c36f7dc7f768c79c10d704b87685195cf0254bc26337183fbe8ba65e7fc6f41d912409a10bb783642e539dbb5ab1a5b7c085144543a4c2a5417f7d883f8
+DIST xsystem4-1.0.0.tar.gz 15518454 BLAKE2B 
698be5bb88b7be786a6c5467be40e9f8524eb402dcd31627c639013efa6eee33ba905fed4ff8b03a6c2ec5fe33cea2529eff4d40d105661a158fd37b07564800
 SHA512 
04cf2e78d1aaa3a080a6a80f21b050a9f9ebd71102da23058b8e9defd7ce9d108fa5e08b809ad637865866b5bb5c2ae59e15926592715b422efbeca6302289be

diff --git a/games-engines/xsystem4/xsystem4-1.0.0.ebuild 
b/games-engines/xsystem4/xsystem4-1.0.0.ebuild
new file mode 100644
index 0000000000..b536d81e86
--- /dev/null
+++ b/games-engines/xsystem4/xsystem4-1.0.0.ebuild
@@ -0,0 +1,79 @@
+EAPI=8
+
+inherit meson
+
+# check if submodule commit needs to be updated on each xsystem4 update
+LIBSYS4_COMMIT="6adc519d11a63df266902abf2d8e755d23894709"
+
+DESCRIPTION="Cross-platform implementation of AliceSoft's System 4 game engine"
+HOMEPAGE="https://github.com/nunuhara/xsystem4";
+SRC_URI="
+       https://github.com/nunuhara/xsystem4/archive/${PV}.tar.gz -> ${P}.tar.gz
+       https://github.com/nunuhara/libsys4/archive/${LIBSYS4_COMMIT}.tar.gz -> 
libsys4-${LIBSYS4_COMMIT}.tar.gz
+"
+
+#libsys4 submodule uses the same license
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug gles2"
+
+RDEPEND="
+       dev-libs/cglm
+       dev-libs/libffi
+       media-libs/freetype:2
+       media-libs/libpng
+       media-libs/libsndfile
+       media-libs/libsdl2
+       media-libs/libwebp
+       sys-libs/zlib
+       media-libs/libjpeg-turbo
+       >=media-video/ffmpeg-5.1
+       gles2? (
+               media-libs/mesa
+       )
+       !gles2? (
+               virtual/opengl
+               media-libs/glew:0=
+       )
+       debug? (
+               dev-scheme/chibi
+       )
+"
+
+DEPEND="
+       ${RDEPEND}
+"
+
+BDEPEND="
+       sys-devel/bison
+       sys-devel/flex
+       dev-build/meson
+       dev-build/ninja
+       virtual/pkgconfig
+"
+
+src_unpack() {
+       default
+
+       rmdir "${S}"/subprojects/libsys4 || die
+       mv "${WORKDIR}"/libsys4-${LIBSYS4_COMMIT}/ "${S}"/subprojects/libsys4 
|| die
+}
+
+src_configure() {
+       local emesonargs=(
+               $(meson_feature debug debugger)
+               $(meson_feature gles2 opengles)
+       )
+
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+
+       # Documentation is installed automatically by meson
+       # (shaders/, fonts/, debugger.scm are installed to datadir/xsystem4)
+
+       dodoc README.md game_compatibility.md
+}

Reply via email to