Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/csound/
Date: Tue, 13 Feb 2018 21:28:44
Message-Id: 1518557151.2eff6c67fb2f2e265c3210da83cfe891da567e8f.radhermit@gentoo
1 commit: 2eff6c67fb2f2e265c3210da83cfe891da567e8f
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 13 08:39:30 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 13 21:25:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2eff6c67
7
8 media-sound/csound: version bump to 6.10.0
9
10 media-sound/csound/Manifest | 3 +
11 media-sound/csound/csound-6.10.0.ebuild | 228 ++++++++++++++++++++++++++++++++
12 2 files changed, 231 insertions(+)
13
14 diff --git a/media-sound/csound/Manifest b/media-sound/csound/Manifest
15 index 102028d8861..e41d387d163 100644
16 --- a/media-sound/csound/Manifest
17 +++ b/media-sound/csound/Manifest
18 @@ -1,4 +1,7 @@
19 DIST Csound6.09.1_manual_html.zip 15537547 BLAKE2B 8864cd42e811c596b1c17c68d0552edff39437412ce828772cf8cf13f47390d0edc25fa9a85ecfe1a50a01fe592cb0ee27ce5a11679195f8c1b41da9b1ede8cd SHA512 8ddd821737b003d277eadf5b966907314ee50380ab5cc7b9716588d1bcfac8950f591e076752650508c924d1068bac0334523a3d3b869a4f6d4118b822003afd
20 DIST Csound6.09.1_manual_pdf.zip 8647957 BLAKE2B 52209784a08c67284a6481d17eaef8db2abf03f068bf347a40b06d4ba323389371474cb87fd93a318fe6abadeb69afd060be0aa64fdd2b638172ef33a282386a SHA512 1dd2c0058751fe1f176a51741380884db115bdb52416512882c43212fd5ded1c489cc9c423059c1154a1e01528e7bf6e70621eac6ee83a1a4b5e2388ab85ae1b
21 +DIST Csound6.10.0_manual_html.zip 15944722 BLAKE2B dfb2d00650e8d9ff650c60a5601b63446d0ce6d94eeac54812752039ef1b7c8c161a7694cb3381453f86759a810b81754e99cf5c8805cee61171c24a615114ab SHA512 f61f46705607eb39897fd3b27353fb233acd9da5e00a2b64d63116f74b889f2daafa72d48ed7c5ec1890e32d81331f91455861f2cb3fad3d13b7d27ec203357a
22 +DIST Csound6.10.0_manual_pdf.zip 8687461 BLAKE2B ff738378e10ce7e3fd9ab44bed67fdbf4a1de62d89d738a35fd46f25996d85dd8e97260af31bb2fbfe199aecd3f16f0adb5bf94d9a15807d6424002d7ab9682c SHA512 cf6ec335782032fb0703a3042c0222316cd215eba2be242e65d4f1ae23d886177620c96cc63c1aace43a72c1d6258a88612c1ffd5ef0e43675729bae39969fa1
23 DIST csound-6.08.0.tar.gz 33948686 BLAKE2B 6a81e5806420b63ffd487d71d507d34336c46e91ec7073b4805324d04af31101c1ea65142f22aae2de071f149eb8fe4c88547b6795462aea248b585d029bad6c SHA512 22237f7c8ac875fd44789a729f5513dd7f751bbe0446b8a6e43c6a824b1c40978ef051122632af0c3975761fa7f873c01e88b9de7be313d9d23be09ed52c29ca
24 DIST csound-6.09.1.tar.gz 41969942 BLAKE2B 87dd02f61346f95648391c405edc18d08edad9d33c1cd2ab2cf054e0f10b7f987aaedce698a18520a8d8559d1fd78a20fa4f3d7db99e6afb3fdba316207e0495 SHA512 c82d3e4fa5fba2c47f916ee102ba841477a819e1905e578089474ce5a7c4a4e70c4ec2768337621fcd2e3843af9b1129ce50f4a4fd3c33bfa27da52815b99454
25 +DIST csound-6.10.0.tar.gz 42036496 BLAKE2B 4305eb2aedb076f4a4079e1353f05f9ffe6159311fe905a11998f80eab9ccbbfe57c0601b94762480c486f8edbe0aa0f9b20d18f4db8f9f49d6466a7b2ef4697 SHA512 1ccf0a2d5273da016ec585e788e4af0b91f55c3be081a51c53dc39b0fbcfba0cf1308828784a1e5dfc39250dedbd3f4b48afbb5c4140c11fd469ca6753702ed4
26
27 diff --git a/media-sound/csound/csound-6.10.0.ebuild b/media-sound/csound/csound-6.10.0.ebuild
28 new file mode 100644
29 index 00000000000..5906af36652
30 --- /dev/null
31 +++ b/media-sound/csound/csound-6.10.0.ebuild
32 @@ -0,0 +1,228 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +inherit java-pkg-opt-2 toolchain-funcs python-single-r1 cmake-utils
40 +
41 +if [[ ${PV} == "9999" ]]; then
42 + EGIT_REPO_URI="https://github.com/csound/csound.git"
43 + inherit git-r3
44 +else
45 + DOC_P="Csound${PV}"
46 + SRC_URI="https://github.com/csound/csound/archive/${PV}.tar.gz -> ${P}.tar.gz
47 + doc? (
48 + https://github.com/csound/csound/releases/download/${PV}/${DOC_P}_manual_pdf.zip
49 + https://github.com/csound/csound/releases/download/${PV}/${DOC_P}_manual_html.zip
50 + )"
51 + KEYWORDS="~amd64 ~x86"
52 +fi
53 +
54 +DESCRIPTION="A sound design and signal processing system for composition and performance"
55 +HOMEPAGE="https://csound.github.io/"
56 +
57 +LICENSE="LGPL-2.1 doc? ( FDL-1.2+ )"
58 +SLOT="0"
59 +IUSE="+alsa beats chua csoundac curl +cxx debug doc double-precision dssi examples
60 +fltk +fluidsynth +image jack java keyboard linear lua luajit nls osc openmp
61 +portaudio portmidi pulseaudio python samples score static-libs stk tcl test
62 ++threads +utils vim-syntax websocket"
63 +
64 +IUSE_LANGS=" de en_US es es_CO fr it ro ru"
65 +
66 +REQUIRED_USE="
67 + csoundac? ( || ( lua python ) )
68 + java? ( cxx )
69 + linear? ( double-precision )
70 + lua? ( cxx )
71 + python? ( ${PYTHON_REQUIRED_USE} cxx )
72 +"
73 +
74 +RDEPEND="
75 + >=media-libs/libsndfile-1.0.16
76 + media-libs/libsamplerate
77 + alsa? ( media-libs/alsa-lib )
78 + csoundac? (
79 + x11-libs/fltk:1[threads?]
80 + dev-cpp/eigen:3
81 + dev-libs/boost:=
82 + )
83 + curl? ( net-misc/curl )
84 + dssi? (
85 + media-libs/dssi
86 + media-libs/ladspa-sdk
87 + )
88 + fluidsynth? ( media-sound/fluidsynth )
89 + fltk? ( x11-libs/fltk:1[threads?] )
90 + image? ( media-libs/libpng:0= )
91 + jack? ( media-sound/jack-audio-connection-kit )
92 + java? ( virtual/jdk:* )
93 + keyboard? ( x11-libs/fltk:1[threads?] )
94 + linear? ( sci-mathematics/gmm )
95 + lua? (
96 + luajit? ( dev-lang/luajit:2 )
97 + !luajit? ( dev-lang/lua:0 )
98 + )
99 + osc? ( media-libs/liblo )
100 + portaudio? ( media-libs/portaudio )
101 + portmidi? ( media-libs/portmidi )
102 + pulseaudio? ( media-sound/pulseaudio )
103 + python? ( ${PYTHON_DEPS} )
104 + stk? ( media-libs/stk )
105 + tcl? (
106 + >=dev-lang/tcl-8.5:0=
107 + >=dev-lang/tk-8.5:0=
108 + )
109 + utils? ( !media-sound/snd )
110 + websocket? ( net-libs/libwebsockets )
111 +"
112 +DEPEND="${RDEPEND}
113 + sys-devel/flex
114 + virtual/yacc
115 + chua? ( dev-libs/boost )
116 + csoundac? ( dev-lang/swig )
117 + nls? ( sys-devel/gettext )
118 + test? (
119 + dev-util/cunit
120 + ${PYTHON_DEPS}
121 + )
122 +"
123 +
124 +if [[ ${PV} != "9999" ]]; then
125 + DEPEND+="doc? ( app-arch/unzip )"
126 +fi
127 +
128 +# requires specific alsa settings
129 +RESTRICT="test"
130 +
131 +pkg_pretend() {
132 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
133 +}
134 +
135 +pkg_setup() {
136 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
137 +
138 + if use python || use test ; then
139 + python-single-r1_pkg_setup
140 + fi
141 +}
142 +
143 +src_prepare() {
144 + cmake-utils_src_prepare
145 +
146 + sed -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' \
147 + -e '/-O3/d' \
148 + -i CMakeLists.txt || die
149 +
150 + local lang
151 + for lang in ${IUSE_LANGS} ; do
152 + if ! has ${lang} ${LINGUAS-${lang}} ; then
153 + sed -i "/compile_po(${lang}/d" po/CMakeLists.txt || die
154 + fi
155 + done
156 +}
157 +
158 +src_configure() {
159 + local mycmakeargs=(
160 + -DUSE_ALSA=$(usex alsa)
161 + -DBUILD_CSBEATS=$(usex beats)
162 + -DBUILD_CHUA_OPCODES=$(usex chua)
163 + -DBUILD_CSOUND_AC=$(usex csoundac)
164 + -DBUILD_CSOUND_AC_LUA_INTERFACE=$(usex csoundac $(usex lua))
165 + -DBUILD_CSOUND_AC_PYTHON_INTERFACE=$(usex csoundac $(usex python))
166 + -DBUILD_CXX_INTERFACE=$(usex cxx)
167 + -DUSE_CURL=$(usex curl)
168 + -DNEW_PARSER_DEBUG=$(usex debug)
169 + -DUSE_DOUBLE=$(usex double-precision)
170 + -DBUILD_DSSI_OPCODES=$(usex dssi)
171 + -DBUILD_FLUID_OPCODES=$(usex fluidsynth)
172 + -DUSE_FLTK=$(usex fltk)
173 + -DBUILD_IMAGE_OPCODES=$(usex image)
174 + -DUSE_JACK=$(usex jack)
175 + -DBUILD_JACK_OPCODES=$(usex jack)
176 + -DBUILD_JAVA_INTERFACE=$(usex java)
177 + -DBUILD_VIRTUAL_KEYBOARD=$(usex keyboard)
178 + -DBUILD_LINEAR_ALGEBRA_OPCODES=$(usex linear)
179 + -DBUILD_LUA_OPCODES=$(usex lua)
180 + -DBUILD_LUA_INTERFACE=$(usex lua)
181 + -DUSE_GETTEXT=$(usex nls)
182 + -DBUILD_OSC_OPCODES=$(usex osc)
183 + -DUSE_OPEN_MP=$(usex openmp)
184 + -DUSE_PORTAUDIO=$(usex portaudio)
185 + -DUSE_PORTMIDI=$(usex portmidi)
186 + -DUSE_PULSEAUDIO=$(usex pulseaudio)
187 + -DBUILD_PYTHON_OPCODES=$(usex python)
188 + -DBUILD_PYTHON_INTERFACE=$(usex python)
189 + -DSCORE_PARSER=$(usex score)
190 + -DBUILD_STATIC_LIBRARY=$(usex static-libs)
191 + -DBUILD_STK_OPCODES=$(usex stk)
192 + -DBUILD_TESTS=$(usex test)
193 + -DBUILD_STATIC_LIBRARY=$(usex test)
194 + -DBUILD_TCLCSOUND=$(usex tcl)
195 + -DBUILD_MULTI_CORE=$(usex threads)
196 + -DBUILD_UTILITIES=$(usex utils)
197 + -DBUILD_WEBSOCKET_OPCODE=$(usex websocket)
198 + -DNEED_PORTTIME=OFF
199 + -DBUILD_RELEASE=ON
200 + )
201 +
202 + use python && mycmakeargs+=(
203 + -DPYTHON_MODULE_INSTALL_DIR="$(python_get_sitedir)"
204 + )
205 +
206 + [[ $(get_libdir) == "lib64" ]] && mycmakeargs+=(
207 + -DUSE_LIB64=ON
208 + )
209 +
210 + cmake-utils_src_configure
211 +}
212 +
213 +src_install() {
214 + cmake-utils_src_install
215 + dodoc -r Release_Notes/.
216 +
217 + # generate env.d file
218 + cat > "${T}"/62${PN} <<-_EOF_ || die
219 + OPCODEDIR$(usex double-precision 64 '')="${EPREFIX}/usr/$(get_libdir)/${PN}/plugins$(usex double-precision 64 '')"
220 + CSSTRNGS="${EPREFIX}/usr/share/locale"
221 + _EOF_
222 + if use stk ; then
223 + echo RAWWAVE_PATH=\"${EPREFIX}/usr/share/csound/rawwaves\" >> "${T}"/62${PN} || die
224 + fi
225 + doenvd "${T}"/62${PN}
226 +
227 + if use examples ; then
228 + dodoc -r examples
229 + docompress -x /usr/share/doc/${PF}/examples
230 + fi
231 +
232 + use samples && dodoc -r samples
233 +
234 + if use vim-syntax ; then
235 + insinto /usr/share/vim/vimfiles/syntax
236 + doins installer/misc/vim/csound_{csd,orc,sco}.vim
237 + insinto /usr/share/vim/vimfiles/plugin
238 + doins installer/misc/vim/csound.vim
239 + fi
240 +
241 + # rename extract to csound_extract (bug #247394)
242 + mv "${ED%/}"/usr/bin/{,csound_}extract || die
243 +
244 + use python && python_optimize
245 +
246 + # install docs
247 + if [[ ${PV} != "9999" ]] && use doc ; then
248 + dodoc "${WORKDIR}"/*.pdf
249 + dodoc -r "${WORKDIR}"/html
250 + fi
251 +}
252 +
253 +pkg_postinst() {
254 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
255 + elog
256 + elog "The extract tool is now installed as csound_extract"
257 + elog "due to collisions with many other packages (bug #247394)."
258 + elog
259 + fi
260 +}