Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/qsynth/
Date: Sun, 10 Mar 2019 22:46:36
Message-Id: 1552257953.acee938945975798529b2402ee98038ba26844af.asturm@gentoo
1 commit: acee938945975798529b2402ee98038ba26844af
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 10 22:02:46 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 10 22:45:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acee9389
7
8 media-sound/qsynth: 0.5.4 version bump
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-sound/qsynth/Manifest | 1 +
14 media-sound/qsynth/qsynth-0.5.4.ebuild | 61 ++++++++++++++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16
17 diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest
18 index 92c3fefcb87..c4b71a9a609 100644
19 --- a/media-sound/qsynth/Manifest
20 +++ b/media-sound/qsynth/Manifest
21 @@ -1,2 +1,3 @@
22 DIST qsynth-0.5.0.tar.gz 260537 BLAKE2B def589a1cfb76517fa34811fe75a8379043d7e0f9fc661dd456b49414042662c3a3b8f57e2d0de5fae99cbdb60062b12d9b73b93032115648b9a21921766fbeb SHA512 3c7026edfef3115fae8e2167bb961f5e32d886c8d75b3534a3f110d921264cd270953145a4737f9d6660c55fccce81d7306ec0ce4064df6e7226598b52399298
23 DIST qsynth-0.5.3.tar.gz 269252 BLAKE2B c496063ba33bc78a65d63151871e841f9d3938fe03049655da3c124fd495c592f9c726c479062c3fb2d1561e4dee3284d12b04e04a51ba06e20d297b6e84ac0f SHA512 15632274e5822f5e1a49bd332c5d8b7e59a54800ad32510f425f06b4557e474d5479bd531b45fc43af20535017a656fbd9469d318940931912a56ea1856dc117
24 +DIST qsynth-0.5.4.tar.gz 268106 BLAKE2B e7e17c1427cbb6105fc6fbaa511325fcfbed0d06e28374e3b9fdce14a633e6554267339bb1ffe2bf1f16fbebf38095ae02eca86d74412add3a1e16d191cd1e45 SHA512 711b18efea3b4050c567f2c549ab4f44525f53de42c6cfea379260e62966215e6d59432bed946733c7e772d691edb739a882de753cf3f46b932833de7b120b7d
25
26 diff --git a/media-sound/qsynth/qsynth-0.5.4.ebuild b/media-sound/qsynth/qsynth-0.5.4.ebuild
27 new file mode 100644
28 index 00000000000..0e48b971296
29 --- /dev/null
30 +++ b/media-sound/qsynth/qsynth-0.5.4.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit desktop flag-o-matic qmake-utils
38 +
39 +DESCRIPTION="A Qt application to control FluidSynth"
40 +HOMEPAGE="http://qsynth.sourceforge.net/"
41 +SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +IUSE="alsa debug jack pulseaudio"
46 +KEYWORDS="~amd64 ~ppc ~x86"
47 +
48 +BDEPEND="
49 + dev-qt/linguist-tools:5
50 +"
51 +RDEPEND="
52 + dev-qt/qtcore:5
53 + dev-qt/qtwidgets:5
54 + dev-qt/qtx11extras:5
55 + media-sound/fluidsynth:=[jack?,alsa?,pulseaudio?]
56 + x11-libs/libX11"
57 +DEPEND="${RDEPEND}"
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 +}