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