Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/qsynth/
Date: Mon, 26 Sep 2016 15:03:18
Message-Id: 1474902188.895c8631f3edc99bc93a7b4b5e8d93f4322a3b4f.aballier@gentoo
1 commit: 895c8631f3edc99bc93a7b4b5e8d93f4322a3b4f
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 26 12:42:15 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 26 15:03:08 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=895c8631
7
8 media-sound/qsynth: bump to 0.4.2
9
10 Package-Manager: portage-2.3.1
11
12 media-sound/qsynth/Manifest | 1 +
13 media-sound/qsynth/qsynth-0.4.2.ebuild | 76 ++++++++++++++++++++++++++++++++++
14 2 files changed, 77 insertions(+)
15
16 diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest
17 index eab53f0..ef1b6ce 100644
18 --- a/media-sound/qsynth/Manifest
19 +++ b/media-sound/qsynth/Manifest
20 @@ -2,3 +2,4 @@ DIST qsynth-0.3.6.tar.gz 223774 SHA256 b5968da98661bac5c9fcc93d3a15851594dfbf3bb
21 DIST qsynth-0.3.9.tar.gz 255130 SHA256 eb2050d0f7a8011b9ac20f82fec88faf2237a2475dfefc424cb4944399b17e22 SHA512 7702dc9eb3d38d338dcab5587e02e9fcdaffbe6188437e3b0f54b07499553f7a7d083f233cd21963a908578108f82c0d904b68da2f156ca0ab489e989b5787a8 WHIRLPOOL 621b53fbf251e4b35dcdefb6b63e6ed124fc12dccad6148f077914bd25931cc8ea10a8dfb959b5ad4ae8a451686c63dedeb060b8a68d7a3d6e72e2d5c437104a
22 DIST qsynth-0.4.0.tar.gz 251230 SHA256 9dc8413ddc6847a2dd0bfb3b44e0246273531ea253fd9dc91c5c329876420cb2 SHA512 13d8cda192ae09a3e48768df11d2df7ccace59a495f18bd99d6b7009c51eb43b3d6df97e81391e9c098c6fdc0396434bf178302edb016bdba69d6aa4d790a831 WHIRLPOOL 8f5873874018e538767ea44bf8752adc11e5e993a26b71beb0b54a3739d2ed9b5fed042f9af1925d45b9fdc6fed74ecebdd19164ab2d9cdc5d43831aeda1f503
23 DIST qsynth-0.4.1.tar.gz 251821 SHA256 50f4e36e0c5a7e092429e1cafbd8989346127b8b0c0868566addcacc5735970c SHA512 0a4e2dacc9116a9c52a50af39f0838a0c97d0e2f0ba75f8c3f07a219810299c5dd650ad7cd5ba337e497f83537b7cb94a181c9e3a5ba641febe1a0179d6c8620 WHIRLPOOL 044811f6a2966cfccd613da8db16d8caa46599d61fbdf8124d94c57d25b796155fa76261cb3bed7fbb49f8cd7d4eaaa9bb1e2966db97236be61f98121f43c453
24 +DIST qsynth-0.4.2.tar.gz 252394 SHA256 25a59769e20a5af971f197f4be7233cedbbfa7c7a7ee54c9f49b6b4a8e4ef8f2 SHA512 d951969b6a4ea185b9c732867559000e91e73b69fcd19974d406516ce79c0040b598ee578cc10aa2ed199f652535e061fe8178c8b37651438e605a0bc3ee674e WHIRLPOOL a95a7ec9ecac41962e9b81dfa10f18df962ad3a6046fccf5b7073a17f05802568bacc37252b4fbb05c41a038fcf3047d57eb178a8a524f5e5a3019ec47f3deb7
25
26 diff --git a/media-sound/qsynth/qsynth-0.4.2.ebuild b/media-sound/qsynth/qsynth-0.4.2.ebuild
27 new file mode 100644
28 index 00000000..3f6586a
29 --- /dev/null
30 +++ b/media-sound/qsynth/qsynth-0.4.2.ebuild
31 @@ -0,0 +1,76 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +inherit qmake-utils eutils
39 +
40 +DESCRIPTION="A Qt application to control FluidSynth"
41 +HOMEPAGE="http://qsynth.sourceforge.net/"
42 +SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +IUSE="debug jack alsa pulseaudio +qt5"
47 +KEYWORDS="~amd64 ~ppc ~x86"
48 +
49 +RDEPEND="
50 + qt5? (
51 + dev-qt/qtwidgets:5
52 + dev-qt/qtx11extras:5
53 + dev-qt/qtcore:5
54 + )
55 + !qt5? (
56 + >=dev-qt/qtcore-4.2:4
57 + >=dev-qt/qtgui-4.2:4
58 + )
59 + >=media-sound/fluidsynth-1.0.7a[jack?,alsa?,pulseaudio?]
60 + x11-libs/libX11"
61 +DEPEND="${RDEPEND}
62 + qt5? ( dev-qt/linguist-tools:5 )
63 +"
64 +
65 +REQUIRED_USE="|| ( alsa jack pulseaudio )"
66 +
67 +src_prepare() {
68 + use qt5 && epatch "${FILESDIR}/${PN}-0.4.0-qt5-tagging.patch"
69 +}
70 +
71 +src_configure() {
72 + econf \
73 + $(use_enable debug) \
74 + $(use_enable !qt5 qt4) \
75 + --with-qt"$(usex qt5 "5=$(qt5_get_bindir)/.." "4=$(qt4_get_bindir)/..")"
76 +
77 + # Emulate what the Makefile does, so that we can get the correct
78 + # compiler used.
79 + if use qt5 ; then
80 + eqmake5 ${PN}.pro -o ${PN}.mak
81 + else
82 + eqmake4 ${PN}.pro -o ${PN}.mak
83 + fi
84 +}
85 +
86 +src_install () {
87 + emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
88 +
89 + dodoc AUTHORS ChangeLog README TODO TRANSLATORS
90 +
91 + # The desktop file is invalid, and we also change the command
92 + # depending on useflags
93 + rm -rf "${D}/usr/share/applications/qsynth.desktop"
94 +
95 + local cmd
96 + if use jack; then
97 + cmd="qsynth"
98 + elif use pulseaudio; then
99 + cmd="qsynth -a pulseaudio"
100 + elif use alsa; then
101 + cmd="qsynth -a alsa"
102 + else
103 + cmd="qsynth -a oss"
104 + fi
105 +
106 + make_desktop_entry "${cmd}" Qsynth qsynth
107 +}