diff --git a/games-arcade/opensurge/Manifest b/games-arcade/opensurge/Manifest index d94587769c..d4484af248 100644 --- a/games-arcade/opensurge/Manifest +++ b/games-arcade/opensurge/Manifest @@ -1 +1,2 @@ DIST opensurge-0.5.2.1.tar.gz 33482890 BLAKE2B 05a0a354dcf88254e35878c83587d480d02f6d1a8654e2fa0f694addbf9d428d5703275dba9870b64ed7e53b4a9892c69a3036e00324f7ccddbebaa1974e81d5 SHA512 1f407ca33ef6d6bd72848f3db1b0b51f42a19648c1164d3547bdc2126dba310f318527f3bf04af0dfe78998a3a53bf057af92f8b1ff36e33255ee270a97bf2f3 +DIST opensurge-0.6.1.2.tar.gz 37406904 BLAKE2B 3d028f616bbc400a89b54c1d83d803f9d7333f00b1559176e9ebcf9a4d270960108705693adb770da944e235e5d7429dcaf8502d775f31b2f7456f0861e640f2 SHA512 9ec9ddd7a7b37732c3c2cfe9993c352c59c5b65ed378b680c38bf93b3dc45144b77c8e026335d187831ca7427225e900a994ced99cd9498ed0cfc9ebd400ca3a diff --git a/games-arcade/opensurge/opensurge-0.6.1.2.ebuild b/games-arcade/opensurge/opensurge-0.6.1.2.ebuild new file mode 100644 index 0000000000..7a67fbd455 --- /dev/null +++ b/games-arcade/opensurge/opensurge-0.6.1.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 2019-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/alemart/opensurge" +else + SRC_URI="https://github.com/alemart/opensurge/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="fun 2D retro platformer inspired by old-school Sonic games" +HOMEPAGE="https://opensurge2d.org/" +LICENSE="Allegro Apache-2.0 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-3.0 CC-BY-SA-4.0 CC0-1.0 GPL-3+ MIT OFL-1.1 WTFPL-2" +SLOT="0" + +# Allegro:5 libs to USE +# - image: jpeg,png +# - primitives: opengl +# - font+ttf: truetype +# - acodec+audio: alsa/openal/oss/pulseaudio (present in REQUIRED_USE) +# - dialog: gtk +# allegro[vorbis] isn't in CMakeList.txt but is required for the .ogg assets +DEPEND=" + >=media-libs/allegro-5.2.7:5[jpeg,png,opengl,truetype(-),gtk(-),vorbis,physfs] + >=dev-games/surgescript-0.6.1:= + >=dev-games/physfs-3.2.0 +" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DGAME_BINDIR="/usr/bin" + -DGAME_DATADIR="/usr/share/${PN}" + ) + + cmake_src_configure +} diff --git a/games-arcade/opensurge/opensurge-9999.ebuild b/games-arcade/opensurge/opensurge-9999.ebuild index 3368435a88..7a67fbd455 100644 --- a/games-arcade/opensurge/opensurge-9999.ebuild +++ b/games-arcade/opensurge/opensurge-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 2019-2021 Gentoo Authors +# Copyright 2019-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit cmake @@ -15,7 +15,7 @@ fi DESCRIPTION="fun 2D retro platformer inspired by old-school Sonic games" HOMEPAGE="https://opensurge2d.org/" -LICENSE="GPL-3" +LICENSE="Allegro Apache-2.0 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-3.0 CC-BY-SA-4.0 CC0-1.0 GPL-3+ MIT OFL-1.1 WTFPL-2" SLOT="0" # Allegro:5 libs to USE @@ -26,8 +26,17 @@ SLOT="0" # - dialog: gtk # allegro[vorbis] isn't in CMakeList.txt but is required for the .ogg assets DEPEND=" - >=media-libs/allegro-5.2.5:= - media-libs/allegro[jpeg,png,opengl,truetype(-),gtk(-),vorbis] - >=dev-games/surgescript-0.5.4.3:= + >=media-libs/allegro-5.2.7:5[jpeg,png,opengl,truetype(-),gtk(-),vorbis,physfs] + >=dev-games/surgescript-0.6.1:= + >=dev-games/physfs-3.2.0 " RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DGAME_BINDIR="/usr/bin" + -DGAME_DATADIR="/usr/share/${PN}" + ) + + cmake_src_configure +}