1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop flag-o-matic qmake-utils xdg-utils
8 DESCRIPTION="A Qt application to control FluidSynth"
9 HOMEPAGE="https://qsynth.sourceforge.io/"
10 SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz"
14 IUSE="+alsa debug jack pulseaudio"
15 KEYWORDS="amd64 ppc x86"
18 dev-qt/linguist-tools:5
25 media-sound/fluidsynth:=[jack?,alsa?,pulseaudio?]
29 REQUIRED_USE="|| ( alsa jack pulseaudio )"
31 PATCHES=( "${FILESDIR}/${PN}-0.4.0-qt5-tagging.patch" )
34 append-cxxflags -std=c++11
35 sed -e "/@gzip.*mandir)\/man1/d" -i Makefile.in || die
39 eqmake5 ${PN}.pro -o ${PN}.mak
43 emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
46 # The desktop file is invalid, and we also change the command
47 # depending on useflags
48 rm "${ED}/usr/share/applications/qsynth.desktop" || die
53 elif use pulseaudio; then
54 cmd="qsynth -a pulseaudio"
61 make_desktop_entry "${cmd}" Qsynth qsynth