commit: 19a79882f43ec7b7ada687a672483432b3e3bc14
parent: 9e57d94be9f8fef6ce07cf67525bdd518a209b30
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 11 Nov 2017 16:33:09 +0100
games-music/oshu: Patch ‘Remove --autoplay and --pause short options #37’
Diffstat:
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/games-music/oshu/files/oshu-1.4.0-remove_short_option_for_autoplay_and_pause_in_manpage.patch b/games-music/oshu/files/oshu-1.4.0-remove_short_option_for_autoplay_and_pause_in_manpage.patch
@@ -0,0 +1,27 @@
+From 21146f87333d9d9c1f3ec1e1e4c2e311193d388f Mon Sep 17 00:00:00 2001
+From: Haelwenn Monnier <lanodan@users.noreply.github.com>
+Date: Sat, 11 Nov 2017 15:22:20 +0100
+Subject: [PATCH] Remove --autoplay and --pause short options
+
+From oshu.c it looks like there is no short options for ``--autoplay`` and ``--pause``.
+---
+ docs/oshu.1.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/docs/oshu.1.in b/docs/oshu.1.in
+index e8b7f3e..b24ef66 100644
+--- a/docs/oshu.1.in
++++ b/docs/oshu.1.in
+@@ -29,10 +29,10 @@ twice and you'll get verbose debugging messages.
+ \fB\-h, \-\-help\fR
+ Show a brief help message.
+ .TP
+-\fB\-h, \-\-autoplay\fR
++\fB\-\-autoplay\fR
+ Perform a perfect run on the beatmap without any user interaction.
+ .TP
+-\fB\-h, \-\-pause\fR
++\fB\-\-pause\fR
+ Start the game in a paused state. Might be useful when you're starting the game
+ from a terminal as you won't be holding your mouse when the game starts.
+
diff --git a/games-music/oshu/oshu-1.4.0.ebuild b/games-music/oshu/oshu-1.4.0.ebuild
@@ -3,6 +3,8 @@
EAPI=6
+inherit eutils
+
DESCRIPTION="Lightweight osu! port"
HOMEPAGE="https://github.com/fmang/oshu"
SRC_URI="https://www.mg0.fr/oshu/${P}.tar.gz"
@@ -22,3 +24,8 @@ DEPENDS="
${RDEPENDS}
virtual/pkgconfig
"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-remove_short_option_for_autoplay_and_pause_in_manpage.patch"
+ default
+}