blob: 24f021264b5a3f76ed43d1b5fe147be3bc058a88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
CMAKE_MIN_VERSION="3.9.0"
inherit cmake-utils eutils
DESCRIPTION="Lightweight osu! port"
HOMEPAGE="https://github.com/fmang/oshu"
SRC_URI="https://www.mg0.fr/oshu/releases/${P}.tar.gz
osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-3 CC-BY-NC-4.0"
SLOT="0"
IUSE="libav osu-skin"
RDEPEND="
>=media-libs/libsdl2-2.0.5:=
media-libs/sdl2-image:=
x11-libs/cairo:=
x11-libs/pango:=
!libav? ( media-video/ffmpeg:= )
libav? ( media-video/libav:= )
"
DEPEND="
${RDEPEND}
virtual/pkgconfig
"
RESTRICT="test"
src_prepare() {
if use osu-skin; then
epatch "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch"
mv "${WORKDIR}/osu" share/skins/
fi
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
'-DOSHU_DEFAULT_SKIN='$(usex osu-skin 'osu' 'minimal')
'-DOSHU_SKINS=minimal'$(usex osu-skin ';osu' '')
)
cmake-utils_src_configure
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
|