logo

overlay

My (experimental) gentoo overlay
commit: a250adebeb6978108f10ec0e6782ba2a803a53f9
parent: 7e19ed3aa60ed7f3815dfe053afac92dbb81ab86
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 28 Feb 2018 16:59:24 +0100

games-arcade/oshu: Update 9999 to CMake

Diffstat:

Mgames-arcade/oshu/Manifest2+-
Mgames-arcade/oshu/oshu-9999.ebuild38++++++++++++++++++++++++++++----------
2 files changed, 29 insertions(+), 11 deletions(-)

diff --git a/games-arcade/oshu/Manifest b/games-arcade/oshu/Manifest @@ -1,2 +1,2 @@ DIST oshu-1.6.0.tar.gz 2459889 SHA256 2edcbf1ca9f9664b4d6253c24eb1a10c0c66d0e09d9968675f969d9e74d54dad SHA512 e1f76a05d7ba40265dd58f6fe8106ed6293385870c7e77ff6bbd3dd0e9b5f7bc45f8f0b9c3729a6781c04289d54c76f9698bb659ba50fd35e609de23ecb02aa8 WHIRLPOOL b4fb85b25fc783e0880985a093fc387da21ff1d875779cd7bbd57867c57679951e56967348114d5a6413b28898d2efcf5103a9f2e105616aa83598be1fd5229a -DIST oshu-samples-v1.tar.bz2 2066851 SHA256 3a7c47d0be9e820d2384adb77a0edc3ddd22b9a0689efe9c090f69246e0ea623 SHA512 c28aff6fe0f8e4232aaec54e7a88464563c90c83e9d5133caacd27d65f3bf95eda327f43c7607c9367d6371114c5ff11947c6f11c7452208fafeb4bf731a0e0f WHIRLPOOL abb5fb327baceb0aff4941a996c7028642dbda17cfc485498987d958a45c5f30c3ccdcd6d8101a9c28566adb9b76a5e1d80ca80c3c47c3bce21730176344bc14 +DIST oshu-v1.tar.gz 2224947 SHA256 bc645534371bf5ccba66d4a6729dc1deffb6f148b6ce115efd305f9ffab1d183 SHA512 d562294ac5e122a9d9971e3ab92f6168d848177cc5e22a94bbc450fde2b3b14007796a24d33722da9b6675467b109ce128ba94dca5dcc7c61c91c1e373032618 WHIRLPOOL 79cc794d5e5578234d086c19f761a2b0f815ae25c74f9626165d56128dde81cbc63ddb302f87d52be801cf1013ea753a506836db7d70bcab1c0c2317b3e965d9 diff --git a/games-arcade/oshu/oshu-9999.ebuild b/games-arcade/oshu/oshu-9999.ebuild @@ -3,16 +3,18 @@ EAPI=6 -inherit autotools git-r3 +inherit cmake-utils git-r3 DESCRIPTION="Lightweight osu! port" HOMEPAGE="https://github.com/fmang/oshu" -SRC_URI="https://www.mg0.fr/oshu/samples-v1.tar.bz2 -> oshu-samples-v1.tar.bz2" +SRC_URI="osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-v1.tar.gz )" KEYWORDS="" -LICENSE="GPL-3" +LICENSE="GPL-3 CC-BY-NC-4.0" SLOT="0" +IUSE="osu-skin" EGIT_REPO_URI="https://github.com/fmang/oshu.git" +CMAKE_MIN_VERSION="3.9.0" RDEPENDS=" media-libs/libsdl2:= @@ -29,12 +31,28 @@ DEPENDS=" virtual/pkgconfig " -src_prepare() { +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}-v1.tar.gz" "${BUILD_DIR}/share/skins/osu.tar.gz" || die + fi + default - eautoreconf - ( - cd "${S}/share" - cp "${DISTDIR}/oshu-samples-v1.tar.bz2" samples-v1.tar.bz2 - tar xf samples-v1.tar.bz2 - ) }