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