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: Tue, 06 Jul 2021 04:35:21
Message-Id: 1625546106.b141f7f535e3369fbdaaff3ba84c868eb5b17e70.fordfrog@gentoo
1 commit: b141f7f535e3369fbdaaff3ba84c868eb5b17e70
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 6 04:35:06 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 6 04:35:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b141f7f5
7
8 media-sound/qsynth: bump to 0.9.4
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-sound/qsynth/Manifest | 1 +
14 media-sound/qsynth/qsynth-0.9.4.ebuild | 71 ++++++++++++++++++++++++++++++++++
15 2 files changed, 72 insertions(+)
16
17 diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest
18 index 6b75a208755..4d84a27ed38 100644
19 --- a/media-sound/qsynth/Manifest
20 +++ b/media-sound/qsynth/Manifest
21 @@ -1 +1,2 @@
22 DIST qsynth-0.9.3.tar.gz 395265 BLAKE2B c19154ba02680ae784ea016bbcb2dcd6c3517d6e810d76cc16919508e2e7310d23a8e8397f45340c138f018340525ecae8d941ce5acf5d4e16295e88d3450069 SHA512 7da5bc0fd8feed6b3b0b048e7ac3fa86937d82ff34528fd0dbb1dd5a05fbff2bb2d8e360e499325660172acec7216964ce1442b75afc10ab0647b91376b2c421
23 +DIST qsynth-0.9.4.tar.gz 395550 BLAKE2B e25195755c52c63912b03a416878d248712b78ba0014414bc8b1d31cbd5bb75562640de4a0255d2727a40274a6ff3a84b201d39c93674140ff31ccc581bfd254 SHA512 764a90fd86451cd3a12c71f061f4a603cdce54ae80e6543d05fa66a97ea0b7c50bac0350f01f597ec93ed445a5433a9dea6d9c5a43ce385c231aaea8e13675d4
24
25 diff --git a/media-sound/qsynth/qsynth-0.9.4.ebuild b/media-sound/qsynth/qsynth-0.9.4.ebuild
26 new file mode 100644
27 index 00000000000..59c6e5666ca
28 --- /dev/null
29 +++ b/media-sound/qsynth/qsynth-0.9.4.ebuild
30 @@ -0,0 +1,71 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit cmake desktop qmake-utils xdg
37 +
38 +DESCRIPTION="Qt application to control FluidSynth"
39 +HOMEPAGE="https://qsynth.sourceforge.io/"
40 +
41 +if [[ ${PV} == *9999* ]]; then
42 + EGIT_REPO_URI="https://git.code.sf.net/p/qsynth/code"
43 + inherit git-r3
44 +else
45 + SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz"
46 + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
47 +fi
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +IUSE="+alsa debug jack pulseaudio"
52 +
53 +REQUIRED_USE="|| ( alsa jack pulseaudio )"
54 +
55 +BDEPEND="
56 + dev-qt/linguist-tools:5
57 +"
58 +DEPEND="
59 + dev-qt/qtcore:5
60 + dev-qt/qtgui:5
61 + dev-qt/qtnetwork:5
62 + dev-qt/qtwidgets:5
63 + media-sound/fluidsynth:=[jack?,alsa?,pulseaudio?]
64 +"
65 +RDEPEND="${DEPEND}"
66 +
67 +PATCHES=( "${FILESDIR}/${PN}-0.9.1-cmake-no-git-version.patch" )
68 +
69 +src_prepare() {
70 + cmake_src_prepare
71 +
72 + sed -e "/^find_package.*QT/s/Qt6 //" -i CMakeLists.txt || die
73 +}
74 +
75 +src_configure() {
76 + local mycmakeargs=(
77 + -DCONFIG_DEBUG=$(usex debug 1 0)
78 + )
79 + cmake_src_configure
80 +}
81 +
82 +src_install() {
83 + cmake_src_install
84 +
85 + # The desktop file is invalid, and we also change the command
86 + # depending on useflags
87 + rm "${D}/usr/share/applications/qsynth.desktop" || die
88 +
89 + local cmd
90 + if use jack; then
91 + cmd="qsynth"
92 + elif use pulseaudio; then
93 + cmd="qsynth -a pulseaudio"
94 + elif use alsa; then
95 + cmd="qsynth -a alsa"
96 + else
97 + cmd="qsynth -a oss"
98 + fi
99 +
100 + make_desktop_entry "${cmd}" Qsynth qsynth
101 +}