Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/zynaddsubfx/files/, media-sound/zynaddsubfx/
Date: Sat, 09 Feb 2019 23:58:06
Message-Id: 1549756658.031642ded0aa3500ce497aaade5867b8b69af43a.asturm@gentoo
1 commit: 031642ded0aa3500ce497aaade5867b8b69af43a
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 9 23:16:35 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 9 23:57:38 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=031642de
7
8 media-sound/zynaddsubfx: EAPI-7 bump, comprehensive dependency fixes
9
10 Add USE doc, dssi, portaudio
11 Add missing dependencies
12 Fix cmake options
13 Improve DESCRIPTION
14
15 Closes: https://bugs.gentoo.org/659886
16 Package-Manager: Portage-2.3.59, Repoman-2.3.12
17 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
18
19 .../zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch | 6 +-
20 media-sound/zynaddsubfx/metadata.xml | 3 +
21 .../zynaddsubfx/zynaddsubfx-3.0.3-r1.ebuild | 84 ++++++++++++++++++++++
22 3 files changed, 89 insertions(+), 4 deletions(-)
23
24 diff --git a/media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch b/media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch
25 index b094986ea86..2a35e0544c8 100644
26 --- a/media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch
27 +++ b/media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch
28 @@ -1,7 +1,5 @@
29 -Index: zynaddsubfx-2.5.2/CMakeLists.txt
30 -===================================================================
31 ---- zynaddsubfx-2.5.2.orig/CMakeLists.txt
32 -+++ zynaddsubfx-2.5.2/CMakeLists.txt
33 +--- a/CMakeLists.txt
34 ++++ b/CMakeLists.txt
35 @@ -28,9 +28,6 @@ include(CTestConfig.cmake)
36 #Currently the only directory that uses cmake
37 add_subdirectory(src)
38
39 diff --git a/media-sound/zynaddsubfx/metadata.xml b/media-sound/zynaddsubfx/metadata.xml
40 index bca5422640b..63c95289a8f 100644
41 --- a/media-sound/zynaddsubfx/metadata.xml
42 +++ b/media-sound/zynaddsubfx/metadata.xml
43 @@ -5,6 +5,9 @@
44 <email>proaudio@g.o</email>
45 <name>Gentoo ProAudio Project</name>
46 </maintainer>
47 + <use>
48 + <flag name="dssi">Enable support for DSSI Soft Synth Interface</flag>
49 + </use>
50 <upstream>
51 <remote-id type="sourceforge">zynaddsubfx</remote-id>
52 </upstream>
53
54 diff --git a/media-sound/zynaddsubfx/zynaddsubfx-3.0.3-r1.ebuild b/media-sound/zynaddsubfx/zynaddsubfx-3.0.3-r1.ebuild
55 new file mode 100644
56 index 00000000000..42707c6895b
57 --- /dev/null
58 +++ b/media-sound/zynaddsubfx/zynaddsubfx-3.0.3-r1.ebuild
59 @@ -0,0 +1,84 @@
60 +# Copyright 1999-2019 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=7
64 +
65 +inherit cmake-utils flag-o-matic
66 +
67 +DESCRIPTION="Software synthesizer capable of making a countless number of instruments"
68 +HOMEPAGE="http://zynaddsubfx.sourceforge.net/"
69 +SRC_URI="mirror://sourceforge/zynaddsubfx/${P}.tar.bz2"
70 +
71 +LICENSE="GPL-2"
72 +SLOT="0"
73 +KEYWORDS="~amd64 ~ppc ~x86"
74 +IUSE="alsa doc dssi +fltk jack lash portaudio"
75 +
76 +REQUIRED_USE="|| ( alsa jack portaudio )"
77 +
78 +BDEPEND="
79 + virtual/pkgconfig
80 + doc? ( app-doc/doxygen )
81 +"
82 +DEPEND="
83 + >=dev-libs/mxml-2.2.1
84 + media-libs/liblo
85 + sci-libs/fftw:3.0
86 + sys-libs/zlib
87 + alsa? ( media-libs/alsa-lib )
88 + dssi? ( media-libs/dssi )
89 + fltk? (
90 + >=x11-libs/fltk-1.3:1
91 + x11-libs/libX11
92 + x11-libs/libXpm
93 + )
94 + jack? ( virtual/jack )
95 + lash? ( media-sound/lash )
96 + portaudio? ( media-libs/portaudio )
97 +"
98 +RDEPEND="${DEPEND}"
99 +
100 +PATCHES=( "${FILESDIR}"/${P}-docs.patch )
101 +
102 +DOCS=( ChangeLog HISTORY.txt README.adoc )
103 +
104 +src_prepare() {
105 + cmake-utils_src_prepare
106 +
107 + if ! use dssi; then
108 + sed -i -e '/pkg_search_module.*DSSI/s/^/#DONT/' src/CMakeLists.txt || die
109 + fi
110 + if ! use jack; then
111 + sed -e '/pkg_check_modules.*JACK/s/^/#DONT/' -i {rtosc,src}/CMakeLists.txt || die
112 + fi
113 + if ! use lash; then
114 + sed -i -e '/pkg_search_module.*LASH/s/^/#DONT/' src/CMakeLists.txt || die
115 + fi
116 + if ! use portaudio; then
117 + sed -i -e '/pkg_check_modules.*PORTAUDIO/s/^/#DONT/' src/CMakeLists.txt || die
118 + fi
119 +}
120 +
121 +src_configure() {
122 + append-cxxflags -std=c++11
123 +
124 + local mycmakeargs=(
125 + -DPluginLibDir=$(get_libdir)
126 + $(cmake-utils_use_find_package alsa Alsa)
127 + $(cmake-utils_use_find_package doc Doxygen)
128 + $(cmake-utils_use_find_package fltk FLTK)
129 + )
130 + cmake-utils_src_configure
131 +}
132 +
133 +src_compile() {
134 + cmake-utils_src_compile
135 + use doc && cmake-utils_src_compile doc
136 +}
137 +
138 +src_install() {
139 + use doc && local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
140 + cmake-utils_src_install
141 + insinto /usr/share/${PN}
142 + doins -r instruments/*
143 +}