Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/oshu/
Date: Tue, 31 Mar 2020 08:39:30
Message-Id: 1585643939.ff220499be5e804428adc83035a13c25ad9e73a6.juippis@gentoo
1 commit: ff220499be5e804428adc83035a13c25ad9e73a6
2 Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
3 AuthorDate: Tue Mar 31 08:28:35 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 31 08:38:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff220499
7
8 games-arcade/oshu: Add live ebuild
9
10 Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 games-arcade/oshu/oshu-9999.ebuild | 55 ++++++++++++++++++++++++++++++++++++++
14 1 file changed, 55 insertions(+)
15
16 diff --git a/games-arcade/oshu/oshu-9999.ebuild b/games-arcade/oshu/oshu-9999.ebuild
17 new file mode 100644
18 index 00000000000..84d415b3c11
19 --- /dev/null
20 +++ b/games-arcade/oshu/oshu-9999.ebuild
21 @@ -0,0 +1,55 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit cmake xdg
28 +
29 +DESCRIPTION="Lightweight osu! port"
30 +HOMEPAGE="https://github.com/fmang/oshu"
31 +
32 +if [[ $PV = *9999 ]]; then
33 + inherit git-r3
34 + EGIT_REPO_URI="https://github.com/fmang/oshu.git"
35 + SRC_URI="osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
36 +else
37 + SRC_URI="https://github.com/fmang/oshu/archive/${PV}.tar.gz -> oshu-${PV}.tar.gz
38 + osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
39 + KEYWORDS="~amd64 ~x86"
40 +fi
41 +
42 +LICENSE="GPL-3 CC-BY-NC-4.0"
43 +SLOT="0"
44 +IUSE="osu-skin"
45 +
46 +RDEPEND="
47 + media-libs/libsdl2
48 + media-libs/sdl2-image
49 + x11-libs/cairo
50 + x11-libs/pango
51 + media-video/ffmpeg:=
52 +"
53 +
54 +DEPEND="${RDEPEND}"
55 +
56 +# Doesn't build executable needed for the test
57 +# https://github.com/fmang/oshu/issues/87
58 +RESTRICT="test"
59 +
60 +src_prepare() {
61 + if use osu-skin; then
62 + eapply "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch"
63 + mv "${WORKDIR}/osu" share/skins/ || die "Failed to move osu-skin"
64 + fi
65 +
66 + cmake_src_prepare
67 +}
68 +
69 +src_configure() {
70 + local mycmakeargs=(
71 + '-DOSHU_DEFAULT_SKIN='$(usex osu-skin 'osu' 'minimal')
72 + '-DOSHU_SKINS=minimal'$(usex osu-skin ';osu' '')
73 + )
74 +
75 + cmake_src_configure
76 +}