commit:     97da7e14c14acc6db9696acba4952bbf43ea1d51
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 30 18:27:22 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Sep 30 18:29:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97da7e14

media-sound/jack-keyboard: update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/957743
Closes: https://bugs.gentoo.org/957744
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/jack-keyboard-2.7.2-cmake4.patch         | 20 +++++++++++
 .../jack-keyboard-2.7.2-no-lash-warning.patch      | 22 ++++++++++++
 .../jack-keyboard/jack-keyboard-2.7.2-r2.ebuild    | 40 ++++++++++++++++++++++
 3 files changed, 82 insertions(+)

diff --git a/media-sound/jack-keyboard/files/jack-keyboard-2.7.2-cmake4.patch 
b/media-sound/jack-keyboard/files/jack-keyboard-2.7.2-cmake4.patch
new file mode 100644
index 000000000000..79b966b175cf
--- /dev/null
+++ b/media-sound/jack-keyboard/files/jack-keyboard-2.7.2-cmake4.patch
@@ -0,0 +1,20 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -25,7 +25,7 @@
+ #
+ # Makefile for Jack Keyboard
+ #
+-cmake_minimum_required(VERSION 2.8)
++cmake_minimum_required(VERSION 3.10)
+ 
+ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
+ set(VERSION "2.7.2")
+@@ -36,7 +36,7 @@
+ 
+ project(jack-keyboard)
+ 
+-add_executable(jack-keyboard src/jack-keyboard src/pianokeyboard)
++add_executable(jack-keyboard src/jack-keyboard.c src/pianokeyboard.c)
+ 
+ find_package(GTK2 2.2 REQUIRED gtk)
+ include_directories(${GTK2_INCLUDE_DIRS})

diff --git 
a/media-sound/jack-keyboard/files/jack-keyboard-2.7.2-no-lash-warning.patch 
b/media-sound/jack-keyboard/files/jack-keyboard-2.7.2-no-lash-warning.patch
new file mode 100644
index 000000000000..e5d8b2078a09
--- /dev/null
+++ b/media-sound/jack-keyboard/files/jack-keyboard-2.7.2-no-lash-warning.patch
@@ -0,0 +1,22 @@
+Source: 
https://salsa.debian.org/multimedia-team/jack-keyboard/-/blob/master/debian/patches/2001-hide_no_lash_warning.patch
+
+Description: Don't show an error dialog, just print a warning to the stderr.
+ We're going to drop LASH in favor of ladish, so such dialog will be
+ inappropriate.
+Author: Alessio Treglia <[email protected]>
+Forwarded: no
+---
+ src/jack-keyboard.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- jack-keyboard.orig/src/jack-keyboard.c
++++ jack-keyboard/src/jack-keyboard.c
+@@ -947,7 +947,7 @@ init_lash(lash_args_t *args)
+       lash_client = lash_init(args, PACKAGE_NAME, LASH_Config_Data_Set, 
LASH_PROTOCOL(2, 0));
+ 
+       if (!lash_server_connected(lash_client)) {
+-              g_critical("Cannot initialize LASH.  Continuing anyway.");
++              fprintf(stderr, "jack-keyboard: Cannot initialize LASH.  
Continuing anyway.\n");
+               /* exit(EX_UNAVAILABLE); */
+ 
+               return;

diff --git a/media-sound/jack-keyboard/jack-keyboard-2.7.2-r2.ebuild 
b/media-sound/jack-keyboard/jack-keyboard-2.7.2-r2.ebuild
new file mode 100644
index 000000000000..a201501edd35
--- /dev/null
+++ b/media-sound/jack-keyboard/jack-keyboard-2.7.2-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+DESCRIPTION="Virtual MIDI keyboard for JACK MIDI"
+HOMEPAGE="http://pin.if.uz.zgora.pl/~trasz/jack-keyboard/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${PN}/${PV}/${P}.tar.gz";
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="lash X"
+
+DEPEND="
+       dev-libs/glib:2
+       virtual/jack
+       x11-libs/gtk+:2
+       lash? ( media-sound/lash )
+       X? ( x11-libs/libX11 )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-man.patch"
+       "${FILESDIR}/${P}-no-lash-warning.patch" # thx to Debian
+       "${FILESDIR}/${P}-cmake4.patch" # bug 957743, downstream
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DJackEnable=ON # though configurable, does not compile withou 
jack
+               -DLashEnable=$(usex lash)
+               -DX11Enable=$(usex X)
+       )
+
+       cmake_src_configure
+}

Reply via email to