summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-11-15 10:05:48 +0100
committerAlexis Ballier <aballier@gentoo.org>2016-11-15 10:05:48 +0100
commitc1b06f0405edd741de6952ea7461851d54d6dbcf (patch)
tree36db73e7fcd7dfa1f8c791d5baae6c2ae8a8e370 /media-sound
parentmedia-sound/qjackctl: bump to 0.4.4 (diff)
downloadgentoo-c1b06f0405edd741de6952ea7461851d54d6dbcf.tar.gz
gentoo-c1b06f0405edd741de6952ea7461851d54d6dbcf.tar.bz2
gentoo-c1b06f0405edd741de6952ea7461851d54d6dbcf.zip
media-sound/qsynth: bump to 0.4.3
Package-Manager: portage-2.3.2
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/qsynth/Manifest1
-rw-r--r--media-sound/qsynth/qsynth-0.4.3.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest
index 169b02da4d2c..5d86c4d910d9 100644
--- a/media-sound/qsynth/Manifest
+++ b/media-sound/qsynth/Manifest
@@ -1,2 +1,3 @@
DIST qsynth-0.3.9.tar.gz 255130 SHA256 eb2050d0f7a8011b9ac20f82fec88faf2237a2475dfefc424cb4944399b17e22 SHA512 7702dc9eb3d38d338dcab5587e02e9fcdaffbe6188437e3b0f54b07499553f7a7d083f233cd21963a908578108f82c0d904b68da2f156ca0ab489e989b5787a8 WHIRLPOOL 621b53fbf251e4b35dcdefb6b63e6ed124fc12dccad6148f077914bd25931cc8ea10a8dfb959b5ad4ae8a451686c63dedeb060b8a68d7a3d6e72e2d5c437104a
DIST qsynth-0.4.2.tar.gz 252394 SHA256 25a59769e20a5af971f197f4be7233cedbbfa7c7a7ee54c9f49b6b4a8e4ef8f2 SHA512 d951969b6a4ea185b9c732867559000e91e73b69fcd19974d406516ce79c0040b598ee578cc10aa2ed199f652535e061fe8178c8b37651438e605a0bc3ee674e WHIRLPOOL a95a7ec9ecac41962e9b81dfa10f18df962ad3a6046fccf5b7073a17f05802568bacc37252b4fbb05c41a038fcf3047d57eb178a8a524f5e5a3019ec47f3deb7
+DIST qsynth-0.4.3.tar.gz 258870 SHA256 de27097a6e5e68799e0ab72641682b3c8f3d7bc404d2ba38e2ca66e952aab0c8 SHA512 940a664e279890a0a5eaa557376fc10b60c13527ac813be8c3c6b29d04adf8b4c447846a7032c1f37ce6b8213093a7c1891fa7649371edb3cabc7142784b6782 WHIRLPOOL ddc3eb52421d1785551ffe80bea05cef86880192a20e9de20e61719e31ca2eb79503753551bfcf0ee53fd527fca5750e3f0872bf50439ea7bc70d8602150f910
diff --git a/media-sound/qsynth/qsynth-0.4.3.ebuild b/media-sound/qsynth/qsynth-0.4.3.ebuild
new file mode 100644
index 000000000000..7ec6da4d7ca5
--- /dev/null
+++ b/media-sound/qsynth/qsynth-0.4.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils flag-o-matic qmake-utils
+
+DESCRIPTION="A Qt application to control FluidSynth"
+HOMEPAGE="http://qsynth.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug jack alsa pulseaudio"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ media-sound/fluidsynth[jack?,alsa?,pulseaudio?]
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5
+"
+
+REQUIRED_USE="|| ( alsa jack pulseaudio )"
+
+PATCHES=( "${FILESDIR}/${PN}-0.4.0-qt5-tagging.patch" )
+
+src_configure() {
+ append-cxxflags -std=c++11
+ econf \
+ $(use_enable debug) \
+ --with-qt5=$(qt5_get_bindir)/..
+
+ eqmake5 ${PN}.pro -o ${PN}.mak
+}
+
+src_install () {
+ emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
+ einstalldocs
+
+ # The desktop file is invalid, and we also change the command
+ # depending on useflags
+ rm "${ED}usr/share/applications/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
+}