commit:     80fe143ef47d8c582a039b6ad0cc6c2b037b7ac3
Author:     Casey Avila <casey <AT> theavilas <DOT> org>
AuthorDate: Sun Feb 21 07:04:10 2021 +0000
Commit:     Casey Avila <casey <AT> theavilas <DOT> org>
CommitDate: Sun Feb 21 07:04:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=80fe143e

media-sound/pianobooster: new package

Signed-off-by: Casey Avila <casey <AT> theavilas.org>

 media-sound/pianobooster/Manifest                  |  1 +
 media-sound/pianobooster/metadata.xml              | 11 ++++
 media-sound/pianobooster/pianobooster-1.0.0.ebuild | 65 ++++++++++++++++++++++
 3 files changed, 77 insertions(+)

diff --git a/media-sound/pianobooster/Manifest 
b/media-sound/pianobooster/Manifest
new file mode 100644
index 00000000..71171d1a
--- /dev/null
+++ b/media-sound/pianobooster/Manifest
@@ -0,0 +1 @@
+DIST v1.0.0.tar.gz 3096142 BLAKE2B 
4fe4c06d9770dbec28369251540a51d7fb60d72a9a952a31676654707c1e7ab04c12c09ab84df0a77a5083f59faea680e1c673e86d2396ff4fc52796ab7ea7e4
 SHA512 
0ba67d97beffa9eebfc770b339daa7b7e213654eb84895556cd8d412ca7c47e9ffd1b01a7eefd3c81e0a6f56ad9b7da45b062209c10ad2380c2e59bdee4d01ac

diff --git a/media-sound/pianobooster/metadata.xml 
b/media-sound/pianobooster/metadata.xml
new file mode 100644
index 00000000..af5290f2
--- /dev/null
+++ b/media-sound/pianobooster/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Casey Avila</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">pianobooster/PianoBooster</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/media-sound/pianobooster/pianobooster-1.0.0.ebuild 
b/media-sound/pianobooster/pianobooster-1.0.0.ebuild
new file mode 100644
index 00000000..530d45fc
--- /dev/null
+++ b/media-sound/pianobooster/pianobooster-1.0.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake xdg-utils
+
+DESCRIPTION="A MIDI player/game that displays notes and teaches you how to 
play the piano"
+HOMEPAGE="https://www.pianobooster.org";
+SRC_URI="https://github.com/pianobooster/PianoBooster/archive/v1.0.0.tar.gz";
+
+LICENSE="GPL-3+"
+SLOT="0"
+RESTRICT="mirror"
+KEYWORDS="~amd64 ~x86"
+IUSE="jack"
+
+DEPEND="
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5
+       dev-qt/qtopengl:5
+       dev-qt/qtwidgets:5
+       dev-qt/qtxml:5
+       media-libs/ftgl
+       media-libs/rtmidi[jack?]
+       media-sound/fluidsynth
+       jack? ( virtual/jack )
+       virtual/opengl"
+
+RDEPEND="${DEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+       dev-qt/linguist-tools:5"
+
+S="${WORKDIR}/PianoBooster-${PV}"
+
+src_prepare() {
+
+       # Substitute because debian-based distros use 
/usr/include/rtmidi/RtMidi.h
+       # instead of the RtMidi's default /usr/include/RtMidi.h
+       sed -i -e "s/rtmidi\/RtMidi.h/RtMidi.h/g" 
src/GuiKeyboardSetupDialog.cpp || die "Couldn't fix rtmidi headers!"
+       sed -i -e "s/rtmidi\/RtMidi.h/RtMidi.h/g" src/MidiDeviceRt.h || die 
"Couldn't fix rtmidi headers!"
+
+       sed -i -e "s/share\/doc\/pianobooster/share\/doc\/${P}/g" 
src/CMakeLists.txt || die "Couldn't fix CMakeLists!"
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       mycmakeargs+=(
+               -DUSE_JACK=$(usex jack)
+       )
+
+       cmake_src_configure
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}

Reply via email to