summaryrefslogtreecommitdiff
path: root/media-sound/qsynth
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/qsynth')
-rw-r--r--media-sound/qsynth/Manifest2
-rw-r--r--media-sound/qsynth/qsynth-1.0.0.ebuild72
2 files changed, 74 insertions, 0 deletions
diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest
index 64318b5b9858..e26118502027 100644
--- a/media-sound/qsynth/Manifest
+++ b/media-sound/qsynth/Manifest
@@ -1,4 +1,6 @@
DIST qsynth-0.9.91.tar.gz 334833 BLAKE2B 057ebf72aab4ea811046fede9df42ef7ccb7b98018544397e67212d694d7d798761340114a6609c230062791c81050f11c77348674008e09b1c1f9a28ea27f47 SHA512 0749195078e223ae7e42f2fc7d7f435bc174290f9d018ed01ec27088599f5e1e39739b20aa1233368e45336fb6ff74c9f634942e34543a7405f02749dc76446b
+DIST qsynth-1.0.0.tar.gz 337358 BLAKE2B 40e2b6aacf21eb17169b0899f1b089cb2869295fd5a3b87a4d0e8d7632bce8518ce4d2dc22dafa2c9d4fafe0211c90b9729432a7407bd35f8237c357ce1cb897 SHA512 9533cb425345a83ed9695917885cba52278035c2a6f7b824981b9ec5033b5d61b7ac050cc7e516a6aa7f4ff76e29eb29089a93a727294e7a6a1e5fb631720ea4
EBUILD qsynth-0.9.91.ebuild 1446 BLAKE2B ac188db2357400e302959fae3e13def93ecc2ed37364233f5120369b2d0391dd36127a21d05f7bf06d443141e65b155f86681acc4d4563e1252486dda581ed68 SHA512 c871fd5c08a346bc9e6292442db4622401fa8dbf4bbea76eee9eb997179715d1b711de3ddba6323362c95a82621800c88191dd1c5e8c53778944cd020323dbf5
+EBUILD qsynth-1.0.0.ebuild 1450 BLAKE2B 89489add82e60db13848dd37e80966790ab9c697ae293b74a3c73bb84cf35e53c045e5cb3f1b56a8cd58993d7d12b5a1aa282561a4e773921f5c24fd7dc03086 SHA512 76a7e85715aa5df34219ee005e802cab0459a044653a63a1c70863d296c0e07389d02c6cf6e24b73649c2524eb5f1fb3ea5ccb148d9c98b74691706197a1aec1
EBUILD qsynth-9999.ebuild 1450 BLAKE2B 89489add82e60db13848dd37e80966790ab9c697ae293b74a3c73bb84cf35e53c045e5cb3f1b56a8cd58993d7d12b5a1aa282561a4e773921f5c24fd7dc03086 SHA512 76a7e85715aa5df34219ee005e802cab0459a044653a63a1c70863d296c0e07389d02c6cf6e24b73649c2524eb5f1fb3ea5ccb148d9c98b74691706197a1aec1
MISC metadata.xml 763 BLAKE2B 871d9e5edd0dcd434d496c2d40f997717d424502a5d7072264886477eaaf4bf460e32746bc899a124d97f5cadf116c0cdd198d017ebd4e9cbd769ba2af8a8512 SHA512 147e494f3b468283759a06d361d286e211e95cabbfc6daef67c406e5f19a9eb04ec611f41273ddb0c712dd1fd9afa3a71922bd9cfe749c388ab61d550dc86def
diff --git a/media-sound/qsynth/qsynth-1.0.0.ebuild b/media-sound/qsynth/qsynth-1.0.0.ebuild
new file mode 100644
index 000000000000..496e8129a1ca
--- /dev/null
+++ b/media-sound/qsynth/qsynth-1.0.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2024 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="https://downloads.sourceforge.net/qsynth/${P}.tar.gz"
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+alsa debug jack pulseaudio qt6"
+
+REQUIRED_USE="|| ( alsa jack pulseaudio )"
+
+BDEPEND="
+ qt6? ( dev-qt/qttools:6[linguist] )
+ !qt6? ( dev-qt/linguist-tools:5 )
+"
+DEPEND="
+ qt6? (
+ dev-qt/qtbase:6[gui,network,widgets]
+ dev-qt/qtsvg:6
+ )
+ !qt6? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ )
+ media-sound/fluidsynth:=[jack?,alsa?,pulseaudio?]
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCONFIG_DEBUG=$(usex debug 1 0)
+ -DCONFIG_QT6=$(usex qt6 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 org.rncbc.qsynth
+}