commit: 5ae039db9859d4bfe67de574dfd10db7a8372b30 Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> AuthorDate: Thu Oct 30 21:02:20 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 11 23:56:23 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ae039db
games-arcade/oshu: add 2.0.3 Closes: https://bugs.gentoo.org/948392 Closes: https://bugs.gentoo.org/964778 Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> Part-of: https://github.com/gentoo/gentoo/pull/44393 Signed-off-by: Sam James <sam <AT> gentoo.org> games-arcade/oshu/Manifest | 1 + games-arcade/oshu/oshu-2.0.3.ebuild | 63 +++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/games-arcade/oshu/Manifest b/games-arcade/oshu/Manifest index 9a46a682450e..0fcb8d40e838 100644 --- a/games-arcade/oshu/Manifest +++ b/games-arcade/oshu/Manifest @@ -1,2 +1,3 @@ DIST oshu-2.0.2.tar.gz 146109 BLAKE2B 98dd49f972f1f1f820f654a2d358ceffdd2c54cd2daa0594914e6a1e29f1d1e757fe46d021afc75a33f4ef94bbb370213f20229843c173d7c55d876fe3db7e12 SHA512 e881e9429cebaf74337e55e7fa5445d992627d7616088f15abfafa2c125e1ff057a5b0f39ee4a1d1728c310728a8590e65286b9a0f81dca1f8963b2943fba596 +DIST oshu-2.0.3.tar.gz 146175 BLAKE2B 52cd7ee0c6d1361e622b67246597ba2494b7b64b583ae76d294143035022c9f5c317019156e7c86a7a9ca245a3403ccdc1874aeb416ab8b3b7bcfe217b2b479f SHA512 d3db0b996ce2e21400fd874682afb31ad20fdd852f44a297255a65d84a53d3c4d8110ed5268906eb70583c9cb2126c3530653057f3a809b76487c766aac9857c DIST oshu-skin-v1.tar.gz 2224947 BLAKE2B 0b463133dd7ab54421551627d12932f5257848b1130d57af8c2ff6b6836a49c9322b8f2f7e95de540909390d0139e547650a6bb321614cf92fac464b09075674 SHA512 d562294ac5e122a9d9971e3ab92f6168d848177cc5e22a94bbc450fde2b3b14007796a24d33722da9b6675467b109ce128ba94dca5dcc7c61c91c1e373032618 diff --git a/games-arcade/oshu/oshu-2.0.3.ebuild b/games-arcade/oshu/oshu-2.0.3.ebuild new file mode 100644 index 000000000000..2adec5bd5bfd --- /dev/null +++ b/games-arcade/oshu/oshu-2.0.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2025 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" + +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-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" + mv "${WORKDIR}/osu" share/skins/ || die "Failed to move osu-skin" + fi + + cmake_src_prepare +} + +src_configure() { + 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 +}
