Gentoo Archives: gentoo-commits

From: gerion <gerion.entrup@×××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/gerislay:master commit in: media-sound/rosegarden/, media-sound/patchage/files/, media-gfx/blender/, ...
Date: Fri, 13 Jul 2018 21:40:33
Message-Id: 1506783026.5e41636c50b17957df5c3f633dfda3b601a43bc1.gerion@gentoo
1 commit: 5e41636c50b17957df5c3f633dfda3b601a43bc1
2 Author: Gerion Entrup <gerion.entrup <AT> flump <DOT> de>
3 AuthorDate: Sat Sep 30 14:50:26 2017 +0000
4 Commit: gerion <gerion.entrup <AT> flump <DOT> de>
5 CommitDate: Sat Sep 30 14:50:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/user/gerislay.git/commit/?id=5e41636c
7
8 fix jack dependency
9
10 - media-gfx/blender
11 - media-sound/rosegarden
12 - media-sound/patchage
13 - media-sound/timidity++
14
15 media-gfx/blender/Manifest | 5 +
16 media-gfx/blender/blender-2.78a-r2.ebuild | 295 +++++++++++++++++++++
17 .../blender/files/blender-2.78-eigen-3.3.1.patch | 25 ++
18 .../blender/files/blender-fix-install-rules.patch | 16 ++
19 media-gfx/blender/metadata.xml | 101 +++++++
20 media-sound/patchage/Manifest | 4 +
21 .../patchage/files/patchage-0.5.0-desktop.patch | 8 +
22 media-sound/patchage/metadata.xml | 17 ++
23 media-sound/patchage/patchage-1.0.0-r1.ebuild | 40 +++
24 media-sound/rosegarden/Manifest | 3 +
25 media-sound/rosegarden/metadata.xml | 11 +
26 media-sound/rosegarden/rosegarden-17.04-r1.ebuild | 60 +++++
27 media-sound/timidity++/Manifest | 16 ++
28 .../timidity++/files/50timidity++-gentoo.el | 6 +
29 media-sound/timidity++/files/conf.d.timidity.2 | 27 ++
30 media-sound/timidity++/files/init.d.timidity.4 | 20 ++
31 .../timidity++/files/timidity++-2.14.0-ar.patch | 23 ++
32 .../files/timidity++-2.14.0-configure-flags.patch | 140 ++++++++++
33 .../files/timidity++-2.14.0-params.patch | 22 ++
34 .../files/timidity++-2.14.0-pkg-config.patch | 109 ++++++++
35 ...ert-for-required-ctl_speana_data-function.patch | 28 ++
36 .../files/timidity++-2.14.0-tcltk86.patch | 13 +
37 media-sound/timidity++/files/timidity.cfg-r1 | 24 ++
38 media-sound/timidity++/files/timidity.desktop.2 | 10 +
39 media-sound/timidity++/files/timidity.service | 10 +
40 media-sound/timidity++/files/timidity.xpm | 56 ++++
41 media-sound/timidity++/metadata.xml | 11 +
42 media-sound/timidity++/timidity++-2.14.0-r3.ebuild | 185 +++++++++++++
43 28 files changed, 1285 insertions(+)
44
45 diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest
46 new file mode 100644
47 index 0000000..c6db9de
48 --- /dev/null
49 +++ b/media-gfx/blender/Manifest
50 @@ -0,0 +1,5 @@
51 +AUX blender-2.78-eigen-3.3.1.patch 666 SHA256 35900be15f8bb0540050ffab9067122ba87433eecf896095e7ce1e889e54af5b SHA512 9a2ee48fa38e23a5b086514468bd1c96ee2b97228e95cdfaac3c5d3b2c21c4e47a0ced4306d7dc89268d63b60e551b655d6d627790215ad68791fe3f35717bf5 WHIRLPOOL b073ba691ada03ead560a9be8907b8c1111c1029fdc7e6a4f59c24f5771a34bc287800f9458d81488fa19faba662afd876693bd9933600e498b13d95c4f134c6
52 +AUX blender-fix-install-rules.patch 518 SHA256 4fbdd73c4bb20e316f6a02c7e6a33a90285db787aac5b3baf66394d256fe6e0f SHA512 5343f0e9e6bba2d15a38cb5db95a1aeff0a704c0762e558b9b74d88dd58e2fb5077289f0d8f25a61fa092d083f7db916d27c4642dfd7cf84d4c989258c3253ec WHIRLPOOL 6ae8c113ab1ccac5c1465e0deab3bd101922303c0f60ecdb4d1cbff7dd02d37c299d4897beb5239b60e8724e47b830ecd5b7f6045dd301847f2583d559bdacbb
53 +DIST blender-2.78a.tar.gz 44188123 SHA256 014a14b1ba00c0e651f106469b2e5dd444f11be5a7af48056f0ed59de90cceaf SHA512 57239b6ce473aaef114453f97a6e88535ec0a2f50cfecd221fa6bdcca6fe6559dcbefd48c3f20dc2235c195de13c59a1a155d5b64d777be31812d32e68be9370 WHIRLPOOL 85ea5ea5594716433a5f2f14233a489841598baf80170f01fff3946b4fa6ebc99086396a232f0f3c5f0e8c8d6c16ec27e98b7b58d79d289f5190214dc7efb677
54 +EBUILD blender-2.78a-r2.ebuild 8353 SHA256 c1c9119567498541d027fa46fa8904c2bc5b1911c8663d4a9aa4e4a94fcc81cc SHA512 c12a7c31babf8d837205238bd5e4f0affb53a2e61f6a53d327eeae4b08741e9e9073debfc3f95edb5ea277462ce1898b2cae398190ab94dc2745e91390af3da4 WHIRLPOOL 2395d88212d8c95a7f0c620795a2dabab8f942ac919cf7c4d05bfa885fd3265cd977f8944e7afaa5f2cdf0b6e432a050af395c1fe684f26eb7ebc829d2de2623
55 +MISC metadata.xml 3440 SHA256 45cba6ae08884bbca2a5a94993dde5abfd900ead160a2f7eec19a3f4779bb696 SHA512 75c1cfb4998e9bbd2c3d4836bfba2f273d90920a2a72f70b599ee4cdfdfbf02cf1f2508aa24df6c762e3c323000de0a04623b21caaf5843e235888d3906043a8 WHIRLPOOL f20d54a0f468ee3ed1c1d5eca5790f73963d1abceb7fd7ed2040d060882fdf40950e728eea5686f50f60124a1a8ce85c6c5a84da7f67de5660930ce6a3c69c53
56
57 diff --git a/media-gfx/blender/blender-2.78a-r2.ebuild b/media-gfx/blender/blender-2.78a-r2.ebuild
58 new file mode 100644
59 index 0000000..3235f0c
60 --- /dev/null
61 +++ b/media-gfx/blender/blender-2.78a-r2.ebuild
62 @@ -0,0 +1,295 @@
63 +# Copyright 1999-2017 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=6
67 +PYTHON_COMPAT=( python3_5 )
68 +
69 +inherit check-reqs cmake-utils fdo-mime flag-o-matic gnome2-utils \
70 + pax-utils python-single-r1 toolchain-funcs versionator
71 +
72 +DESCRIPTION="3D Creation/Animation/Publishing System"
73 +HOMEPAGE="http://www.blender.org"
74 +
75 +SRC_URI="http://download.blender.org/source/${P}.tar.gz"
76 +
77 +# Blender can have letters in the version string,
78 +# so strip of the letter if it exists.
79 +MY_PV="$(get_version_component_range 1-2)"
80 +
81 +SLOT="0"
82 +LICENSE="|| ( GPL-2 BL )"
83 +KEYWORDS="~amd64 ~x86"
84 +IUSE="+boost +bullet +dds +elbeem +game-engine +openexr collada colorio \
85 + cuda cycles debug doc ffmpeg fftw headless jack jemalloc jpeg2k libav \
86 + llvm man ndof nls openal openimageio openmp opensubdiv openvdb \
87 + player sdl sndfile test tiff valgrind"
88 +
89 +# OpenCL and nVidia performance is rubbish with Blender
90 +# If you have nVidia, use CUDA.
91 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
92 + player? ( game-engine !headless )
93 + cuda? ( cycles )
94 + cycles? ( boost openexr tiff openimageio )
95 + colorio? ( boost )
96 + openvdb? ( boost )
97 + opensubdiv? ( cuda )
98 + nls? ( boost )
99 + openal? ( boost )
100 + game-engine? ( boost )
101 + ?? ( ffmpeg libav )"
102 +
103 +# Since not using OpenCL with nVidia, depend on ATI binary
104 +# blobs as Cycles with OpenCL does not work with any open
105 +# source drivers.
106 +RDEPEND="${PYTHON_DEPS}
107 + dev-libs/lzo:2
108 + >=dev-python/numpy-1.10.1[${PYTHON_USEDEP}]
109 + dev-python/requests[${PYTHON_USEDEP}]
110 + media-libs/freetype
111 + media-libs/glew:*
112 + media-libs/libpng:0=
113 + media-libs/libsamplerate
114 + sys-libs/zlib
115 + virtual/glu
116 + virtual/jpeg:0=
117 + virtual/libintl
118 + virtual/opengl
119 + boost? ( >=dev-libs/boost-1.62:=[nls?,threads(+)] )
120 + collada? ( >=media-libs/opencollada-1.6.18:= )
121 + colorio? ( >=media-libs/opencolorio-1.0.9-r2 )
122 + cuda? ( =dev-util/nvidia-cuda-toolkit-8.0*:= )
123 + ffmpeg? ( media-video/ffmpeg:=[x264,mp3,encode,theora,jpeg2k?] )
124 + libav? ( >=media-video/libav-11.3:=[x264,mp3,encode,theora,jpeg2k?] )
125 + fftw? ( sci-libs/fftw:3.0= )
126 + !headless? (
127 + x11-libs/libX11
128 + x11-libs/libXi
129 + x11-libs/libXxf86vm
130 + )
131 + jack? ( virtual/jack )
132 + jemalloc? ( dev-libs/jemalloc:= )
133 + jpeg2k? ( media-libs/openjpeg:0 )
134 + llvm? ( sys-devel/llvm )
135 + ndof? (
136 + app-misc/spacenavd
137 + dev-libs/libspnav
138 + )
139 + nls? ( virtual/libiconv )
140 + openal? ( media-libs/openal )
141 + openimageio? ( >=media-libs/openimageio-1.6.9 )
142 + openexr? (
143 + >=media-libs/ilmbase-2.2.0:=
144 + >=media-libs/openexr-2.2.0:=
145 + )
146 + opensubdiv? ( media-libs/opensubdiv[cuda=] )
147 + openvdb? (
148 + media-gfx/openvdb[${PYTHON_USEDEP},abi3-compat(+),openvdb-compression(+)]
149 + dev-cpp/tbb
150 + >=dev-libs/c-blosc-1.5.2
151 + )
152 + sdl? ( media-libs/libsdl2[sound,joystick] )
153 + sndfile? ( media-libs/libsndfile )
154 + tiff? ( media-libs/tiff:0 )
155 + valgrind? ( dev-util/valgrind )"
156 +
157 +DEPEND="${RDEPEND}
158 + >=dev-cpp/eigen-3.2.8:3
159 + nls? ( sys-devel/gettext )
160 + doc? (
161 + app-doc/doxygen[-nodot(-),dot(+),latex]
162 + dev-python/sphinx[latex]
163 + )"
164 +
165 +PATCHES=( "${FILESDIR}"/${PN}-fix-install-rules.patch
166 + "${FILESDIR}"/${PN}-2.78-eigen-3.3.1.patch )
167 +
168 +blender_check_requirements() {
169 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
170 +
171 + if use doc; then
172 + CHECKREQS_DISK_BUILD="4G" check-reqs_pkg_pretend
173 + fi
174 +}
175 +
176 +pkg_pretend() {
177 + blender_check_requirements
178 +}
179 +
180 +pkg_setup() {
181 + blender_check_requirements
182 + python-single-r1_pkg_setup
183 +}
184 +
185 +src_prepare() {
186 + default
187 +
188 + # we don't want static glew, but it's scattered across
189 + # multiple files that differ from version to version
190 + # !!!CHECK THIS SED ON EVERY VERSION BUMP!!!
191 + local file
192 + while IFS="" read -d $'\0' -r file ; do
193 + sed -i -e '/-DGLEW_STATIC/d' "${file}" || die
194 + done < <(find . -type f -name "CMakeLists.txt")
195 +
196 + # Disable MS Windows help generation. The variable doesn't do what it
197 + # it sounds like.
198 + sed -e "s|GENERATE_HTMLHELP = YES|GENERATE_HTMLHELP = NO|" \
199 + -i doc/doxygen/Doxyfile || die
200 +}
201 +
202 +src_configure() {
203 + # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu
204 + # shadows, see bug #276338 for reference
205 + append-flags -funsigned-char
206 + append-lfs-flags
207 + append-cppflags -DOPENVDB_3_ABI_COMPATIBLE
208 +
209 + local mycmakeargs=(
210 + -DPYTHON_VERSION="${EPYTHON/python/}"
211 + -DPYTHON_LIBRARY="$(python_get_library_path)"
212 + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
213 + -DWITH_INSTALL_PORTABLE=OFF
214 + -DWITH_PYTHON_INSTALL=OFF
215 + -DWITH_PYTHON_INSTALL_NUMPY=OFF
216 + -DWITH_STATIC_LIBS=OFF
217 + -DWITH_SYSTEM_GLEW=ON
218 + -DWITH_SYSTEM_OPENJPEG=ON
219 + -DWITH_SYSTEM_EIGEN3=ON
220 + -DWITH_SYSTEM_LZO=ON
221 + -DWITH_C11=ON
222 + -DWITH_CXX11=ON
223 + -DWITH_BOOST=$(usex boost)
224 + -DWITH_BULLET=$(usex bullet)
225 + -DWITH_CODEC_FFMPEG=$(usex ffmpeg)
226 + -DWITH_CODEC_SNDFILE=$(usex sndfile)
227 + -DWITH_CUDA=$(usex cuda)
228 + -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE)
229 + -DWITH_CYCLES=$(usex cycles)
230 + -DWITH_CYCLES_OSL=OFF
231 + -DWITH_LLVM=$(usex llvm)
232 + -DWITH_FFTW3=$(usex fftw)
233 + -DWITH_GAMEENGINE=$(usex game-engine)
234 + -DWITH_HEADLESS=$(usex headless)
235 + -DWITH_X11=$(usex !headless)
236 + -DWITH_IMAGE_DDS=$(usex dds)
237 + -DWITH_IMAGE_OPENEXR=$(usex openexr)
238 + -DWITH_IMAGE_OPENJPEG=$(usex jpeg2k)
239 + -DWITH_IMAGE_TIFF=$(usex tiff)
240 + -DWITH_INPUT_NDOF=$(usex ndof)
241 + -DWITH_INTERNATIONAL=$(usex nls)
242 + -DWITH_JACK=$(usex jack)
243 + -DWITH_MOD_FLUID=$(usex elbeem)
244 + -DWITH_MOD_OCEANSIM=$(usex fftw)
245 + -DWITH_OPENAL=$(usex openal)
246 + -DWITH_OPENCL=OFF
247 + -DWITH_CYCLES_DEVICE_OPENCL=OFF
248 + -DWITH_OPENCOLORIO=$(usex colorio)
249 + -DWITH_OPENCOLLADA=$(usex collada)
250 + -DWITH_OPENIMAGEIO=$(usex openimageio)
251 + -DWITH_OPENMP=$(usex openmp)
252 + -DWITH_OPENSUBDIV=$(usex opensubdiv)
253 + -DWITH_OPENVDB=$(usex openvdb)
254 + -DWITH_OPENVDB_BLOSC=$(usex openvdb)
255 + -DWITH_PLAYER=$(usex player)
256 + -DWITH_SDL=$(usex sdl)
257 + -DWITH_CXX_GUARDEDALLOC=$(usex debug)
258 + -DWITH_ASSERT_ABORT=$(usex debug)
259 + -DWITH_GTESTS=$(usex test)
260 + -DWITH_DOC_MANPAGE=$(usex man)
261 + -DWITH_MEM_JEMALLOC=$(usex jemalloc)
262 + -DWITH_MEM_VALGRIND=$(usex valgrind)
263 + )
264 + cmake-utils_src_configure
265 +}
266 +
267 +src_compile() {
268 + cmake-utils_src_compile
269 +
270 + if use doc; then
271 + # Workaround for binary drivers.
272 + addpredict /dev/ati
273 + addpredict /dev/nvidiactl
274 +
275 + einfo "Generating Blender C/C++ API docs ..."
276 + cd "${CMAKE_USE_DIR}"/doc/doxygen || die
277 + doxygen -u Doxyfile || die
278 + doxygen || die "doxygen failed to build API docs."
279 +
280 + cd "${CMAKE_USE_DIR}" || die
281 + einfo "Generating (BPY) Blender Python API docs ..."
282 + "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed."
283 +
284 + cd "${CMAKE_USE_DIR}"/doc/python_api || die
285 + sphinx-build sphinx-in BPY_API || die "sphinx failed."
286 + fi
287 +}
288 +
289 +src_test() {
290 + if use test; then
291 + einfo "Running Blender Unit Tests ..."
292 + cd "${BUILD_DIR}"/bin/tests || die
293 + local f
294 + for f in *_test; do
295 + ./"${f}" || die
296 + done
297 + fi
298 +}
299 +
300 +src_install() {
301 + # Pax mark blender for hardened support.
302 + pax-mark m "${CMAKE_BUILD_DIR}"/bin/blender
303 +
304 + if use doc; then
305 + docinto "html/API/python"
306 + dodoc -r "${CMAKE_USE_DIR}"/doc/python_api/BPY_API/.
307 +
308 + docinto "html/API/blender"
309 + dodoc -r "${CMAKE_USE_DIR}"/doc/doxygen/html/.
310 + fi
311 +
312 + cmake-utils_src_install
313 +
314 + # fix doc installdir
315 + docinto "html"
316 + dodoc "${CMAKE_USE_DIR}"/release/text/readme.html
317 + rm -r "${ED%/}"/usr/share/doc/blender || die
318 +
319 + python_fix_shebang "${ED%/}/usr/bin/blender-thumbnailer.py"
320 + python_optimize "${ED%/}/usr/share/blender/${MY_PV}/scripts"
321 +}
322 +
323 +pkg_preinst() {
324 + gnome2_icon_savelist
325 +}
326 +
327 +pkg_postinst() {
328 + elog
329 + elog "Blender uses python integration. As such, may have some"
330 + elog "inherit risks with running unknown python scripts."
331 + elog
332 + elog "It is recommended to change your blender temp directory"
333 + elog "from /tmp to /home/user/tmp or another tmp file under your"
334 + elog "home directory. This can be done by starting blender, then"
335 + elog "dragging the main menu down do display all paths."
336 + elog
337 + ewarn
338 + ewarn "This ebuild does not unbundle the massive amount of 3rd party"
339 + ewarn "libraries which are shipped with blender. Note that"
340 + ewarn "these have caused security issues in the past."
341 + ewarn "If you are concerned about security, file a bug upstream:"
342 + ewarn " https://developer.blender.org/"
343 + ewarn
344 + gnome2_icon_cache_update
345 + fdo-mime_desktop_database_update
346 +}
347 +
348 +pkg_postrm() {
349 + gnome2_icon_cache_update
350 + fdo-mime_desktop_database_update
351 +
352 + ewarn ""
353 + ewarn "You may want to remove the following directory."
354 + ewarn "~/.config/${PN}/${MY_PV}/cache/"
355 + ewarn "It may contain extra render kernels not tracked by portage"
356 + ewarn ""
357 +}
358
359 diff --git a/media-gfx/blender/files/blender-2.78-eigen-3.3.1.patch b/media-gfx/blender/files/blender-2.78-eigen-3.3.1.patch
360 new file mode 100644
361 index 0000000..540aa6b
362 --- /dev/null
363 +++ b/media-gfx/blender/files/blender-2.78-eigen-3.3.1.patch
364 @@ -0,0 +1,25 @@
365 +--- blender-2.78a-orig/extern/ceres/include/ceres/jet.h 2016-10-25 01:13:56.000000000 +1100
366 ++++ blender-2.78a/extern/ceres/include/ceres/jet.h 2017-01-11 13:27:24.708241265 +1100
367 +@@ -757,6 +757,7 @@
368 + typedef ceres::Jet<T, N> Real;
369 + typedef ceres::Jet<T, N> NonInteger;
370 + typedef ceres::Jet<T, N> Nested;
371 ++ typedef ceres::Jet<T, N> Literal;
372 +
373 + static typename ceres::Jet<T, N> dummy_precision() {
374 + return ceres::Jet<T, N>(1e-12);
375 +@@ -777,6 +778,14 @@
376 + HasFloatingPoint = 1,
377 + RequireInitialization = 1
378 + };
379 ++
380 ++ template<bool Vectorized>
381 ++ struct Div {
382 ++ enum {
383 ++ AVX = false,
384 ++ Cost = 1
385 ++ };
386 ++ };
387 + };
388 +
389 + } // namespace Eigen
390
391 diff --git a/media-gfx/blender/files/blender-fix-install-rules.patch b/media-gfx/blender/files/blender-fix-install-rules.patch
392 new file mode 100644
393 index 0000000..e62aba8
394 --- /dev/null
395 +++ b/media-gfx/blender/files/blender-fix-install-rules.patch
396 @@ -0,0 +1,16 @@
397 +diff -purN a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
398 +--- a/source/creator/CMakeLists.txt 2016-09-28 10:26:55.000000000 +0100
399 ++++ b/source/creator/CMakeLists.txt 2016-10-03 12:17:08.938928486 +0100
400 +@@ -328,12 +328,6 @@ endif()
401 + # Install Targets (Generic, All Platforms)
402 +
403 +
404 +-# important to make a clean install each time, else old scripts get loaded.
405 +-install(
406 +- CODE
407 +- "file(REMOVE_RECURSE ${TARGETDIR_VER})"
408 +-)
409 +-
410 + if(WITH_PYTHON)
411 + # install(CODE "message(\"copying blender scripts...\")")
412 +
413
414 diff --git a/media-gfx/blender/metadata.xml b/media-gfx/blender/metadata.xml
415 new file mode 100644
416 index 0000000..ef8d087
417 --- /dev/null
418 +++ b/media-gfx/blender/metadata.xml
419 @@ -0,0 +1,101 @@
420 +<?xml version="1.0" encoding="UTF-8"?>
421 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
422 +<pkgmetadata>
423 + <maintainer restrict="&gt;=media-gfx/blender-2.77" type="person">
424 + <email>j.scruggs@×××××.com</email>
425 + <name>Jonathan Scruggs</name>
426 + </maintainer>
427 + <maintainer restrict="&gt;=media-gfx/blender-2.77" type="person">
428 + <email>agrigo2001@×××××××××.au</email>
429 + <name>Adrian Grigo</name>
430 + </maintainer>
431 + <maintainer type="project">
432 + <email>proxy-maint@g.o</email>
433 + <name>Proxy Maintainers</name>
434 + </maintainer>
435 + <maintainer type="project">
436 + <email>graphics@g.o</email>
437 + <name>Gentoo Graphics Project</name>
438 + </maintainer>
439 +
440 + <longdescription>
441 + Blender, the open source software for 3D modeling, animation,
442 + rendering, post-production, interactive creation and playback.
443 + </longdescription>
444 +
445 + <use>
446 + <flag name="boost">
447 + Enable features depending on boost.
448 + </flag>
449 + <flag name="bullet">
450 + Enable Bullet (Physics Engine).
451 + </flag>
452 + <flag name="collada">
453 + Add support for Collada interchange format through
454 + <pkg>media-libs/opencollada</pkg>.
455 + </flag>
456 + <flag name="colorio">
457 + Enable OpenColorIO color management through
458 + <pkg>media-libs/opencolorio</pkg>.
459 + </flag>
460 + <flag name="cuda">
461 + Build cycles renderer with nVidia CUDA support.
462 + </flag>
463 + <flag name="cycles">
464 + Build cycles renderer (requires <pkg>media-libs/openimageio</pkg> and
465 + <pkg>dev-libs/boost</pkg>).
466 + </flag>
467 + <flag name="dds">
468 + Adds DDS textures support to Blender.
469 + </flag>
470 + <flag name="doc">
471 + Build C and Python API documentation directly from the source code.
472 + </flag>
473 + <flag name="elbeem">
474 + Adds surface fluid simulation to Blender using El'Beem library.
475 + </flag>
476 + <flag name="game-engine" restrict="&gt;=media-gfx/blender-2.50">
477 + Adds Game Engine support to Blender.
478 + </flag>
479 + <flag name="headless" restrict="&gt;=media-gfx/blender-2.77">
480 + Build without graphical support (renderfarm, server mode only).
481 + </flag>
482 + <flag name="jemalloc" restrict="&gt;=media-gfx/blender-2.77">
483 + Use <pkg>dev-libs/jemalloc</pkg> for memory allocation.
484 + </flag>
485 + <flag name="llvm" restrict="&gt;=media-gfx/blender-2.77">
486 + Enable features depending on llvm.
487 + </flag>
488 + <flag name="man" restrict="&gt;=media-gfx/blender-2.77">
489 + Build and install man pages.
490 + </flag>
491 + <flag name="ndof">
492 + Enable NDOF input devices (SpaceNavigator and friends).
493 + </flag>
494 + <flag name="openimageio">Enable OpenImageIO Support</flag>
495 + <flag name="opennl" restrict="&lt;=media-gfx/blender-2.73">
496 + Enable use of Open Numerical Library
497 + </flag>
498 + <flag name="opensubdiv" restrict="&gt;=media-gfx/blender-2.77">
499 + Add rendering support form OpenSubdiv from Dreamworks Animation
500 + through <pkg>media-libs/opensubdiv</pkg>.
501 + </flag>
502 + <flag name="openvdb" restrict="&gt;=media-gfx/blender-2.77">
503 + Add GPU preview rendering. Only works with nVidia cards.
504 + </flag>
505 + <flag name="player">
506 + Build the Blender Player. THis requires the Game engine.
507 + </flag>
508 + <flag name="redcode" restrict="&lt;=media-gfx/blender-2.73">
509 + This flag add support for RED CODE camera digital format (5K HD
510 + images *.r3d) - EXPERIMENTAL.
511 + </flag>
512 + <flag name="test" restrict="&gt;=media-gfx/blender-2.77">
513 + Build the provided unit tests.
514 + </flag>
515 + <flag name="valgrind" restrict="&gt;=media-gfx/blender-2.77">
516 + Add support for memory debugging using
517 + <pkg>dev-util/valgrind</pkg>
518 + </flag>
519 + </use>
520 +</pkgmetadata>
521
522 diff --git a/media-sound/patchage/Manifest b/media-sound/patchage/Manifest
523 new file mode 100644
524 index 0000000..05dd597
525 --- /dev/null
526 +++ b/media-sound/patchage/Manifest
527 @@ -0,0 +1,4 @@
528 +AUX patchage-0.5.0-desktop.patch 224 SHA256 0d078e63c5dbdde508be319e7180fa1694e7575414e0cdc062b0559d66da389c SHA512 ae000bc340d48a9bb89fc067b4b1abba3de39ef9be086c7eeffae71ddca6172ce500ea6ea9854fde8cc19df3117195cb6fdb4ecd0867aa69f332ac0a7d377b69 WHIRLPOOL 4edab48a5b35eba0eb0dbcd6545c09581f85c1910a9a81a16b22f8d8451c053e6567fa8aa5ec98e86a3b74b2639344239ec90508a625e0ac7846db22b3f6d004
529 +DIST patchage-1.0.0.tar.bz2 414300 SHA256 6b21d74ef1b54fa62be8d6ba65ca8b61c7b6b5230cc85e093527081239bfeda9 SHA512 0a2be0183257a34a68ec84e6fb17d29a3d8ba7dd54a05fcdd13784ac8f5621eb7a376f17d42168958f5e1a8dab8858a9c5c8c867aa1838736cc2b7775f75f510 WHIRLPOOL 86278e94a71069e86a92d3f00ae61a99aca710738df79345ffa47d797df340719dce452c19b0a6165420bba97f3fc7d27f918dc4e294e90bfe4158d7a4f333bb
530 +EBUILD patchage-1.0.0-r1.ebuild 1019 SHA256 0709005d9912203d932df8d63290337170f85592aa5887afde9c79c233b0e2c0 SHA512 505b76f877d740939e12849437403f6a76d6bc4d2864be955b6d2727b4a8e413a1236678fb97daf9c3d603d833453b0779d8838ab0db0b5cabcbb6b7901fcdf3 WHIRLPOOL 91f9c63d77b1f74045538462bd8ed2d0e0e152059c0a75a31a2e27164d20d99a8fab040f9a2bebbff23dd85e7a17ec95da89fec19130fbb5bc8e473679593193
531 +MISC metadata.xml 600 SHA256 328d5523796f70d83115dfb2ca81d1482e3f2b6fd3fecb4aad9173e1b3fc400f SHA512 d08bd05a57ca03d9f91c0904f9a1b92e332e4475fd6729feefb63c75df2c5ad6eebd718b6e7db8482819f463606dcca888400c1560dd9b2c9e426c26634ece77 WHIRLPOOL d2ae8940cafd4cc656938963bded9738c790a8022edb43f579f23014f05073d1ff7792a177683b760a3722c1c1634bdc656fd265195b2864f9d87402511734b9
532
533 diff --git a/media-sound/patchage/files/patchage-0.5.0-desktop.patch b/media-sound/patchage/files/patchage-0.5.0-desktop.patch
534 new file mode 100644
535 index 0000000..cf4eaea
536 --- /dev/null
537 +++ b/media-sound/patchage/files/patchage-0.5.0-desktop.patch
538 @@ -0,0 +1,8 @@
539 +--- patchage-0.5.0/patchage.desktop.in
540 ++++ patchage-0.5.0/patchage.desktop.in
541 +@@ -6,4 +6,4 @@
542 + Terminal=false
543 + Icon=@APP_INSTALL_NAME@
544 + Type=Application
545 +-Categories=Application;AudioVideo;Audio
546 ++Categories=AudioVideo;Audio;
547
548 diff --git a/media-sound/patchage/metadata.xml b/media-sound/patchage/metadata.xml
549 new file mode 100644
550 index 0000000..8817f44
551 --- /dev/null
552 +++ b/media-sound/patchage/metadata.xml
553 @@ -0,0 +1,17 @@
554 +<?xml version="1.0" encoding="UTF-8"?>
555 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
556 +<pkgmetadata>
557 + <maintainer type="project">
558 + <email>proaudio@g.o</email>
559 + <name>Gentoo ProAudio Project</name>
560 + </maintainer>
561 + <use>
562 + <flag name="jack-dbus">Use Jack via D-Bus instead of libjack</flag>
563 + <flag name="session">Include experimental Jack session management
564 + (save/restore) support</flag>
565 + </use>
566 + <longdescription lang="en">
567 + Patchage is a modular patch bay for audio and MIDI for Jack based audio
568 + systems.
569 + </longdescription>
570 +</pkgmetadata>
571
572 diff --git a/media-sound/patchage/patchage-1.0.0-r1.ebuild b/media-sound/patchage/patchage-1.0.0-r1.ebuild
573 new file mode 100644
574 index 0000000..208138d
575 --- /dev/null
576 +++ b/media-sound/patchage/patchage-1.0.0-r1.ebuild
577 @@ -0,0 +1,40 @@
578 +# Copyright 1999-2015 Gentoo Foundation
579 +# Distributed under the terms of the GNU General Public License v2
580 +
581 +EAPI=5
582 +PYTHON_COMPAT=( python2_7 )
583 +PYTHON_REQ_USE='threads(+)'
584 +inherit waf-utils python-any-r1
585 +
586 +DESCRIPTION="Modular patch bay for JACK-based audio and MIDI systems"
587 +HOMEPAGE="http://drobilla.net/software/patchage"
588 +SRC_URI="http://download.drobilla.net/${P}.tar.bz2"
589 +
590 +LICENSE="GPL-2"
591 +SLOT="0"
592 +KEYWORDS="~amd64 ~x86"
593 +IUSE="alsa debug jack-dbus session"
594 +
595 +RDEPEND=">=dev-cpp/glibmm-2.14:2
596 + >=dev-cpp/gtkmm-2.11.12:2.4
597 + >=dev-cpp/libglademm-2.6.0:2.4
598 + dev-cpp/libgnomecanvasmm:2.6
599 + >=media-libs/ganv-1.4.0
600 + virtual/jack
601 + alsa? ( media-libs/alsa-lib )
602 + jack-dbus? ( dev-libs/dbus-glib
603 + sys-apps/dbus )"
604 +DEPEND="${RDEPEND}
605 + ${PYTHON_DEPS}
606 + dev-libs/boost
607 + virtual/pkgconfig"
608 +
609 +DOCS=( AUTHORS NEWS README )
610 +
611 +src_configure() {
612 + waf-utils_src_configure \
613 + $(use debug && echo "--debug") \
614 + $(use alsa || echo "--no-alsa") \
615 + $(use jack-dbus && echo "--jack-dbus") \
616 + $(use session && echo "--jack-session-manage")
617 +}
618
619 diff --git a/media-sound/rosegarden/Manifest b/media-sound/rosegarden/Manifest
620 new file mode 100644
621 index 0000000..8ed579c
622 --- /dev/null
623 +++ b/media-sound/rosegarden/Manifest
624 @@ -0,0 +1,3 @@
625 +DIST rosegarden-17.04.tar.bz2 6454603 SHA256 988a6141c5b0a8e85c029f650de78bf57100c4d778c22d0194b0692584640ece SHA512 23240522cba8cc3b5d0e3b29ee5b871c911c7634d74f65d04b353f59747bdf6a1bfd9985f16ab331ea2399a797e66b2ebd110e192bb52ba4df453d42d7b8f73b WHIRLPOOL 91b7d8d74578e8666de607f55cecdfc57dde9b9b4e2367d7b5a2f1d3ae76eaf3d0ef6b62d78ae4f9f080448019caf8e0580d5c1e30f56708c9b2dcc2c3113aa9
626 +EBUILD rosegarden-17.04-r1.ebuild 1202 SHA256 d904a72c4da845efa51ba8afbf3a80efa9b1dd4c1afa84d4baab6d5b96769932 SHA512 3be5bfa03535520bff740a632080947ca32af0e106994de97fc0277987ae808c283dd64a3b4fa4103d74e463ea866e5789a9bf0dc8b2df9d93dddc3802c8a6d8 WHIRLPOOL c8db3a68cb96715008db0dbf8ce17987fd1685a1990e17b1c8fd5caf3020ce173d357d695074df701026ce00fcb2c6d17691b31b11815d3d434950a3cc51bca4
627 +MISC metadata.xml 349 SHA256 97a83e4c15e9cdbac3ca20099643e4dd0a8ba32661aa2b87febcd48445aa1613 SHA512 1790ba05a4f13f358de6890c908b2f1eb0581143063b7237220dd05aba31d16d68f2cf6c4712a08894909b7de5306d592807e9f3171b66b72fd867bd339a0cee WHIRLPOOL ff9d9c24a41d18572aa6396d46f3c2a8646663b0bca8ec7d70459a9e975d10440d63c69ad37e6b4495615c6252ca07246afbaa957115c0d1642668dc976733c7
628
629 diff --git a/media-sound/rosegarden/metadata.xml b/media-sound/rosegarden/metadata.xml
630 new file mode 100644
631 index 0000000..c399767
632 --- /dev/null
633 +++ b/media-sound/rosegarden/metadata.xml
634 @@ -0,0 +1,11 @@
635 +<?xml version="1.0" encoding="UTF-8"?>
636 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
637 +<pkgmetadata>
638 + <maintainer type="project">
639 + <email>proaudio@g.o</email>
640 + <name>Gentoo ProAudio Project</name>
641 + </maintainer>
642 + <upstream>
643 + <remote-id type="sourceforge">rosegarden</remote-id>
644 + </upstream>
645 +</pkgmetadata>
646
647 diff --git a/media-sound/rosegarden/rosegarden-17.04-r1.ebuild b/media-sound/rosegarden/rosegarden-17.04-r1.ebuild
648 new file mode 100644
649 index 0000000..5403601
650 --- /dev/null
651 +++ b/media-sound/rosegarden/rosegarden-17.04-r1.ebuild
652 @@ -0,0 +1,60 @@
653 +# Copyright 1999-2017 Gentoo Foundation
654 +# Distributed under the terms of the GNU General Public License v2
655 +
656 +EAPI=5
657 +inherit cmake-utils eutils fdo-mime gnome2-utils
658 +
659 +DESCRIPTION="MIDI and audio sequencer and notation editor"
660 +HOMEPAGE="http://www.rosegardenmusic.com/"
661 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
662 +
663 +LICENSE="GPL-2"
664 +SLOT="0"
665 +KEYWORDS="~amd64 ~ppc ~x86"
666 +IUSE="lirc"
667 +
668 +RDEPEND="
669 + dev-qt/qtgui:5
670 + dev-qt/qtcore:5
671 + dev-qt/qtwidgets:5
672 + dev-qt/qtxml:5
673 + dev-qt/qtnetwork:5
674 + dev-qt/qtprintsupport:5
675 + media-libs/ladspa-sdk:=
676 + x11-libs/libSM:=
677 + virtual/jack
678 + media-libs/alsa-lib:=
679 + >=media-libs/dssi-1.0.0:=
680 + media-libs/liblo:=
681 + media-libs/liblrdf:=
682 + sci-libs/fftw:3.0
683 + media-libs/libsamplerate:=
684 + media-libs/libsndfile:=
685 + sys-libs/zlib:=
686 + lirc? ( app-misc/lirc:= )"
687 +DEPEND="${RDEPEND}
688 + dev-qt/qttest:5
689 + virtual/pkgconfig"
690 +
691 +src_configure() {
692 + local mycmakeargs=(
693 + "-DDISABLE_LIRC=$(usex lirc OFF ON)"
694 + )
695 + cmake-utils_src_configure
696 +}
697 +
698 +pkg_preinst() {
699 + gnome2_icon_savelist
700 +}
701 +
702 +pkg_postinst() {
703 + gnome2_icon_cache_update
704 + fdo-mime_desktop_database_update
705 + fdo-mime_mime_database_update
706 +}
707 +
708 +pkg_postrm() {
709 + gnome2_icon_cache_update
710 + fdo-mime_desktop_database_update
711 + fdo-mime_mime_database_update
712 +}
713
714 diff --git a/media-sound/timidity++/Manifest b/media-sound/timidity++/Manifest
715 new file mode 100644
716 index 0000000..40d0fbd
717 --- /dev/null
718 +++ b/media-sound/timidity++/Manifest
719 @@ -0,0 +1,16 @@
720 +AUX 50timidity++-gentoo.el 180 SHA256 a5ca92074ec2b79251bf33a1fb9c4007f528c036f951c6e4fa87311d7acc11a0 SHA512 21df87bf47d56c1072fc3942f3c988293106028dd0473dd1a03b66edc4e7586a3cf5150abdf3c932e44dc32a97ce9cbaa8016dcb28e5e60195f1fe9418ab3bd6 WHIRLPOOL 6b48cab95dc59524d11972ce36e81ac1b3bc13f38a4a45eb9e1098b3c2a47ee300ba82e618edb7f518544477ff5d34de1a47a7fc4bfe1659d5308ef6ae5f1764
721 +AUX conf.d.timidity.2 972 SHA256 a3a6fc74fc1353f2c5e7eda51a244fb3212cd5f33b407fe5ce1245ca2757593e SHA512 67668a6a00408ecc1e467be8f372b78be318e940d75c0fb856fadc5e5446e5d1a461c004856ab851968d6c146e662e766c09da6b815fd14b7675b92b975cabd9 WHIRLPOOL fe67d80414a6b4a88eae3bc3ae35a466f8e66378aa9190b804852d613392ba765d0e02b7743ee890ac37cdcb986fbf1b868c6f1cabf640e66cdd7b91c2b12c2c
722 +AUX init.d.timidity.4 510 SHA256 fb7eb433af9fa7e9df6eede45e748a0f42c425d6945f63d9085c8e3c140f4b5f SHA512 597b79bbeac3c3365cf3b0d6defe7b3f031bf1acbefd33094e76f07394a4d5b21a79ce62c276928fed68de1eb02a30ec1eb8204be6d034d8c2dd92145e82faa3 WHIRLPOOL 3fa4980d8036e5953383a9d823c8dc0098b46ebf628731b94471072881cc89106e21344e457c9ca7d7b27786276444611d17df28edd3165416f0434b36199459
723 +AUX timidity++-2.14.0-ar.patch 822 SHA256 83008c1c49e712de73d5757da950afb61f576aa40db75b6861e014737a8e50dd SHA512 b0c26daa94361bc471034431c0632052ceb2a8e001caabfb7e08bd3f401932724981dc2c903132f9319d16038f7bac05843ca8da1112a5a3bab626c88244514b WHIRLPOOL 2bfec4e128f58aa8cc14cce6070d19f79ca014cffd16597eb5fc73ad0970436c4125c016658cb4c694060c0375b5f52d64770ce5db9dc214ac168ab61d0e8424
724 +AUX timidity++-2.14.0-configure-flags.patch 4241 SHA256 4f3f9f2b3c652e61726eda54c43a18d32dca5322b996b4e27d8e44f0b202504c SHA512 be9ca5a580a47af5eb29e180c81b141628692e2cb538113b3ec596e4b800fb6d4792fa4c72921414ba41a8e6932ae655e9b9a1428021333471e2929fdab07b17 WHIRLPOOL ae0316647291b4081290ca491ef544c8bd073c10d344fce92dfe7af5618b58b7f2c1ca72e5e5d57b7ebfd87f82ce418e58bff95d43e4cac545d19deed11a371b
725 +AUX timidity++-2.14.0-params.patch 712 SHA256 cf78561c620f55c6dfc21f3650e9d0e55603aa991aef9c2179363bd3d608191f SHA512 63e2a1be6fec715680230de158d1fb09d5288a068288ac33b37320491ac29ec1c66f60d05ffb352c4a192540163e9c93369115fe606aa25295b727332e92874c WHIRLPOOL a6de7b97de6282980a2850636fc72a4ca47efc79afabe81417426015126d1e4f2cabbf040ca6b559b924d4ae44fe3ca930fb3a3042d54845d0c0095b0b7371d0
726 +AUX timidity++-2.14.0-pkg-config.patch 3836 SHA256 a2daa38a4da6240e76c52c19e02ea5ccca1419ab45950c8df37248c0e5c4dd1c SHA512 2dba5ca948d31d4498f44f8b4c67d59294e7cf722652b62f9502222867f1c93fa491b9741c049bde7ac976c74e52639bfc359a88e2c7f3728b723e272e40692d WHIRLPOOL f05b9476760061b7663e3aa12ef187e4466c26abab96d24d7c6f74d5f8b818dbc5cf2d399111e70310be1da74858c65499885ca3dbbf670d741b61cbaac1d498
727 +AUX timidity++-2.14.0-revert-for-required-ctl_speana_data-function.patch 697 SHA256 1c0c5f672679750289b65bd8bfb42bd6ced489c2b085b2a4024351548499e9b5 SHA512 d5716b7977f5c013c61da2e9f3e233b17e3b4b95cb14b2e459bae3c69316440be899278b44566a1640d8d82b683811348c22f5e859512c523baee4939bc2a497 WHIRLPOOL 58e2ac706564baa1520c586420dd3ac044eb468812d74b35455c0469b36c7c9a6581d5db26c2b2c0ee66f919708f55e1b352de3696ab77ef6ef33a665ff4f504
728 +AUX timidity++-2.14.0-tcltk86.patch 308 SHA256 aae1aa02206ffa62e1e48746d59d965ba0d3eec4096c4e7ab70afc2628871505 SHA512 37e8a97fe1a09382234011ab253443ba9e9be78cdb7bb4dd03ee5756bda8e614bc627a091d10b480a3ef5bca9e3961c2f14e92a548782145d2bb61da991d5f62 WHIRLPOOL 2efae14055ce713ee8f5079c5829b8a06e4cfa1af8ddda9ec620d328d00ac53817795ef393f6d661b2f60b859cde3a4d8a14f8773906c497f5069cb09f4a0792
729 +AUX timidity.cfg-r1 669 SHA256 50fb27ea57cc225fcb8e8368e8afc130f2bba22d0787ebb6beacd2112550f9ce SHA512 98f0690bda6deed6022e97e74a6114334d5f965d646d7c7d150ac177f6eb78277e931ed0b4c5613ef16ba648eaad66a3ed72ed933ca936698ca81365151b223b WHIRLPOOL d2e0e504275c59177b936591c703b5ad1f75e9e00ed0331d3c5a2c720bf6b85f39e4e531b5639f83be74f24144c3dd00b897e51de07d2248c268f342b8b52475
730 +AUX timidity.desktop.2 257 SHA256 9e9d89fe6c03067d90d2786f0c41415cfa379b6d8635e1b206fffd7dd68e65aa SHA512 34312594866d77244d0eb77b4111a8e7998bd20bcb3542b036b1626d73bf4672eef677a926badceaaee517f1d32752b3e3b1ea4d3f2cc0703d66c1c740e0dc2e WHIRLPOOL 8fe3b0df3377c9146399c6b2cad7c9fa497dfae433cd903843caef1eb21ac2bc1b39631d5334ab4bc033e1e3e4525bfaecefe4c8f73b1a32d42b98d2b7fb8a55
731 +AUX timidity.service 190 SHA256 e0490abaded5d7a7d6c82e6a61669f486461c1e39c7d64ddd63b056f7b888c2f SHA512 1022c1e37e2a97fba414673860ec89bc146da208981dd50d9486c525b47c74ae146acef2d75ceec26335c3ab98b2c928ce480a161637990ecd737507a6c21b49 WHIRLPOOL 895c0bc5f8a6f0730f4c24fb7a4c68dee6a1e72abf4c9252a912752c047fae22ef14523a6a83d664e5faeb96cc8534d95dde000382519a9fb7f9bd741901964f
732 +AUX timidity.xpm 1522 SHA256 4b085a4b8af1648495dccc36bcb7b7637318ffb3e9c2011cc8ac43119a8b4db6 SHA512 1630fc235e450e5420c598357ad98eed6f04b1d1035fd6284dfeb2e633ce5d80135f89ea593d58b4eac2b9405383787e4d891b9c22ff8b5ac3ece64e9abe7d4e WHIRLPOOL 8d1279dac550131b15639602972861b90e724f5391eefa7f72b3c190681b2e5a081ab2380e3717e94ed0b05b4738bad627021588d872d76ff48ff8e8a142f56a
733 +DIST TiMidity++-2.14.0.tar.xz 1356476 SHA256 abf0c8367959e85c9e635b8fbd5183fc27bd380e0ef5e45de4158784538c86fc SHA512 d8fc06fa36e4dd42de80c61943da4cd9aec5f8aaf31057a9ededa633d2d48e64c4e53391378d82a7a46ffe4f96c756b010ea9727270f80b134ae1f8bad535bd3 WHIRLPOOL 0031a0e6519ead34c73ed3383d1d74b91b3e25c257854bd3325d25ec9c00bb55c036936ef4ef162ad13c255fefc4e46b802173e93b7ed575c92cf076ab03929b
734 +EBUILD timidity++-2.14.0-r3.ebuild 5075 SHA256 5e1af52a7f6bace1fadc02cb9d3f9749a28de5663e77ff1f478c75cc71fe4805 SHA512 75bf9bc71cdc0dc4a588f87ead59aa59e0682da2948343e2de372925b6f075d8b91e5ddecd975339439aa6592febed0b8fc2ffd5321a95ee0698a1d43ff0625a WHIRLPOOL 385e1215b5cf2a1139b480dd659c2f191ca816f513c5ae2dacc574ceac6c8982e8d376f3b5593f3d6b430e155991977a12077b3a87bc1576ca514022806de321
735 +MISC metadata.xml 331 SHA256 8c8628641af5f30b12e441fd2ec4adf08f9e5a534e95993fdd103a6e6ef2cc20 SHA512 b4559e92a59ba70b25863304bbdc59225c6ccbf3ee9ab8516db6987a19e8b5b7b6ea95f40c9ff55ed33c194ab174360d5f8fd6bfafa43290bb97a3a2093289e3 WHIRLPOOL a452fd1eede4307554e273fb7ff4eb6f82d368608cf44f54eab986ba7c7777d3fa78d150b5ed936e3f11b3d8c0b70952cbe8c0bdb860955dd054c31d2cf182be
736
737 diff --git a/media-sound/timidity++/files/50timidity++-gentoo.el b/media-sound/timidity++/files/50timidity++-gentoo.el
738 new file mode 100644
739 index 0000000..3f9e35c
740 --- /dev/null
741 +++ b/media-sound/timidity++/files/50timidity++-gentoo.el
742 @@ -0,0 +1,6 @@
743 +
744 +;;; timidity++ site-lisp configuration
745 +
746 +(add-to-list 'load-path "@SITELISP@")
747 +(autoload 'timidity "timidity" "TiMidity Interface" t)
748 +(setq timidity-prog-path "/usr/bin/timidity")
749
750 diff --git a/media-sound/timidity++/files/conf.d.timidity.2 b/media-sound/timidity++/files/conf.d.timidity.2
751 new file mode 100644
752 index 0000000..0a153ca
753 --- /dev/null
754 +++ b/media-sound/timidity++/files/conf.d.timidity.2
755 @@ -0,0 +1,27 @@
756 +# TIMIDITY_OPTS
757 +# Command line arguements to be passed to timidity. -iA is always used
758 +# Common options:
759 +# -Os : Output to ALSA pcm device
760 +# -Oe : Output to esd
761 +# -On : Output to NAS
762 +#
763 +# -B<n>,<m> : Set number of buffer fragments(n), and buffer size(2^m)
764 +#
765 +# -EFreverb=0 : Disable MIDI reverb effect control
766 +# -EFreverb=1[,level] : Enable MIDI reverb effect control
767 +# `level' is optional to specify reverb level [0..127]
768 +# This effect is only available in stereo
769 +# (default)
770 +# -EFreverb=2 : Global reverb effect
771 +
772 +TIMIDITY_OPTS="-B2,8 -Os -EFreverb=0"
773 +
774 +# TIMIDITY_PCM_NAME
775 +# This option can be used to choose an alternate ALSA pcm device. This will
776 +# be most useful for users of the dmix alsa plugin or those with multiple
777 +# cards. If you don't know what this is, chances are you want the default.
778 +
779 +#TIMIDITY_PCM_NAME="default"
780 +
781 +#LADSPA plugins library path
782 +LADSPA_PATH="/usr/lib/ladspa"
783
784 diff --git a/media-sound/timidity++/files/init.d.timidity.4 b/media-sound/timidity++/files/init.d.timidity.4
785 new file mode 100644
786 index 0000000..1863a01
787 --- /dev/null
788 +++ b/media-sound/timidity++/files/init.d.timidity.4
789 @@ -0,0 +1,20 @@
790 +#!/sbin/openrc-run
791 +
792 +depend() {
793 + after alsasound esound
794 +}
795 +
796 +start() {
797 + ebegin "Starting TiMidity++ Virtual Midi Sequencer"
798 + test -n "$TIMIDITY_PCM_NAME" && export TIMIDITY_PCM_NAME
799 + start-stop-daemon --start --background --chdir /usr/share/timidity \
800 + --user timidity --group audio --make-pidfile --pidfile /var/run/timidity.pid \
801 + --exec /usr/bin/timidity -- -iA ${TIMIDITY_OPTS}
802 + eend $?
803 +}
804 +
805 +stop() {
806 + ebegin "Stopping TiMidity++"
807 + start-stop-daemon --stop --quiet --pidfile /var/run/timidity.pid
808 + eend $?
809 +}
810
811 diff --git a/media-sound/timidity++/files/timidity++-2.14.0-ar.patch b/media-sound/timidity++/files/timidity++-2.14.0-ar.patch
812 new file mode 100644
813 index 0000000..5c58cfc
814 --- /dev/null
815 +++ b/media-sound/timidity++/files/timidity++-2.14.0-ar.patch
816 @@ -0,0 +1,23 @@
817 +https://bugs.gentoo.org/468176
818 +
819 +--- a/configure.in
820 ++++ b/configure.in
821 +@@ -167,6 +167,7 @@ AC_PROG_CC
822 + AC_PROG_GCC_TRADITIONAL
823 + AC_PROG_INSTALL
824 + AC_PROG_AWK
825 ++AC_CHECK_TOOL([AR], [ar], :)
826 + AC_PROG_RANLIB
827 + AC_PROG_LN_S
828 + CHECK_COMPILER_OPTION(rdynamic)
829 +--- a/timidity/Makefile.am
830 ++++ b/timidity/Makefile.am
831 +@@ -417,7 +417,7 @@ calcnewt$(EXEEXT): $(calcnewt_OBJECTS) $(calcnewt_DEPENDENCIES)
832 + $(LINK) $(calcnewt_LDFLAGS) $(calcnewt_OBJECTS) $(calcnewt_LDADD) $(LIBS)
833 + timidity$(EXEEXT): $(timidity_OBJECTS) $(timidity_DEPENDENCIES)
834 + @rm -f timidity$(EXEEXT)
835 +- ar -cru timidity.exe $(timidity_LDFLAGS) $(timidity_OBJECTS) $(timidity_LDADD)
836 ++ $(AR) -cru timidity.exe $(timidity_LDFLAGS) $(timidity_OBJECTS) $(timidity_LDADD)
837 + else
838 + calcnewt$(EXEEXT): $(calcnewt_OBJECTS) $(calcnewt_DEPENDENCIES)
839 + @rm -f calcnewt$(EXEEXT)
840
841 diff --git a/media-sound/timidity++/files/timidity++-2.14.0-configure-flags.patch b/media-sound/timidity++/files/timidity++-2.14.0-configure-flags.patch
842 new file mode 100644
843 index 0000000..e2e77e4
844 --- /dev/null
845 +++ b/media-sound/timidity++/files/timidity++-2.14.0-configure-flags.patch
846 @@ -0,0 +1,140 @@
847 +do not add -L/-I flags pointing to the paths given by --prefix.
848 +there's no need and it breaks multilib and cross-compiling.
849 +
850 +patch by Mike Frysinger <vapier@g.o>
851 +
852 +--- a/autoconf/libFLAC.m4
853 ++++ b/autoconf/libFLAC.m4
854 +@@ -25,24 +25,8 @@ AC_ARG_ENABLE(libFLACtest,
855 + [Do not try to compile and run a test libFLAC program]),,
856 + [enable_libFLACtest=yes])
857 +
858 +- if test "x$libFLAC_libraries" != "x" ; then
859 +- LIBFLAC_LIBS="-L$libFLAC_libraries"
860 +- elif test "x$libFLAC_prefix" != "x" ; then
861 +- LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
862 +- elif test "x$prefix" != "xNONE" ; then
863 +- LIBFLAC_LIBS="-L$prefix/lib"
864 +- fi
865 +-
866 + LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
867 +
868 +- if test "x$libFLAC_includes" != "x" ; then
869 +- LIBFLAC_CFLAGS="-I$libFLAC_includes"
870 +- elif test "x$libFLAC_prefix" != "x" ; then
871 +- LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
872 +- elif test "$prefix" != "xNONE"; then
873 +- LIBFLAC_CFLAGS="-I$prefix/include"
874 +- fi
875 +-
876 + AC_MSG_CHECKING(for libFLAC)
877 + no_libFLAC=""
878 +
879 +--- a/autoconf/libOggFLAC.m4
880 ++++ b/autoconf/libOggFLAC.m4
881 +@@ -25,24 +25,8 @@ AC_ARG_ENABLE(libOggFLACtest,
882 + [Do not try to compile and run a test libOggFLAC program]),,
883 + [enable_libOggFLACtest=yes])
884 +
885 +- if test "x$libOggFLAC_libraries" != "x" ; then
886 +- LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
887 +- elif test "x$libOggFLAC_prefix" != "x" ; then
888 +- LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
889 +- elif test "x$prefix" != "xNONE" ; then
890 +- LIBOGGFLAC_LIBS="-L$prefix/lib"
891 +- fi
892 +-
893 + LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
894 +
895 +- if test "x$libOggFLAC_includes" != "x" ; then
896 +- LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
897 +- elif test "x$libOggFLAC_prefix" != "x" ; then
898 +- LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
899 +- elif test "$prefix" != "xNONE"; then
900 +- LIBOGGFLAC_CFLAGS="-I$prefix/include"
901 +- fi
902 +-
903 + AC_MSG_CHECKING(for libOggFLAC)
904 + no_libOggFLAC=""
905 +
906 +--- a/autoconf/ogg.m4
907 ++++ b/autoconf/ogg.m4
908 +@@ -26,24 +26,8 @@ AC_ARG_ENABLE(oggtest,
909 + [Do not try to compile and run a test Ogg program]),,
910 + [enable_oggtest=yes])
911 +
912 +- if test "x$ogg_libraries" != "x" ; then
913 +- OGG_LIBS="-L$ogg_libraries"
914 +- elif test "x$ogg_prefix" != "x" ; then
915 +- OGG_LIBS="-L$ogg_prefix/lib"
916 +- elif test "x$prefix" != "xNONE" ; then
917 +- OGG_LIBS="-L$prefix/lib"
918 +- fi
919 +-
920 + OGG_LIBS="$OGG_LIBS -logg"
921 +
922 +- if test "x$ogg_includes" != "x" ; then
923 +- OGG_CFLAGS="-I$ogg_includes"
924 +- elif test "x$ogg_prefix" != "x" ; then
925 +- OGG_CFLAGS="-I$ogg_prefix/include"
926 +- elif test "x$prefix" != "xNONE"; then
927 +- OGG_CFLAGS="-I$prefix/include"
928 +- fi
929 +-
930 + AC_MSG_CHECKING(for Ogg)
931 + no_ogg=""
932 +
933 +--- a/autoconf/vorbis.m4
934 ++++ b/autoconf/vorbis.m4
935 +@@ -27,27 +27,10 @@ AC_ARG_ENABLE(vorbistest,
936 + [Do not try to compile and run a test Vorbis program]),
937 + , [enable_vorbistest=yes])
938 +
939 +- if test "x$vorbis_libraries" != "x" ; then
940 +- VORBIS_LIBS="-L$vorbis_libraries"
941 +- elif test "x$vorbis_prefix" != "x" ; then
942 +- VORBIS_LIBS="-L$vorbis_prefix/lib"
943 +- elif test "x$prefix" != "xNONE"; then
944 +- VORBIS_LIBS="-L$prefix/lib"
945 +- fi
946 +-
947 + VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
948 + VORBISFILE_LIBS="-lvorbisfile"
949 + VORBISENC_LIBS="-lvorbisenc"
950 +
951 +- if test "x$vorbis_includes" != "x" ; then
952 +- VORBIS_CFLAGS="-I$vorbis_includes"
953 +- elif test "x$vorbis_prefix" != "x" ; then
954 +- VORBIS_CFLAGS="-I$vorbis_prefix/include"
955 +- elif test "x$prefix" != "xNONE"; then
956 +- VORBIS_CFLAGS="-I$prefix/include"
957 +- fi
958 +-
959 +-
960 + AC_MSG_CHECKING(for Vorbis)
961 + no_vorbis=""
962 +
963 +--- a/configure.in
964 ++++ b/configure.in
965 +@@ -91,21 +91,6 @@ else
966 + x_config_flag=yes
967 + fi
968 +
969 +-# Checking gcc environment
970 +-for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
971 +- LDFLAGS="$LDFLAGS -L${i}"
972 +-done
973 +-for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
974 +- CPPFLAGS="$CPPFLAGS -I${i}"
975 +-done
976 +-
977 +-# add $prefix if specified.
978 +-if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
979 +- LDFLAGS="-L$prefix/lib $LDFLAGS"
980 +- SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
981 +- CPPFLAGS="-I$prefix/include $CPPFLAGS"
982 +-fi
983 +-
984 + dnl add --with-includes, --with-libraries
985 + AC_ARG_WITH(includes,
986 + AS_HELP_STRING([--with-includes=DIR], [Specify include directories (colon separated)]),
987
988 diff --git a/media-sound/timidity++/files/timidity++-2.14.0-params.patch b/media-sound/timidity++/files/timidity++-2.14.0-params.patch
989 new file mode 100644
990 index 0000000..d56448b
991 --- /dev/null
992 +++ b/media-sound/timidity++/files/timidity++-2.14.0-params.patch
993 @@ -0,0 +1,22 @@
994 +--- configure.in
995 ++++ configure.in
996 +@@ -2245,10 +2245,15 @@
997 +
998 + AM_CONDITIONAL(W32READDIR, test "x$W32READDIR" = "xyes")
999 +
1000 +-SET_UNIQ_WORDS(LDFLAGS,$LDFLAGS)
1001 +-SET_UNIQ_WORDS(SHLDFLAGS,$SHLDFLAGS)
1002 +-SET_UNIQ_WORDS(CFLAGS,$EXTRACFLAGS $CFLAGS)
1003 +-SET_UNIQ_WORDS(CPPFLAGS,$CPPFLAGS $EXTRADEFS)
1004 ++# These break flags like --param wrt #276433
1005 ++# SET_UNIQ_WORDS(LDFLAGS,$LDFLAGS)
1006 ++# SET_UNIQ_WORDS(SHLDFLAGS,$SHLDFLAGS)
1007 ++# SET_UNIQ_WORDS(CFLAGS,$EXTRACFLAGS $CFLAGS)
1008 ++# SET_UNIQ_WORDS(CPPFLAGS,$CPPFLAGS $EXTRADEFS)
1009 ++LDFLAGS="$LDFLAGS"
1010 ++SHLDFLAGS="$SHLDFLAGS"
1011 ++CFLAGS="$EXTRACFLAGS $CFLAGS"
1012 ++CPPFLAGS="$CPPFLAGS $EXTRADEFS"
1013 +
1014 + if test "x$oss_device" != x; then
1015 + AC_DEFINE_UNQUOTED(OSS_DEVICE,"$oss_device", oss device name)
1016
1017 diff --git a/media-sound/timidity++/files/timidity++-2.14.0-pkg-config.patch b/media-sound/timidity++/files/timidity++-2.14.0-pkg-config.patch
1018 new file mode 100644
1019 index 0000000..15d6a4e
1020 --- /dev/null
1021 +++ b/media-sound/timidity++/files/timidity++-2.14.0-pkg-config.patch
1022 @@ -0,0 +1,109 @@
1023 +use $PKG_CONFIG rather than `pkg-config`
1024 +
1025 +https://bugs.gentoo.org/497362
1026 +get ncurses info via pkg-config while we're at it
1027 +
1028 +patch by Mike Frysinger <vapier@g.o>
1029 +
1030 +--- a/configure.in
1031 ++++ b/configure.in
1032 +@@ -148,6 +148,7 @@ AC_SUBST(xawresdir)
1033 +
1034 + # Checks for programs.
1035 + AM_PATH_LISPDIR
1036 ++PKG_PROG_PKG_CONFIG
1037 + AC_PROG_CC
1038 + AC_PROG_GCC_TRADITIONAL
1039 + AC_PROG_INSTALL
1040 +@@ -1318,8 +1319,8 @@ AC_MSG_CHECKING(enable_audio=jack)
1041 + if test "x$au_enable_jack" = xyes; then
1042 + AC_MSG_RESULT(yes)
1043 + SYSEXTRAS="$SYSEXTRAS jack_a.c"
1044 +- EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
1045 +- EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
1046 ++ EXTRALIBS="$EXTRALIBS $(${PKG_CONFIG} --libs jack)"
1047 ++ EXTRADEFS="$EXTRADEFS -DAU_JACK $(${PKG_CONFIG} --cflags jack)"
1048 + else
1049 + AC_MSG_RESULT(no)
1050 + fi
1051 +@@ -1635,60 +1636,8 @@ dnl ncurses
1052 + AM_CONDITIONAL(ENABLE_NCURSES, false)
1053 + CONFIG_INTERFACE(ncurses,NCURSES,n,
1054 + AS_HELP_STRING([--enable-ncurses], [Enable ncurses interface (default is no)]),
1055 +- [ AC_CHECK_HEADERS(ncurses.h ncurses/curses.h curses.h)
1056 +-
1057 +-dnl #include <ncurses/curses.h> is failure on Plamo Linux 1.3/ncurses 1.9.9e
1058 +-dnl because <ncurses/curses.h> includes <unctrl.h>:
1059 +-dnl /usr/include/ncurses/curses.h:34: unctrl.h: No such file or directory
1060 +-dnl But surely there is unctl.h at /usr/include/ncurses/unctrl.h.
1061 +-dnl configure must check ncurses header with -I/usr/include/ncurses option.
1062 +-
1063 +- case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
1064 +- *yes*);;
1065 +- *) for i in /usr/include /usr/local/include; do
1066 +- if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
1067 +- AC_MSG_WARN(ncurses test is failure. Please check config.h and common.makefile later)
1068 +- CPPFLAGS="$CPPFLAGS -I$i/ncurses"
1069 +- break
1070 +- fi
1071 +- done
1072 +- ;;
1073 +- esac
1074 +-
1075 +- AC_CHECK_LIB(ncurses,initscr,lib_curses_opt=-lncurses,
1076 +- [ dnl checking pdcurses
1077 +- AC_CHECK_LIB(curses,PDC_set_ctrl_break,
1078 +- [ lib_curses_opt=-lcurses
1079 +- AC_DEFINE(USE_PDCURSES,1,Define to 1 if you use PDcurses)
1080 +- lib_user32_opt="$lib_user32_test"
1081 +- ],
1082 +- [ dnl checking libpdcurses
1083 +- AC_CHECK_LIB(pdcurses,PDC_set_ctrl_break,
1084 +- [ lib_curses_opt=-lpdcurses
1085 +- AC_DEFINE(USE_PDCURSES,1,Define to 1 if you use PDcurses)
1086 +- lib_user32_opt="$lib_user32_test"
1087 +- ],
1088 +- [ dnl OpenBSD use -lcurses instead of -lncurses.
1089 +- case "$target" in
1090 +- *openbsd*)
1091 +- AC_CHECK_LIB(curses,initscr,lib_curses_opt=-lcurses,
1092 +- [ AC_MSG_WARN(ncurses interface is not enabled)
1093 +- enable_ncurses=no ])
1094 +- ;;
1095 +- *)
1096 +- if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
1097 +- lib_curses_opt=libpdcurses.lib
1098 +- AC_DEFINE(USE_PDCURSES,1,Define to 1 if you use PDcurses)
1099 +- else
1100 +- AC_MSG_WARN(ncurses interface is not enabled)
1101 +- enable_ncurses=no
1102 +- fi
1103 +- ;;
1104 +- esac
1105 +- ])
1106 +- ],
1107 +- $lib_user32_test)
1108 +- ])
1109 ++ [ CPPFLAGS="$CPPFLAGS $(${PKG_CONFIG} --cflags ncurses)"
1110 ++ lib_curses_opt=$(${PKG_CONFIG} --libs ncurses)
1111 + ],
1112 + [ LIBS="$LIBS $lib_curses_opt"
1113 + case "$target" in
1114 +@@ -1855,7 +1804,7 @@ CONFIG_INTERFACE(xaw,XAW,a,
1115 + lib_xmu_opt=-lXmu
1116 + lib_xt_opt=-lXt
1117 + if test "x$enable_xft" = "xyes" && test "x$have_xaw" != "xno"; then
1118 +- XFT_CFLAGS="$(pkg-config --cflags xft)";
1119 ++ XFT_CFLAGS="$(${PKG_CONFIG} --cflags xft)";
1120 + EXTRACT_CPPFLAGS(CPPFLAGS,CFLAGS,$XFT_CFLAGS)
1121 + lib_xft_opt="-lXft";
1122 + fi
1123 +@@ -1909,7 +1858,7 @@ CONFIG_INTERFACE(xaw,XAW,a,
1124 + ;;
1125 + esac
1126 + if test "x$enable_xft" = "xyes" && test "x$have_xaw" != "xno"; then
1127 +- XFT_CFLAGS="$(pkg-config --cflags xft)";
1128 ++ XFT_CFLAGS="$(${PKG_CONFIG} --cflags xft)";
1129 + EXTRACT_CPPFLAGS(CPPFLAGS,CFLAGS,$XFT_CFLAGS)
1130 + a_so_libs="$a_so_libs -lXft";
1131 + fi
1132
1133 diff --git a/media-sound/timidity++/files/timidity++-2.14.0-revert-for-required-ctl_speana_data-function.patch b/media-sound/timidity++/files/timidity++-2.14.0-revert-for-required-ctl_speana_data-function.patch
1134 new file mode 100644
1135 index 0000000..a83a7db
1136 --- /dev/null
1137 +++ b/media-sound/timidity++/files/timidity++-2.14.0-revert-for-required-ctl_speana_data-function.patch
1138 @@ -0,0 +1,28 @@
1139 +This will revert part of the commit from:
1140 +
1141 +http://timidity.git.sourceforge.net/git/gitweb.cgi?p=timidity/timidity;a=commit;h=e73b53437dbc1e57e61dd4d0c1407784797b08d9
1142 +
1143 +Because otherwise TiMidity++ simply won't build as per:
1144 +
1145 +../interface/libinterface.a(xskin_c.o): In function `ctl_event':
1146 +xskin_c.c:(.text+0x17c): undefined reference to `ctl_speana_data'
1147 +collect2: error: ld returned 1 exit status
1148 +
1149 +--- interface/xskin_c.c
1150 ++++ interface/xskin_c.c
1151 +@@ -228,7 +228,6 @@
1152 + }
1153 + }
1154 +
1155 +-#if 0
1156 + static void ctl_speana_data(double *val, int size) {
1157 +
1158 + /* 0 <= val[n] <= (AMP*NCOLOR) */
1159 +@@ -280,7 +279,6 @@
1160 +
1161 + return;
1162 + }
1163 +-#endif
1164 +
1165 + /*ARGSUSED*/
1166 + static int ctl_open(int using_stdin, int using_stdout) {
1167
1168 diff --git a/media-sound/timidity++/files/timidity++-2.14.0-tcltk86.patch b/media-sound/timidity++/files/timidity++-2.14.0-tcltk86.patch
1169 new file mode 100644
1170 index 0000000..ea2c0ee
1171 --- /dev/null
1172 +++ b/media-sound/timidity++/files/timidity++-2.14.0-tcltk86.patch
1173 @@ -0,0 +1,13 @@
1174 +http://bugs.gentoo.org/451296
1175 +
1176 +--- interface/tk_c.c
1177 ++++ interface/tk_c.c
1178 +@@ -913,7 +913,7 @@
1179 + vsnprintf(buf, sizeof(buf), fmt, ap);
1180 + Tcl_Eval(my_interp, buf);
1181 + va_end(ap);
1182 +- return my_interp->result;
1183 ++ return Tcl_GetStringResult(my_interp);
1184 + }
1185 +
1186 + static const char *v_get2(const char *v1, const char *v2)
1187
1188 diff --git a/media-sound/timidity++/files/timidity.cfg-r1 b/media-sound/timidity++/files/timidity.cfg-r1
1189 new file mode 100644
1190 index 0000000..3923fb2
1191 --- /dev/null
1192 +++ b/media-sound/timidity++/files/timidity.cfg-r1
1193 @@ -0,0 +1,24 @@
1194 +##############################################################################
1195 +#
1196 +# timidity-update core configuration file
1197 +#
1198 +# Easy process:
1199 +#
1200 +# 1. Change directory to patch directory
1201 +# 2. Source current/timidity.cfg
1202 +#
1203 +# Current patch set will always be symlinked to current, so make sure that the
1204 +# proper timidity.cfg is in there
1205 +#
1206 +#
1207 +# - source /usr/share/timidity
1208 +# - source ~/.timidity/current
1209 +# - Make ~/.timidity/current point to the current patch set, or to whatever
1210 +# the individual user sets
1211 +# - If ~/.timidity/current isn't found, it will try
1212 +# /usr/share/timidity/current
1213 +#
1214 +
1215 +dir /usr/share/timidity
1216 +dir ~/.timidity
1217 +source current/timidity.cfg
1218
1219 diff --git a/media-sound/timidity++/files/timidity.desktop.2 b/media-sound/timidity++/files/timidity.desktop.2
1220 new file mode 100644
1221 index 0000000..00c7f1d
1222 --- /dev/null
1223 +++ b/media-sound/timidity++/files/timidity.desktop.2
1224 @@ -0,0 +1,10 @@
1225 +[Desktop Entry]
1226 +Comment=Software sound renderer (MIDI sequencer, MOD player)
1227 +Name=TiMidity++ MIDI sequencer
1228 +Terminal=true
1229 +NoDisplay=true
1230 +Type=Application
1231 +Exec=timidity %F
1232 +Categories=AudioVideo;Audio;Sequencer;
1233 +Icon=timidity
1234 +MimeType=audio/midi;audio/x-mod;
1235
1236 diff --git a/media-sound/timidity++/files/timidity.service b/media-sound/timidity++/files/timidity.service
1237 new file mode 100644
1238 index 0000000..420d888
1239 --- /dev/null
1240 +++ b/media-sound/timidity++/files/timidity.service
1241 @@ -0,0 +1,10 @@
1242 +[Unit]
1243 +Description=TiMidity++ Daemon
1244 +After=sound.target
1245 +
1246 +[Service]
1247 +EnvironmentFile=-/etc/conf.d/timidity
1248 +ExecStart=/usr/bin/timidity -iA $TIMIDITY_OPTS
1249 +
1250 +[Install]
1251 +WantedBy=multi-user.target
1252
1253 diff --git a/media-sound/timidity++/files/timidity.xpm b/media-sound/timidity++/files/timidity.xpm
1254 new file mode 100644
1255 index 0000000..dc56a6d
1256 --- /dev/null
1257 +++ b/media-sound/timidity++/files/timidity.xpm
1258 @@ -0,0 +1,56 @@
1259 +/* XPM */
1260 +static char * timidity_xpm[] = {
1261 +"32 32 21 1",
1262 +" c None",
1263 +". c #333399",
1264 +"+ c #000000",
1265 +"@ c #666699",
1266 +"# c #FFFFFF",
1267 +"$ c #DDDDDD",
1268 +"% c #888888",
1269 +"& c #999999",
1270 +"* c #7777A4",
1271 +"= c #4949A4",
1272 +"- c #BBBBBB",
1273 +"; c #111111",
1274 +"> c #444444",
1275 +", c #2B2B2B",
1276 +"' c #555555",
1277 +") c #FF9999",
1278 +"! c #FF9966",
1279 +"~ c #666666",
1280 +"{ c #333333",
1281 +"] c #FF0000",
1282 +"^ c #00FF00",
1283 +" . .. ",
1284 +" . ... + ",
1285 +" . ..@ +#+ + ",
1286 +" .@@.. +#$#+%#+ ",
1287 +" ....@ +#$#$#+$#+ ",
1288 +" .... +#$#$#$#+$#+ ",
1289 +" @...@ +#$#$#$#$#+$#+ ",
1290 +" @.... +#$#$#$#$#$#+$#+ ",
1291 +" @...@. %#$#$#$#$#$#$#&$#& ",
1292 +" @...@ +++++++$#++$+++++&$++ ",
1293 +" ...@ ++$++#++$++#++$$++$++$ ",
1294 +" @..@ %++#++$++#++$++$&++$++ ",
1295 +" ... %#++$++#++$++#++&$++#++ ",
1296 +"*..@ .&++#++$++#++$++++++&++ ",
1297 +"=.. ...&#$#$#$#$#$#&-$#$& ",
1298 +"=.. ...+++++$++#+$+++++++ ++ ",
1299 +"=.. .. .&#$#$#$$&-$#&& ",
1300 +"=.. .. . +&$#$&+-$#&+ ",
1301 +" ;;;;;;;;;;;;;;;;;;;>;;;;;;; ",
1302 +",#%%%%%%%%%%%%%%%%%';#%%%%%'+ ",
1303 +",%+++++++++++++++''>;%'''''>+ ",
1304 +",%+#)))))))))))!;''>;%'%~+'>+ ",
1305 +",'+);;!;!!;!!!!!;>>>;'>+++>>+ ",
1306 +",'+)>!!;!!;!;!;!;>>>;'>>>>>>+ ",
1307 +",'+!!!!!!!!!!!!!;>>{;'>%~+>>+ ",
1308 +",'+;;;;;;;;;;;;;'>>{;'>+++>>+ ",
1309 +",'>>>>>>>>>>>>>>>>>{;'>>>>>>+> ",
1310 +",'%~'>>%~'>>'>'>'>>{;'>%~+>{++> ",
1311 +",']++>>^++>>+>+>+>>{;'>+++>{++>>",
1312 +",'>>>>>>>>>>>>>>{{{';'>>{{{'+>>~",
1313 +" +++++++++++++++++++>+++++++>>~ ",
1314 +" "};
1315
1316 diff --git a/media-sound/timidity++/metadata.xml b/media-sound/timidity++/metadata.xml
1317 new file mode 100644
1318 index 0000000..99d0e78
1319 --- /dev/null
1320 +++ b/media-sound/timidity++/metadata.xml
1321 @@ -0,0 +1,11 @@
1322 +<?xml version="1.0" encoding="UTF-8"?>
1323 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1324 +<pkgmetadata>
1325 + <maintainer type="project">
1326 + <email>sound@g.o</email>
1327 + <name>Gentoo Sound project</name>
1328 + </maintainer>
1329 + <upstream>
1330 + <remote-id type="sourceforge">timidity</remote-id>
1331 + </upstream>
1332 +</pkgmetadata>
1333
1334 diff --git a/media-sound/timidity++/timidity++-2.14.0-r3.ebuild b/media-sound/timidity++/timidity++-2.14.0-r3.ebuild
1335 new file mode 100644
1336 index 0000000..5bd7e1a
1337 --- /dev/null
1338 +++ b/media-sound/timidity++/timidity++-2.14.0-r3.ebuild
1339 @@ -0,0 +1,185 @@
1340 +# Copyright 1999-2017 Gentoo Foundation
1341 +# Distributed under the terms of the GNU General Public License v2
1342 +
1343 +EAPI=5
1344 +inherit autotools eutils elisp-common user systemd toolchain-funcs
1345 +
1346 +MY_PV=${PV/_/-}
1347 +MY_P=TiMidity++-${MY_PV}
1348 +S=${WORKDIR}/${MY_P}
1349 +
1350 +DESCRIPTION="A handy MIDI to WAV converter with OSS and ALSA output support"
1351 +HOMEPAGE="http://timidity.sourceforge.net/"
1352 +SRC_URI="mirror://sourceforge/timidity/${MY_P}.tar.xz"
1353 +
1354 +LICENSE="GPL-2"
1355 +SLOT="0"
1356 +KEYWORDS="~amd64"
1357 +IUSE="motif oss nas X gtk vorbis tk slang alsa jack emacs ao selinux speex flac ncurses"
1358 +
1359 +DEPEND="ncurses? ( >=sys-libs/ncurses-5 )
1360 + emacs? ( virtual/emacs )
1361 + gtk? ( x11-libs/gtk+:2 )
1362 + tk? ( >=dev-lang/tk-8.5.13 )
1363 + nas? ( >=media-libs/nas-1.4 )
1364 + alsa? ( media-libs/alsa-lib )
1365 + slang? ( sys-libs/slang )
1366 + jack? ( virtual/jack )
1367 + vorbis? ( media-libs/libvorbis )
1368 + flac? ( media-libs/flac )
1369 + speex? ( media-libs/speex )
1370 + ao? ( >=media-libs/libao-0.8.5 )
1371 + motif? ( >=x11-libs/motif-2.3:0 )
1372 + X? ( x11-libs/libXaw x11-libs/libXext >=media-libs/libpng-1.4.2 )"
1373 +RDEPEND="${DEPEND}
1374 + alsa? ( media-sound/alsa-utils )
1375 + app-eselect/eselect-timidity
1376 + selinux? ( sec-policy/selinux-timidity )"
1377 +
1378 +PDEPEND="|| ( media-sound/timidity-eawpatches media-sound/timidity-freepats )"
1379 +
1380 +SITEFILE=50${PN}-gentoo.el
1381 +
1382 +pkg_setup() {
1383 + enewgroup audio 18 # Just make sure it exists
1384 + enewuser timidity -1 -1 /var/lib/timidity audio
1385 +}
1386 +
1387 +src_prepare() {
1388 + epatch \
1389 + "${FILESDIR}"/${P}-params.patch \
1390 + "${FILESDIR}"/${P}-revert-for-required-ctl_speana_data-function.patch \
1391 + "${FILESDIR}"/${P}-tcltk86.patch \
1392 + "${FILESDIR}"/${P}-ar.patch \
1393 + "${FILESDIR}"/${P}-configure-flags.patch \
1394 + "${FILESDIR}"/${P}-pkg-config.patch
1395 +
1396 + eautoreconf
1397 +}
1398 +
1399 +src_configure() {
1400 + export EXTRACFLAGS="${CFLAGS}" #385817
1401 +
1402 + local myconf=()
1403 + local audios
1404 +
1405 + use flac && audios+=",flac"
1406 + use speex && audios+=",speex"
1407 + use vorbis && audios+=",vorbis"
1408 + use oss && audios+=",oss"
1409 + use jack && audios+=",jack"
1410 + use ao && audios+=",ao"
1411 +
1412 + if use nas; then
1413 + audios+=",nas"
1414 + myconf+=( --with-nas-library="/usr/$(get_libdir)/libaudio.so" --with-x )
1415 + use X || ewarn "Basic X11 support will be enabled because required by nas."
1416 + fi
1417 +
1418 + if use alsa; then
1419 + audios+=",alsa"
1420 + myconf+=( --with-default-output=alsa --enable-alsaseq )
1421 + fi
1422 +
1423 + # We disable motif by default and then only enable it if it's requested.
1424 + if use motif; then
1425 + myconf+=( --enable-motif --with-x )
1426 + use X || ewarn "Basic X11 support will be enabled because required by motif."
1427 + fi
1428 +
1429 + econf \
1430 + --localstatedir=/var/state/timidity++ \
1431 + --with-module-dir="${EPREFIX}/usr/share/timidity" \
1432 + --with-lispdir="${SITELISP}/${PN}" \
1433 + --with-elf \
1434 + --enable-audio=${audios} \
1435 + --enable-server \
1436 + --enable-network \
1437 + --enable-dynamic \
1438 + --enable-vt100 \
1439 + --enable-spline=cubic \
1440 + $(use_enable emacs) \
1441 + $(use_enable slang) \
1442 + $(use_enable ncurses) \
1443 + $(use_with X x) \
1444 + $(use_enable X spectrogram) \
1445 + $(use_enable X wrd) \
1446 + $(use_enable X xskin) \
1447 + $(use_enable X xaw) \
1448 + $(use_enable gtk) \
1449 + $(use_enable tk tcltk) \
1450 + --disable-motif \
1451 + "${myconf[@]}"
1452 +}
1453 +
1454 +src_install() {
1455 + emake DESTDIR="${D}" install
1456 +
1457 + dodoc AUTHORS ChangeLog*
1458 + dodoc NEWS README* "${FILESDIR}"/timidity.cfg-r1
1459 +
1460 + # these are only for the ALSA sequencer mode
1461 + if use alsa; then
1462 + newconfd "${FILESDIR}"/conf.d.timidity.2 timidity
1463 + newinitd "${FILESDIR}"/init.d.timidity.4 timidity
1464 +
1465 + systemd_dounit "${FILESDIR}"/timidity.service
1466 + fi
1467 +
1468 + insinto /etc
1469 + newins "${FILESDIR}"/timidity.cfg-r1 timidity.cfg
1470 +
1471 + dodir /usr/share/timidity
1472 + dosym /etc/timidity.cfg /usr/share/timidity/timidity.cfg
1473 +
1474 + if use emacs; then
1475 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
1476 + fi
1477 +
1478 + diropts -o timidity -g nobody -m 0700
1479 + keepdir /var/lib/timidity
1480 +
1481 + doicon "${FILESDIR}"/timidity.xpm
1482 + newmenu "${FILESDIR}"/timidity.desktop.2 timidity.desktop
1483 +
1484 + # Order of preference: gtk, X (Xaw), ncurses, slang
1485 + # Do not create menu item for terminal ones
1486 + local interface="-id"
1487 + local terminal="true"
1488 + local nodisplay="true"
1489 + if use gtk || use X; then
1490 + interface="-ia"
1491 + terminal="false"
1492 + nodisplay="false"
1493 + use gtk && interface="-ig"
1494 + elif use ncurses || use slang; then
1495 + local interface="-is"
1496 + use ncurses && interface="-in"
1497 + fi
1498 + sed -e "s/Exec=timidity/Exec=timidity ${interface}/" \
1499 + -e "s/Terminal=.*/Terminal=${terminal}/" \
1500 + -e "s/NoDisplay=.*/NoDisplay=${nodisplay}/" \
1501 + -i "${D}"/usr/share/applications/timidity.desktop || die
1502 +}
1503 +
1504 +pkg_postinst() {
1505 + use emacs && elisp-site-regen
1506 +
1507 + elog "A timidity config file has been installed in /etc/timidity.cfg."
1508 + elog "Do not edit this file as it will interfere with the eselect timidity tool."
1509 + elog "The tool 'eselect timidity' can be used to switch between installed patchsets."
1510 +
1511 + if use alsa; then
1512 + elog "An init script for the alsa timidity sequencer has been installed."
1513 + elog "If you wish to use the timidity virtual sequencer, edit /etc/conf.d/timidity"
1514 + elog "and run 'rc-update add timidity <runlevel> && /etc/init.d/timidity start'"
1515 + fi
1516 +
1517 + if use sparc; then
1518 + elog "Only saving to wave file and ALSA soundback has been tested working."
1519 + fi
1520 +}
1521 +
1522 +pkg_postrm() {
1523 + use emacs && elisp-site-regen
1524 +}