summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-sound/jack-keyboard/Manifest1
-rw-r--r--media-sound/jack-keyboard/files/jack-keyboard-2.7.2-man.patch10
-rw-r--r--media-sound/jack-keyboard/jack-keyboard-2.7.2.ebuild43
3 files changed, 54 insertions, 0 deletions
diff --git a/media-sound/jack-keyboard/Manifest b/media-sound/jack-keyboard/Manifest
index 8512e4aa1a28..c12ee7035ac6 100644
--- a/media-sound/jack-keyboard/Manifest
+++ b/media-sound/jack-keyboard/Manifest
@@ -1 +1,2 @@
DIST jack-keyboard-2.5.tar.gz 108710 BLAKE2B 563857c4b4acee8df16b720530c444fc25745734e5aaad535cb4d0d2fda3d3a526fa7523b4a0bf8da0d93fad27312fbc253e3f509b744953cd386b0a2442852a SHA512 2a8b45315f25080529dc667d869ae6bd6fe70345f74a10625e6ed6a13043333e495f37c53dc49d968533c65dfb0bd0f0a6b91eaa89e890ce492cb1f3da8c8009
+DIST jack-keyboard-2.7.2.tar.gz 46164 BLAKE2B 05e4df0298a709b5018309f7c55553da5c5246264669df12c98158a9763ded492151422c79ce47d8b107b2858a9a6135c941cd92956206209fc07ef6fbb89f1c SHA512 d47ab73c3e030a1364703ab0bf9f88865ead5a7ad9b85e88268a57fab30677ca1e731279761b453b8d8f03ec4177da8e550f51e40119e2cfd921fec6f1927534
diff --git a/media-sound/jack-keyboard/files/jack-keyboard-2.7.2-man.patch b/media-sound/jack-keyboard/files/jack-keyboard-2.7.2-man.patch
new file mode 100644
index 000000000000..4fb6f0411eb8
--- /dev/null
+++ b/media-sound/jack-keyboard/files/jack-keyboard-2.7.2-man.patch
@@ -0,0 +1,10 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d5b7c98..3a9a280 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -68,4 +68,4 @@ target_link_libraries(jack-keyboard -lm)
+ install(TARGETS jack-keyboard RUNTIME DESTINATION bin)
+ install(FILES pixmaps/jack-keyboard.png DESTINATION share/pixmaps)
+ install(FILES src/jack-keyboard.desktop DESTINATION share/applications)
+-install(FILES man/jack-keyboard.1 DESTINATION man/man1)
++install(FILES man/jack-keyboard.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
diff --git a/media-sound/jack-keyboard/jack-keyboard-2.7.2.ebuild b/media-sound/jack-keyboard/jack-keyboard-2.7.2.ebuild
new file mode 100644
index 000000000000..bec6114d4376
--- /dev/null
+++ b/media-sound/jack-keyboard/jack-keyboard-2.7.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake xdg
+
+DESCRIPTION="A virtual MIDI keyboard for JACK MIDI"
+HOMEPAGE="http://pin.if.uz.zgora.pl/~trasz/jack-keyboard/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="jack lash X"
+
+CDEPEND="
+ dev-libs/glib:2
+ x11-libs/gtk+:2
+ jack? ( virtual/jack )
+ lash? ( media-sound/lash )
+ X? ( x11-libs/libX11 )
+"
+DEPEND="${CDEPEND}"
+RDEPEND="${CDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-man.patch"
+)
+
+src_prepare() {
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mymakeargs=(
+ -DJackEnable=$(usex jack)
+ -DLashEnable=$(usex lash)
+ -DX11Enable=$(usex X)
+ )
+
+ cmake_src_configure
+}