summaryrefslogtreecommitdiff
path: root/games-arcade
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-19 18:57:17 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-19 18:57:17 +0000
commit221a8131dab3bd52abe8a1c35202bba7545cdbe0 (patch)
tree161d40c879411f29027a8cb092546806e85a5e37 /games-arcade
parent11deb79ce024dcc296457593252578db70b46e6c (diff)
downloadbaldeagleos-repo-221a8131dab3bd52abe8a1c35202bba7545cdbe0.tar.gz
baldeagleos-repo-221a8131dab3bd52abe8a1c35202bba7545cdbe0.tar.xz
baldeagleos-repo-221a8131dab3bd52abe8a1c35202bba7545cdbe0.zip
Adding metadata
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/oshu/Manifest1
-rw-r--r--games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch16
-rw-r--r--games-arcade/oshu/metadata.xml6
-rw-r--r--games-arcade/oshu/oshu-2.0.2-r1.ebuild69
-rw-r--r--games-arcade/oshu/oshu-2.0.2.ebuild33
-rw-r--r--games-arcade/oshu/oshu-9999.ebuild (renamed from games-arcade/oshu/oshu-2.0.1.ebuild)18
6 files changed, 124 insertions, 19 deletions
diff --git a/games-arcade/oshu/Manifest b/games-arcade/oshu/Manifest
index 218a6c1c7a76..9a46a682450e 100644
--- a/games-arcade/oshu/Manifest
+++ b/games-arcade/oshu/Manifest
@@ -1,3 +1,2 @@
-DIST oshu-2.0.1.tar.gz 144900 BLAKE2B 47f1d0a11255459ae357142499aeffcf07fbcad961cb34ba98e9efa7cb4229cf8d61ec836a4c899f2ea0883f1252395bc0c6ff34c5d670d67091cf6483d135ff SHA512 65768b3d8e7733464f05a19bbee594c0be728267bbd0667bc0f34e0d01a39e52d4ecce89a9223f7c454d73b21bc735401e9d83eea8b0a2eaf1c7825a3bd6b1cf
DIST oshu-2.0.2.tar.gz 146109 BLAKE2B 98dd49f972f1f1f820f654a2d358ceffdd2c54cd2daa0594914e6a1e29f1d1e757fe46d021afc75a33f4ef94bbb370213f20229843c173d7c55d876fe3db7e12 SHA512 e881e9429cebaf74337e55e7fa5445d992627d7616088f15abfafa2c125e1ff057a5b0f39ee4a1d1728c310728a8590e65286b9a0f81dca1f8963b2943fba596
DIST oshu-skin-v1.tar.gz 2224947 BLAKE2B 0b463133dd7ab54421551627d12932f5257848b1130d57af8c2ff6b6836a49c9322b8f2f7e95de540909390d0139e547650a6bb321614cf92fac464b09075674 SHA512 d562294ac5e122a9d9971e3ab92f6168d848177cc5e22a94bbc450fde2b3b14007796a24d33722da9b6675467b109ce128ba94dca5dcc7c61c91c1e373032618
diff --git a/games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch b/games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch
new file mode 100644
index 000000000000..c16e61ce1288
--- /dev/null
+++ b/games-arcade/oshu/files/oshu-2.0.2-ffmpeg4-compat.patch
@@ -0,0 +1,16 @@
+diff --git a/./lib/audio/stream.cc.old b/./lib/audio/stream.cc
+index 808851f..09eb4fb 100644
+--- a/./lib/audio/stream.cc.old
++++ b/./lib/audio/stream.cc
+@@ -193,7 +193,11 @@ static int open_demuxer(const char *url, oshu::stream *stream)
+ stream->demuxer,
+ AVMEDIA_TYPE_AUDIO,
+ -1, -1,
++#if LIBAVCODEC_VERSION_MAJOR < 59
++ &stream->codec,
++#else
+ (const AVCodec**)&stream->codec,
++#endif
+ 0
+ );
+ if (rc < 0 || stream->codec == NULL) {
diff --git a/games-arcade/oshu/metadata.xml b/games-arcade/oshu/metadata.xml
index 64ce840e75d1..36a3b55f96c5 100644
--- a/games-arcade/oshu/metadata.xml
+++ b/games-arcade/oshu/metadata.xml
@@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="project">
- <email>dev@liguros.net</email>
- <name>Development</name>
- </maintainer>
<maintainer type="person">
<email>contact@hacktivis.me</email>
</maintainer>
@@ -16,5 +12,5 @@
<use>
<flag name="osu-skin">Include more complete osu-skin (other is minimal)</flag>
</use>
- <origin>ports</origin>
+ <origin>gentoo-staging</origin>
</pkgmetadata> \ No newline at end of file
diff --git a/games-arcade/oshu/oshu-2.0.2-r1.ebuild b/games-arcade/oshu/oshu-2.0.2-r1.ebuild
new file mode 100644
index 000000000000..0398b85e3621
--- /dev/null
+++ b/games-arcade/oshu/oshu-2.0.2-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake ffmpeg-compat xdg
+
+DESCRIPTION="Lightweight osu! port"
+HOMEPAGE="https://github.com/fmang/oshu"
+
+if [[ ${PV} = *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/fmang/oshu.git"
+ SRC_URI="osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
+else
+ SRC_URI="https://github.com/fmang/oshu/archive/${PV}.tar.gz -> oshu-${PV}.tar.gz
+ osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3 CC-BY-NC-4.0"
+SLOT="0"
+IUSE="osu-skin"
+
+RDEPEND="
+ media-libs/libsdl2
+ media-libs/sdl2-image
+ x11-libs/cairo
+ x11-libs/pango
+ media-video/ffmpeg-compat:6=
+"
+
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/oshu-2.0.2-ffmpeg4-compat.patch" )
+
+src_unpack() {
+ default
+
+ if [[ ${PV} = *9999 ]]; then
+ git-r3_src_unpack
+ fi
+}
+
+src_prepare() {
+ if use osu-skin; then
+ eapply "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch"
+ mv "${WORKDIR}/osu" share/skins/ || die "Failed to move osu-skin"
+ fi
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ # TODO: fix with >=ffmpeg-7 then drop compat (bug #948392)
+ ffmpeg_compat_setup 6
+ ffmpeg_compat_add_flags
+
+ local mycmakeargs=(
+ -DOSHU_DEFAULT_SKIN=$(usex osu-skin osu minimal)
+ -DOSHU_SKINS=minimal$(usev osu-skin ';osu')
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ cmake_build check
+}
diff --git a/games-arcade/oshu/oshu-2.0.2.ebuild b/games-arcade/oshu/oshu-2.0.2.ebuild
index bb5060b647a0..c1d02ab63c76 100644
--- a/games-arcade/oshu/oshu-2.0.2.ebuild
+++ b/games-arcade/oshu/oshu-2.0.2.ebuild
@@ -1,16 +1,23 @@
-# Copyright 2022 Liguros Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+
EAPI=8
inherit cmake xdg
DESCRIPTION="Lightweight osu! port"
HOMEPAGE="https://github.com/fmang/oshu"
-SRC_URI="
- https://github.com/fmang/oshu/archive/${PV}.tar.gz -> oshu-${PV}.tar.gz
- osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )
-"
-KEYWORDS="~amd64 ~x86"
+
+if [[ ${PV} = *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/fmang/oshu.git"
+ SRC_URI="osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
+else
+ SRC_URI="https://github.com/fmang/oshu/archive/${PV}.tar.gz -> oshu-${PV}.tar.gz
+ osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
+ KEYWORDS="~amd64 ~x86"
+fi
+
LICENSE="GPL-3 CC-BY-NC-4.0"
SLOT="0"
IUSE="osu-skin"
@@ -25,6 +32,16 @@ RDEPEND="
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/oshu-2.0.2-ffmpeg4-compat.patch" )
+
+src_unpack() {
+ default
+
+ if [[ ${PV} = *9999 ]]; then
+ git-r3_src_unpack
+ fi
+}
+
src_prepare() {
if use osu-skin; then
eapply "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch"
@@ -36,8 +53,8 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
- '-DOSHU_DEFAULT_SKIN='$(usex osu-skin 'osu' 'minimal')
- '-DOSHU_SKINS=minimal'$(usex osu-skin ';osu' '')
+ -DOSHU_DEFAULT_SKIN=$(usex osu-skin osu minimal)
+ -DOSHU_SKINS=minimal$(usev osu-skin ';osu')
)
cmake_src_configure
diff --git a/games-arcade/oshu/oshu-2.0.1.ebuild b/games-arcade/oshu/oshu-9999.ebuild
index 5ebae7bfdcd6..cf543ede25bd 100644
--- a/games-arcade/oshu/oshu-2.0.1.ebuild
+++ b/games-arcade/oshu/oshu-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit cmake xdg
@@ -27,11 +27,19 @@ RDEPEND="
media-libs/sdl2-image
x11-libs/cairo
x11-libs/pango
- media-video/ffmpeg:=
+ >media-video/ffmpeg-5:=
"
DEPEND="${RDEPEND}"
+src_unpack() {
+ default
+
+ if [[ ${PV} = *9999 ]]; then
+ git-r3_src_unpack
+ fi
+}
+
src_prepare() {
if use osu-skin; then
eapply "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch"
@@ -43,8 +51,8 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
- '-DOSHU_DEFAULT_SKIN='$(usex osu-skin 'osu' 'minimal')
- '-DOSHU_SKINS=minimal'$(usex osu-skin ';osu' '')
+ -DOSHU_DEFAULT_SKIN=$(usex osu-skin osu minimal)
+ -DOSHU_SKINS=minimal$(usev osu-skin ';osu')
)
cmake_src_configure