public inbox for gentoo-proxy-maint@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
To: gentoo-proxy-maint@lists.gentoo.org
Cc: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
Subject: [gentoo-proxy-maint] [PATCH v2 3/3] games-arcade/oshu: Add live ebuild
Date: Mon, 30 Mar 2020 10:48:29 +0200	[thread overview]
Message-ID: <20200330084829.1168-3-contact@hacktivis.me> (raw)
In-Reply-To: <a5cf43e5-8600-93c5-c386-9785862b42ca@gentoo.org>

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
---
 games-arcade/oshu/oshu-9999.ebuild | 55 ++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 games-arcade/oshu/oshu-9999.ebuild

diff --git a/games-arcade/oshu/oshu-9999.ebuild b/games-arcade/oshu/oshu-9999.ebuild
new file mode 100644
index 00000000000..84d415b3c11
--- /dev/null
+++ b/games-arcade/oshu/oshu-9999.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake xdg
+
+DESCRIPTION="Lightweight osu! port"
+HOMEPAGE="https://github.com/fmang/oshu"
+
+if [[ $PV = *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/fmang/oshu.git"
+	SRC_URI="osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
+else
+	SRC_URI="https://github.com/fmang/oshu/archive/${PV}.tar.gz -> oshu-${PV}.tar.gz
+		osu-skin? ( https://www.mg0.fr/oshu/skins/osu-v1.tar.gz -> ${PN}-skin-v1.tar.gz )"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3 CC-BY-NC-4.0"
+SLOT="0"
+IUSE="osu-skin"
+
+RDEPEND="
+	media-libs/libsdl2
+	media-libs/sdl2-image
+	x11-libs/cairo
+	x11-libs/pango
+	media-video/ffmpeg:=
+"
+
+DEPEND="${RDEPEND}"
+
+# Doesn't build executable needed for the test
+# https://github.com/fmang/oshu/issues/87
+RESTRICT="test"
+
+src_prepare() {
+	if use osu-skin; then
+		eapply "${FILESDIR}/oshu-2.0.0-use_unpacked_osu-skin.patch"
+		mv "${WORKDIR}/osu" share/skins/ || die "Failed to move osu-skin"
+	fi
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	local mycmakeargs=(
+		'-DOSHU_DEFAULT_SKIN='$(usex osu-skin 'osu' 'minimal')
+		'-DOSHU_SKINS=minimal'$(usex osu-skin ';osu' '')
+	)
+
+	cmake_src_configure
+}
-- 
2.24.1



  parent reply	other threads:[~2020-03-30  8:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30  2:30 [gentoo-proxy-maint] [PATCH 1/2] games-arcade/oshu: Version bump, 2.0.1 Haelwenn (lanodan) Monnier
2020-03-30  2:30 ` [gentoo-proxy-maint] [PATCH 2/2] games-arcade/oshu: Version clean, 2.0.0 Haelwenn (lanodan) Monnier
2020-03-30  6:43 ` [gentoo-proxy-maint] [PATCH 1/2] games-arcade/oshu: Version bump, 2.0.1 Joonas Niilola
2020-03-30  8:48   ` [gentoo-proxy-maint] [PATCH v2 1/3] " Haelwenn (lanodan) Monnier
2020-03-30  8:48   ` [gentoo-proxy-maint] [PATCH v2 2/3] games-arcade/oshu: Version clean, 2.0.0 Haelwenn (lanodan) Monnier
2020-03-30  8:48   ` Haelwenn (lanodan) Monnier [this message]
2020-03-31  9:18     ` [gentoo-proxy-maint] [PATCH v2 3/3] games-arcade/oshu: Add live ebuild Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200330084829.1168-3-contact@hacktivis.me \
    --to=contact@hacktivis.me \
    --cc=gentoo-proxy-maint@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox