diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-03-21 15:54:38 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-04-05 01:03:00 +0200 |
commit | e5755fa7c4b72fbcbc5a93f1c02919ef7c5dc2e9 (patch) | |
tree | 94c7cac4f2e9b667c19c268b3ce014160a529664 /games-arcade/oshu/oshu-2.0.0.ebuild | |
parent | net-dns/dnscrypt-proxy: drop 2.0.7 (diff) | |
download | gentoo-e5755fa7c4b72fbcbc5a93f1c02919ef7c5dc2e9.tar.gz gentoo-e5755fa7c4b72fbcbc5a93f1c02919ef7c5dc2e9.tar.bz2 gentoo-e5755fa7c4b72fbcbc5a93f1c02919ef7c5dc2e9.zip |
games-arcade/oshu: version bump (2.0.0)
Closes: https://github.com/gentoo/gentoo/pull/7533
Diffstat (limited to 'games-arcade/oshu/oshu-2.0.0.ebuild')
-rw-r--r-- | games-arcade/oshu/oshu-2.0.0.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/games-arcade/oshu/oshu-2.0.0.ebuild b/games-arcade/oshu/oshu-2.0.0.ebuild new file mode 100644 index 000000000000..24f021264b5a --- /dev/null +++ b/games-arcade/oshu/oshu-2.0.0.ebuild @@ -0,0 +1,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 +} |