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/zynaddsubfx/files/, media-sound/zynaddsubfx/
Date: Sun, 07 Jan 2018 18:16:37
Message-Id: 1515348897.223bbb7dea968fef915ed6069cbeb5588edbf01d.aballier@gentoo
1 commit: 223bbb7dea968fef915ed6069cbeb5588edbf01d
2 Author: Simon van der Veldt <simon.vanderveldt <AT> gmail <DOT> com>
3 AuthorDate: Sun Jan 7 12:17:16 2018 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 7 18:14:57 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=223bbb7d
7
8 media-sound/zynaddsubfx bump to 3.0.3
9
10 media-sound/zynaddsubfx/Manifest | 1 +
11 .../zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch | 14 ++++++
12 media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild | 55 ++++++++++++++++++++++
13 3 files changed, 70 insertions(+)
14
15 diff --git a/media-sound/zynaddsubfx/Manifest b/media-sound/zynaddsubfx/Manifest
16 index fbefddbd1b4..47de38d02ba 100644
17 --- a/media-sound/zynaddsubfx/Manifest
18 +++ b/media-sound/zynaddsubfx/Manifest
19 @@ -1,2 +1,3 @@
20 DIST zynaddsubfx-3.0.1.tar.bz2 6811606 BLAKE2B 4dc400b97381f03c4bc6ff749f1bcb6e4bb41c796a97b0ccf2cf3c8dd0b98235dec40f726e838934923719b8d3378be92a5e70b6a613ee8b9922632c22b0b691 SHA512 49592e46872ae966461dfc5f7cbd2ebcf3f3a6d43139f6cd0eba65e098fb33370840c0e1f4f224a18adfc97eae9fa5583eca6a48f43b9200d5522cc413b0ce43
21 DIST zynaddsubfx-3.0.2.tar.bz2 7979193 BLAKE2B 9c77ef24de20a694477bf2d433fc2ee4ca3ad9d34c33e24ebabd91c4449fbabeae9d146645ce95d25355e9e8c277dd677f4c30032e65a22e6c8a336cd344fb50 SHA512 96d1df903a6afbaee991221ca30b21a20d97bc6d1cbe5c9fef94f2d1c3fb88e0294c263aec282559885d6e2f5841ad2c80d863af9f58f161791a33a9c0c08f57
22 +DIST zynaddsubfx-3.0.3.tar.bz2 7989258 BLAKE2B 7b71dc358ed3d0248eafb1c4638b05cc7ea8dbb05fd36c40643bb8f9160ee462c229d1604a52e795b6787d9131cea92512ad783c137c9cbe17cf8d56461a581f SHA512 e60e22656388d444114959859c12014ec79d7ba555b0d217ad98ad06e273916eea0eee521bb9dbfdef5be34205280d355b44a8f15760eeff06b16410d560b5d7
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 new file mode 100644
26 index 00000000000..b094986ea86
27 --- /dev/null
28 +++ b/media-sound/zynaddsubfx/files/zynaddsubfx-3.0.3-docs.patch
29 @@ -0,0 +1,14 @@
30 +Index: zynaddsubfx-2.5.2/CMakeLists.txt
31 +===================================================================
32 +--- zynaddsubfx-2.5.2.orig/CMakeLists.txt
33 ++++ zynaddsubfx-2.5.2/CMakeLists.txt
34 +@@ -28,9 +28,6 @@ include(CTestConfig.cmake)
35 + #Currently the only directory that uses cmake
36 + add_subdirectory(src)
37 +
38 +-install(FILES AUTHORS.txt COPYING HISTORY.txt README.adoc
39 +- DESTINATION share/doc/zynaddsubfx
40 +- )
41 + install(FILES zynaddsubfx-jack.desktop zynaddsubfx-alsa.desktop zynaddsubfx-oss.desktop
42 + DESTINATION share/applications)
43 + install(FILES zynaddsubfx.svg
44
45 diff --git a/media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild b/media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild
46 new file mode 100644
47 index 00000000000..a2778f8b90e
48 --- /dev/null
49 +++ b/media-sound/zynaddsubfx/zynaddsubfx-3.0.3.ebuild
50 @@ -0,0 +1,55 @@
51 +# Copyright 1999-2017 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=6
55 +
56 +inherit eutils cmake-utils flag-o-matic multilib
57 +
58 +DESCRIPTION="ZynAddSubFX is an opensource software synthesizer"
59 +HOMEPAGE="http://zynaddsubfx.sourceforge.net/"
60 +SRC_URI="mirror://sourceforge/zynaddsubfx/${P}.tar.bz2"
61 +
62 +LICENSE="GPL-2"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~ppc ~x86"
65 +IUSE="alsa +fltk jack lash"
66 +
67 +RDEPEND=">=dev-libs/mini-xml-2.2.1
68 + sci-libs/fftw:3.0
69 + media-libs/liblo
70 + alsa? ( media-libs/alsa-lib )
71 + fltk? ( >=x11-libs/fltk-1.3:1 )
72 + jack? ( virtual/jack )
73 + lash? ( media-sound/lash )"
74 +# portaudio? ( media-libs/portaudio )"
75 +DEPEND="${RDEPEND}
76 + virtual/pkgconfig"
77 +# Upstream uses the following preferences: alsa > jack > portaudio
78 +# At least one of them must be enabled
79 +# We do not support portaudio, so if alsa is disabled force jack.
80 +REQUIRED_USE="!alsa? ( jack )"
81 +
82 +PATCHES=(
83 + "${FILESDIR}"/${PN}-${PV}-docs.patch
84 +)
85 +
86 +DOCS=( ChangeLog HISTORY.txt README.adoc )
87 +
88 +src_configure() {
89 + append-cxxflags "-std=c++11"
90 + use lash || sed -i -e 's/lash-1.0/lash_disabled/' "${S}"/src/CMakeLists.txt
91 + mycmakeargs=(
92 + `use fltk && echo "-DGuiModule=fltk" || echo "-DGuiModule=off"`
93 + `use alsa && echo "-DOutputModule=alsa" || echo "-DOutputModule=jack"`
94 + `use alsa && echo "-DAlsaMidiOutput=TRUE" || echo "-DAlsaMidiOutput=FALSE"`
95 + `use jack && echo "-DJackOutput=TRUE" || echo "-DJackOutput=FALSE"`
96 + -DPluginLibDir=$(get_libdir)
97 + )
98 + cmake-utils_src_configure
99 +}
100 +
101 +src_install() {
102 + cmake-utils_src_install
103 + insinto /usr/share/${PN}
104 + doins -r "${S}"/instruments/*
105 +}