Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/qsynth/
Date: Fri, 01 Nov 2019 12:16:09
Message-Id: 1572610543.bae101246dd5bf62a1e76cc6a5e308f31f9a97b6.fordfrog@gentoo
1 commit: bae101246dd5bf62a1e76cc6a5e308f31f9a97b6
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 1 12:15:43 2019 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 1 12:15:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bae10124
7
8 media-sound/qsynth-0.6.0: bump
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-sound/qsynth/Manifest | 1 +
14 media-sound/qsynth/qsynth-0.6.0.ebuild | 70 ++++++++++++++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest
18 index c0b10ed01e5..b1cc0d68851 100644
19 --- a/media-sound/qsynth/Manifest
20 +++ b/media-sound/qsynth/Manifest
21 @@ -1 +1,2 @@
22 DIST qsynth-0.5.6.tar.gz 269583 BLAKE2B 9b06f7be1aa39addebd0b088eff885bce39c6bc245461b64fe45243306afae8879d4b516bd46c30c2a8074e580e412c38a3c264d647a35ff5c81301703731067 SHA512 752b3ac7e478594ef873b2d1c9fcb1a1dcdd1fb33f34cab5f588f628d1f11f01ecd150c9d51021a41040794b68f0538ad6979751773d5c537f53a1f227b3bf88
23 +DIST qsynth-0.6.0.tar.gz 316308 BLAKE2B d414c73d5baf3be1563c45390735de964c79774a4d7cc37ff4bc609a7fa4d291a5b0cba7f3b8ed52649c50325a3ba2fba7baad3943122cc76a98aa6cfdf2cb0f SHA512 34e15d283f403ec6633fef911285dc2d4d4b2c5a0cd3614bd38feefbf68cff5fd8e296f47d1bcd527658b8a9dab212106aa63ca71ea60cf49f8126adb7d28591
24
25 diff --git a/media-sound/qsynth/qsynth-0.6.0.ebuild b/media-sound/qsynth/qsynth-0.6.0.ebuild
26 new file mode 100644
27 index 00000000000..781890fbe2b
28 --- /dev/null
29 +++ b/media-sound/qsynth/qsynth-0.6.0.ebuild
30 @@ -0,0 +1,70 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit desktop flag-o-matic qmake-utils xdg-utils
37 +
38 +DESCRIPTION="A Qt application to control FluidSynth"
39 +HOMEPAGE="http://qsynth.sourceforge.net/"
40 +SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +IUSE="+alsa debug jack pulseaudio"
45 +KEYWORDS="~amd64 ~ppc ~x86"
46 +
47 +BDEPEND="
48 + dev-qt/linguist-tools:5
49 +"
50 +DEPEND="
51 + dev-qt/qtcore:5
52 + dev-qt/qtgui:5
53 + dev-qt/qtnetwork:5
54 + dev-qt/qtwidgets:5
55 + media-sound/fluidsynth:=[jack?,alsa?,pulseaudio?]
56 +"
57 +RDEPEND="${DEPEND}"
58 +
59 +REQUIRED_USE="|| ( alsa jack pulseaudio )"
60 +
61 +PATCHES=( "${FILESDIR}/${PN}-0.4.0-qt5-tagging.patch" )
62 +
63 +src_configure() {
64 + append-cxxflags -std=c++11
65 + sed -e "/@gzip.*mandir)\/man1/d" -i Makefile.in || die
66 + econf \
67 + $(use_enable debug)
68 +
69 + eqmake5 ${PN}.pro -o ${PN}.mak
70 +}
71 +
72 +src_install () {
73 + emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
74 + einstalldocs
75 +
76 + # The desktop file is invalid, and we also change the command
77 + # depending on useflags
78 + rm "${ED}/usr/share/applications/qsynth.desktop" || die
79 +
80 + local cmd
81 + if use jack; then
82 + cmd="qsynth"
83 + elif use pulseaudio; then
84 + cmd="qsynth -a pulseaudio"
85 + elif use alsa; then
86 + cmd="qsynth -a alsa"
87 + else
88 + cmd="qsynth -a oss"
89 + fi
90 +
91 + make_desktop_entry "${cmd}" Qsynth qsynth
92 +}
93 +
94 +pkg_postinst() {
95 + xdg_icon_cache_update
96 +}
97 +
98 +pkg_postrm() {
99 + xdg_icon_cache_update
100 +}