1 |
commit: ee32cf6f82463a56516f58414cd33508e52ffba3 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 1 12:31:58 2019 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 1 12:31:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee32cf6f |
7 |
|
8 |
media-sound/qsynth-9999: added live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
media-sound/qsynth/qsynth-9999.ebuild | 76 +++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 76 insertions(+) |
15 |
|
16 |
diff --git a/media-sound/qsynth/qsynth-9999.ebuild b/media-sound/qsynth/qsynth-9999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..327a19853a9 |
19 |
--- /dev/null |
20 |
+++ b/media-sound/qsynth/qsynth-9999.ebuild |
21 |
@@ -0,0 +1,76 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit desktop flag-o-matic qmake-utils xdg-utils git-r3 autotools |
28 |
+ |
29 |
+DESCRIPTION="A Qt application to control FluidSynth" |
30 |
+HOMEPAGE="https://qsynth.sourceforge.io/" |
31 |
+EGIT_REPO_URI="https://git.code.sf.net/p/qsynth/code" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+IUSE="+alsa debug jack pulseaudio" |
36 |
+KEYWORDS="" |
37 |
+ |
38 |
+BDEPEND=" |
39 |
+ dev-qt/linguist-tools:5 |
40 |
+" |
41 |
+DEPEND=" |
42 |
+ dev-qt/qtcore:5 |
43 |
+ dev-qt/qtgui:5 |
44 |
+ dev-qt/qtnetwork:5 |
45 |
+ dev-qt/qtwidgets:5 |
46 |
+ media-sound/fluidsynth:=[jack?,alsa?,pulseaudio?] |
47 |
+" |
48 |
+RDEPEND="${DEPEND}" |
49 |
+ |
50 |
+REQUIRED_USE="|| ( alsa jack pulseaudio )" |
51 |
+ |
52 |
+PATCHES=( "${FILESDIR}/${PN}-0.4.0-qt5-tagging.patch" ) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ eautoreconf |
56 |
+ |
57 |
+ default |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ append-cxxflags -std=c++11 |
62 |
+ sed -e "/@gzip.*mandir)\/man1/d" -i Makefile.in || die |
63 |
+ econf \ |
64 |
+ $(use_enable debug) |
65 |
+ |
66 |
+ eqmake5 ${PN}.pro -o ${PN}.mak |
67 |
+} |
68 |
+ |
69 |
+src_install () { |
70 |
+ emake DESTDIR="${D}" INSTALL_ROOT="${D}" install |
71 |
+ einstalldocs |
72 |
+ |
73 |
+ # The desktop file is invalid, and we also change the command |
74 |
+ # depending on useflags |
75 |
+ rm "${ED}/usr/share/applications/qsynth.desktop" || die |
76 |
+ |
77 |
+ local cmd |
78 |
+ if use jack; then |
79 |
+ cmd="qsynth" |
80 |
+ elif use pulseaudio; then |
81 |
+ cmd="qsynth -a pulseaudio" |
82 |
+ elif use alsa; then |
83 |
+ cmd="qsynth -a alsa" |
84 |
+ else |
85 |
+ cmd="qsynth -a oss" |
86 |
+ fi |
87 |
+ |
88 |
+ make_desktop_entry "${cmd}" Qsynth qsynth |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ xdg_icon_cache_update |
93 |
+} |
94 |
+ |
95 |
+pkg_postrm() { |
96 |
+ xdg_icon_cache_update |
97 |
+} |