Gentoo Archives: gentoo-proxy-maint

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

Attachments

File name MIME type
signature.asc application/pgp-signature