logo

overlay

My (experimental) gentoo overlay
commit: e09f6921f384ce1e9e61b504481b685dff63e5d3
parent: 0e8495065e2110378381ed5d7154d725d2f072f0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 21 Mar 2018 14:58:49 +0100

games-arcade/oshu: Bump version (2.0.0)

Diffstat:

Mgames-arcade/oshu/Manifest5+++--
Agames-arcade/oshu/oshu-2.0.0.ebuild56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+), 2 deletions(-)

diff --git a/games-arcade/oshu/Manifest b/games-arcade/oshu/Manifest @@ -1,2 +1,3 @@ -DIST oshu-1.6.0.tar.gz 2459889 SHA256 2edcbf1ca9f9664b4d6253c24eb1a10c0c66d0e09d9968675f969d9e74d54dad SHA512 e1f76a05d7ba40265dd58f6fe8106ed6293385870c7e77ff6bbd3dd0e9b5f7bc45f8f0b9c3729a6781c04289d54c76f9698bb659ba50fd35e609de23ecb02aa8 WHIRLPOOL b4fb85b25fc783e0880985a093fc387da21ff1d875779cd7bbd57867c57679951e56967348114d5a6413b28898d2efcf5103a9f2e105616aa83598be1fd5229a -DIST oshu-v1.tar.gz 2224947 SHA256 bc645534371bf5ccba66d4a6729dc1deffb6f148b6ce115efd305f9ffab1d183 SHA512 d562294ac5e122a9d9971e3ab92f6168d848177cc5e22a94bbc450fde2b3b14007796a24d33722da9b6675467b109ce128ba94dca5dcc7c61c91c1e373032618 WHIRLPOOL 79cc794d5e5578234d086c19f761a2b0f815ae25c74f9626165d56128dde81cbc63ddb302f87d52be801cf1013ea753a506836db7d70bcab1c0c2317b3e965d9 +DIST oshu-1.6.0.tar.gz 2459889 BLAKE2B 568b5bf00da50ce215b6156b36d0d1d894259abebeeba725103601f7f5d3a82705d308a7986f5e705b0d24469e6866207836eec9e1b9bdd89df291a4e9c372cd SHA512 e1f76a05d7ba40265dd58f6fe8106ed6293385870c7e77ff6bbd3dd0e9b5f7bc45f8f0b9c3729a6781c04289d54c76f9698bb659ba50fd35e609de23ecb02aa8 +DIST oshu-2.0.0.tar.gz 144088 BLAKE2B c4383746624f4de62e158a2f94d4e5c1a3e2f037fd05d80607932414f20a031103bd73f108644a93faadf61c21f3d2505da3afd2ea7ea43bd59e32966724928b SHA512 ed2b8294b06d239948c563135d997b422191be681ff86714a244ca64079251508a5a62e23cf3ae1e0ac2b3128b6401901233714eab7787989296ca1700192643 +DIST oshu-skin-v1.tar.gz 2224947 BLAKE2B 0b463133dd7ab54421551627d12932f5257848b1130d57af8c2ff6b6836a49c9322b8f2f7e95de540909390d0139e547650a6bb321614cf92fac464b09075674 SHA512 d562294ac5e122a9d9971e3ab92f6168d848177cc5e22a94bbc450fde2b3b14007796a24d33722da9b6675467b109ce128ba94dca5dcc7c61c91c1e373032618 diff --git a/games-arcade/oshu/oshu-2.0.0.ebuild b/games-arcade/oshu/oshu-2.0.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +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" + +CMAKE_MIN_VERSION="3.9.0" +RDEPEND=" + >=media-libs/libsdl2-2.0.5:= + media-libs/sdl2-image:=[jpeg,png] + x11-libs/cairo:= + x11-libs/pango:= + !libav? ( media-video/ffmpeg:= ) + libav? ( media-video/libav:= ) +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +src_configure() { + if use osu-skin; then + local mycmakeargs=( + "-DOSHU_DEFAULT_SKIN=osu" + "-DOSHU_SKINS=osu;minimal" + ) + else + # default values; I prefer to be sure + local mycmakeargs=( + "-DOSHU_DEFAULT_SKIN=minimal" + "-DOSHU_SKINS=minimal" + ) + fi + + cmake-utils_src_configure +} + +src_compile() { + if use osu-skin; then + mkdir -p "${BUILD_DIR}/share/skins" || die + cp "${DISTDIR}/${PN}-skin-v1.tar.gz" "${BUILD_DIR}/share/skins/osu.tar.gz" || die + fi + + default +}