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, 27 Apr 2021 18:09:00
Message-Id: 1619546933.7020d278c26896641c857bedc40979463164bbdc.fordfrog@gentoo
1 commit: 7020d278c26896641c857bedc40979463164bbdc
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 27 18:08:46 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 27 18:08:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7020d278
7
8 media-sound/qsynth: bump to 0.9.2
9
10 Package-Manager: Portage-3.0.18, 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.2.ebuild | 71 ++++++++++++++++++++++++++++++++++
15 2 files changed, 72 insertions(+)
16
17 diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest
18 index b7d8b93ebcf..cfb8ef799d8 100644
19 --- a/media-sound/qsynth/Manifest
20 +++ b/media-sound/qsynth/Manifest
21 @@ -1 +1,2 @@
22 DIST qsynth-0.9.1.tar.gz 393897 BLAKE2B f63766614d821409cd12e418e36b8dbd739da8e2cd7deae91c2b00dd4f5ba2f447a3ca19c3829de3282e368baa37567333be051641221300d13dd7948d762008 SHA512 70bba332b90963d1c1da18fb3de8f05544fed3406c2144b6ed78cf93720cbcb684ff367d7ef4bc80be94ebea060b38753ae0cb183e85f96f127014c08de701b0
23 +DIST qsynth-0.9.2.tar.gz 394009 BLAKE2B 9560efe95992fc6e992871c8057898e1acac46718534c7e79060dde4d1519f9fd4798385812f384c97a764676e3e1005ebe24708545db3dfb9f8e08973f07441 SHA512 ab9a2268e3926439e4784c8dc2511d7c39aa2bfb97ffb7bb34f6761f1e859d1ea53f9f6da4d5c31395c6c03dc250b74c8c250b5d71321f2a151b75ec636be3d6
24
25 diff --git a/media-sound/qsynth/qsynth-0.9.2.ebuild b/media-sound/qsynth/qsynth-0.9.2.ebuild
26 new file mode 100644
27 index 00000000000..59c6e5666ca
28 --- /dev/null
29 +++ b/media-sound/qsynth/qsynth-0.9.2.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 +}