diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-02-10 00:16:35 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-02-10 00:57:38 +0100 |
commit | 031642ded0aa3500ce497aaade5867b8b69af43a (patch) | |
tree | da2a0daa45970d76c87dda98582372711b013a56 /media-sound/zynaddsubfx | |
parent | games-roguelike/stone-soup: Stabilize 0.22.0, add maintainership (diff) | |
download | gentoo-031642ded0aa3500ce497aaade5867b8b69af43a.tar.gz gentoo-031642ded0aa3500ce497aaade5867b8b69af43a.tar.bz2 gentoo-031642ded0aa3500ce497aaade5867b8b69af43a.zip |
media-sound/zynaddsubfx: EAPI-7 bump, comprehensive dependency fixes
Add USE doc, dssi, portaudio
Add missing dependencies
Fix cmake options
Improve DESCRIPTION
Closes: https://bugs.gentoo.org/659886
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-sound/zynaddsubfx')
-rw-r--r-- | media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch | 6 | ||||
-rw-r--r-- | media-sound/zynaddsubfx/metadata.xml | 3 | ||||
-rw-r--r-- | media-sound/zynaddsubfx/zynaddsubfx-3.0.3-r1.ebuild | 84 |
3 files changed, 89 insertions, 4 deletions
diff --git a/media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch b/media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch index b094986ea86a..2a35e0544c8a 100644 --- a/media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch +++ b/media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch @@ -1,7 +1,5 @@ -Index: zynaddsubfx-2.5.2/CMakeLists.txt -=================================================================== ---- zynaddsubfx-2.5.2.orig/CMakeLists.txt -+++ zynaddsubfx-2.5.2/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt @@ -28,9 +28,6 @@ include(CTestConfig.cmake) #Currently the only directory that uses cmake add_subdirectory(src) diff --git a/media-sound/zynaddsubfx/metadata.xml b/media-sound/zynaddsubfx/metadata.xml index bca5422640b4..63c95289a8f5 100644 --- a/media-sound/zynaddsubfx/metadata.xml +++ b/media-sound/zynaddsubfx/metadata.xml @@ -5,6 +5,9 @@ <email>proaudio@gentoo.org</email> <name>Gentoo ProAudio Project</name> </maintainer> + <use> + <flag name="dssi">Enable support for DSSI Soft Synth Interface</flag> + </use> <upstream> <remote-id type="sourceforge">zynaddsubfx</remote-id> </upstream> diff --git a/media-sound/zynaddsubfx/zynaddsubfx-3.0.3-r1.ebuild b/media-sound/zynaddsubfx/zynaddsubfx-3.0.3-r1.ebuild new file mode 100644 index 000000000000..42707c6895ba --- /dev/null +++ b/media-sound/zynaddsubfx/zynaddsubfx-3.0.3-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils flag-o-matic + +DESCRIPTION="Software synthesizer capable of making a countless number of instruments" +HOMEPAGE="http://zynaddsubfx.sourceforge.net/" +SRC_URI="mirror://sourceforge/zynaddsubfx/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="alsa doc dssi +fltk jack lash portaudio" + +REQUIRED_USE="|| ( alsa jack portaudio )" + +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" +DEPEND=" + >=dev-libs/mxml-2.2.1 + media-libs/liblo + sci-libs/fftw:3.0 + sys-libs/zlib + alsa? ( media-libs/alsa-lib ) + dssi? ( media-libs/dssi ) + fltk? ( + >=x11-libs/fltk-1.3:1 + x11-libs/libX11 + x11-libs/libXpm + ) + jack? ( virtual/jack ) + lash? ( media-sound/lash ) + portaudio? ( media-libs/portaudio ) +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-docs.patch ) + +DOCS=( ChangeLog HISTORY.txt README.adoc ) + +src_prepare() { + cmake-utils_src_prepare + + if ! use dssi; then + sed -i -e '/pkg_search_module.*DSSI/s/^/#DONT/' src/CMakeLists.txt || die + fi + if ! use jack; then + sed -e '/pkg_check_modules.*JACK/s/^/#DONT/' -i {rtosc,src}/CMakeLists.txt || die + fi + if ! use lash; then + sed -i -e '/pkg_search_module.*LASH/s/^/#DONT/' src/CMakeLists.txt || die + fi + if ! use portaudio; then + sed -i -e '/pkg_check_modules.*PORTAUDIO/s/^/#DONT/' src/CMakeLists.txt || die + fi +} + +src_configure() { + append-cxxflags -std=c++11 + + local mycmakeargs=( + -DPluginLibDir=$(get_libdir) + $(cmake-utils_use_find_package alsa Alsa) + $(cmake-utils_use_find_package doc Doxygen) + $(cmake-utils_use_find_package fltk FLTK) + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + use doc && cmake-utils_src_compile doc +} + +src_install() { + use doc && local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) + cmake-utils_src_install + insinto /usr/share/${PN} + doins -r instruments/* +} |