summaryrefslogtreecommitdiff
path: root/media-sound/qsynth
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-24 12:47:36 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-24 12:47:36 +0000
commit8754edd0ec2acb9adff6949db1f80e7fe51bd7e4 (patch)
treef9f36bd16b332e8b31192fcacfe7cba4ebb3a4a6 /media-sound/qsynth
parente8932755452c72a02ecae0b3f37395d1f607bbef (diff)
gentoo auto-resync : 24:03:2023 - 12:47:36
Diffstat (limited to 'media-sound/qsynth')
-rw-r--r--media-sound/qsynth/Manifest4
-rw-r--r--media-sound/qsynth/files/qsynth-0.9.1-cmake-no-git-version.patch2
-rw-r--r--media-sound/qsynth/qsynth-0.9.10.ebuild71
3 files changed, 74 insertions, 3 deletions
diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest
index 04b5a26fa99c..7ff45171ce04 100644
--- a/media-sound/qsynth/Manifest
+++ b/media-sound/qsynth/Manifest
@@ -1,6 +1,8 @@
-AUX qsynth-0.9.1-cmake-no-git-version.patch 579 BLAKE2B 561d4fab7495335a9853968820f71508fe0ce340d829a36b74845b76a06c35abb815d40756d080efe9fecf8e8bcd9dfa347dc524aa4af2ccbb892ebc678fc861 SHA512 843467c9c6d13970ae7494a700830860783e48f4e9cc0bd74522921dfc2358e76d2e1b35436e2d04381e9e00c00692357526f3a0fa25c4d9205cd85ce73e97fd
+AUX qsynth-0.9.1-cmake-no-git-version.patch 504 BLAKE2B 101d5bbec82083ad54cb90e183404dc4f24e9d8b2425b6dd60c95aef54ef797fd486d1f8c4ab36653b01ee025cf3f705a25c96a8eb8cb1b0228b4d83104942d1 SHA512 8606bf4e8dff911d462390fec814e186e9a3d3ee3661692ee99029f6aeafcffaeb0a0cd0b21dc88824000a29c1f0b965aeb586602da8d164778a9adab1d2423b
+DIST qsynth-0.9.10.tar.gz 333389 BLAKE2B 87ca02e1f15a7b28f5af462d1ef52e9609fc0abc3d15d545493f448da61d85d8d264f5ab908816607de3291424b979348f330205fc6e727edb7287fd28e9067d SHA512 82e04ccfe3193d570e28c4e5da3e9ea8afbc2b1f2e43f54459449b31ee5448a6232a5fe13631eed80a5cf75f4176e5a419ec6467bf3d7d5e30d34083d4d8f7aa
DIST qsynth-0.9.8.tar.gz 333010 BLAKE2B 60433afaccc6a1378b9799316bd8d4a0cbe3592059788feacf8564e6ee659ea61904358378d3307a12e706c8aeb70a51546063fc7f766091ea784f7e01bb780a SHA512 f193dcbce0b92e25d5310c5f6d78a6360a8a6f089efceae55b7a425a823d418618ee2fd0debca6b9e4793e988b92f2dd8c2f32812f21224e8e566ab15d4d5e64
DIST qsynth-0.9.9.tar.gz 333110 BLAKE2B efc22bc509445e1948d7dd28de8e6c6281967964dcf54e688a8830280945b37c51c70e0a64596bff2a7a12ccfcbaa3fd65d9465b11dc7abe2cca060cce6e3997 SHA512 79a3085a884b3bd3251ad059b8ab67eb3329f2e6b25df5dfa6d210d7d313000b52ccdfd8b9f18aa49bdc9db2a5cd1738f05c529cb4673bd579b4ba987b1edff6
+EBUILD qsynth-0.9.10.ebuild 1410 BLAKE2B e89eba78eed79a63fbe22c938929239bb7d197da2d14eb3555b66bc05543331c938b93764c826daa3ab9c53182d0b5f24b3d2150aa457be5ff04e9bcb20638b5 SHA512 cc287249f7fd4f501482d4262813b03cdbfc9b5412b1b3fa1be81a816bae92a948eaecce3de64c9af6c2aa3cbe81937273203038cb1c5c27bfdf876f773df6e0
EBUILD qsynth-0.9.8.ebuild 1409 BLAKE2B 3da591d928a9b272f52f4cb9a52701df395e07e6a5595b44bae22405c433de7a3d42f7831ad99e9a545e7abb50306bac1ef0f8b9ae170ba5200c29015bad303b SHA512 97c625f61f97787d161296943cd12582919faf498c44a09e43898bad69513dcf3b27bfd286cd0b48693b3aa4b62c4e7acf1dbba20fab8c1c029b7b4554a02310
EBUILD qsynth-0.9.9.ebuild 1410 BLAKE2B e89eba78eed79a63fbe22c938929239bb7d197da2d14eb3555b66bc05543331c938b93764c826daa3ab9c53182d0b5f24b3d2150aa457be5ff04e9bcb20638b5 SHA512 cc287249f7fd4f501482d4262813b03cdbfc9b5412b1b3fa1be81a816bae92a948eaecce3de64c9af6c2aa3cbe81937273203038cb1c5c27bfdf876f773df6e0
EBUILD qsynth-9999.ebuild 1347 BLAKE2B 219e5066d51c2aa4216f883b2a8e59de6f081caa033cd9810a4037ed7aea15225937e2c9c38cbd6d970c9ed1678f2d95d3b0a8cee3f6994243f77029a13ccfec SHA512 e423e026864f91ac8da553c616be407843ce250c504c96a7616bdae9821483675e338374474d0555a62859aa9b10478e2b1504cc2985b39dea534ea74e0a0932
diff --git a/media-sound/qsynth/files/qsynth-0.9.1-cmake-no-git-version.patch b/media-sound/qsynth/files/qsynth-0.9.1-cmake-no-git-version.patch
index 9ea401abc26e..0a0dcd59ee13 100644
--- a/media-sound/qsynth/files/qsynth-0.9.1-cmake-no-git-version.patch
+++ b/media-sound/qsynth/files/qsynth-0.9.1-cmake-no-git-version.patch
@@ -1,5 +1,3 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 47ea36f..0194f32 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,7 @@ project(qsynth
diff --git a/media-sound/qsynth/qsynth-0.9.10.ebuild b/media-sound/qsynth/qsynth-0.9.10.ebuild
new file mode 100644
index 000000000000..f7183956614e
--- /dev/null
+++ b/media-sound/qsynth/qsynth-0.9.10.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2023 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
+}