commit:     82989f7e9322b78747cab6f7f885691226034d42
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 29 08:31:55 2022 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Thu Dec 29 08:31:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82989f7e

media-sound/qsynth: bump to 0.9.9

Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-sound/qsynth/Manifest            |  1 +
 media-sound/qsynth/qsynth-0.9.9.ebuild | 71 ++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest
index b83ff546167c..818ae8ab2ba1 100644
--- a/media-sound/qsynth/Manifest
+++ b/media-sound/qsynth/Manifest
@@ -1 +1,2 @@
 DIST qsynth-0.9.8.tar.gz 333010 BLAKE2B 
60433afaccc6a1378b9799316bd8d4a0cbe3592059788feacf8564e6ee659ea61904358378d3307a12e706c8aeb70a51546063fc7f766091ea784f7e01bb780a
 SHA512 
f193dcbce0b92e25d5310c5f6d78a6360a8a6f089efceae55b7a425a823d418618ee2fd0debca6b9e4793e988b92f2dd8c2f32812f21224e8e566ab15d4d5e64
+DIST qsynth-0.9.9.tar.gz 333110 BLAKE2B 
efc22bc509445e1948d7dd28de8e6c6281967964dcf54e688a8830280945b37c51c70e0a64596bff2a7a12ccfcbaa3fd65d9465b11dc7abe2cca060cce6e3997
 SHA512 
79a3085a884b3bd3251ad059b8ab67eb3329f2e6b25df5dfa6d210d7d313000b52ccdfd8b9f18aa49bdc9db2a5cd1738f05c529cb4673bd579b4ba987b1edff6

diff --git a/media-sound/qsynth/qsynth-0.9.9.ebuild 
b/media-sound/qsynth/qsynth-0.9.9.ebuild
new file mode 100644
index 000000000000..802d146a7511
--- /dev/null
+++ b/media-sound/qsynth/qsynth-0.9.9.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake desktop xdg
+
+DESCRIPTION="Qt application to control FluidSynth"
+HOMEPAGE="https://qsynth.sourceforge.io/";
+
+if [[ ${PV} == *9999* ]]; then
+       EGIT_REPO_URI="https://git.code.sf.net/p/qsynth/code";
+       inherit git-r3
+else
+       SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz"
+       KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+alsa debug jack pulseaudio"
+
+REQUIRED_USE="|| ( alsa jack pulseaudio )"
+
+BDEPEND="
+       dev-qt/linguist-tools:5
+"
+DEPEND="
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtwidgets:5
+       media-sound/fluidsynth:=[jack?,alsa?,pulseaudio?]
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-0.9.1-cmake-no-git-version.patch" )
+
+src_prepare() {
+       cmake_src_prepare
+
+       sed -e "/^find_package.*QT/s/Qt6 //" -i CMakeLists.txt || die
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DCONFIG_DEBUG=$(usex debug 1 0)
+       )
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+
+       # The desktop file is invalid, and we also change the command
+       # depending on useflags
+       rm "${D}/usr/share/applications/org.rncbc.qsynth.desktop" || die
+
+       local cmd
+       if use jack; then
+               cmd="qsynth"
+       elif use pulseaudio; then
+               cmd="qsynth -a pulseaudio"
+       elif use alsa; then
+               cmd="qsynth -a alsa"
+       else
+               cmd="qsynth -a oss"
+       fi
+
+       make_desktop_entry "${cmd}" Qsynth qsynth
+}

Reply via email to