diff options
author | Tim Harder <radhermit@gentoo.org> | 2016-12-08 00:15:59 -0500 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2016-12-08 00:15:59 -0500 |
commit | 86e4ecaab954315104fe059d8b9958f20f58eaa3 (patch) | |
tree | 921589dc9ca0e84f259313bfd64984c4a864349c /media-sound | |
parent | app-doc/csound-manual: version bump to 6.08 (diff) | |
download | gentoo-86e4ecaab954315104fe059d8b9958f20f58eaa3.tar.gz gentoo-86e4ecaab954315104fe059d8b9958f20f58eaa3.tar.bz2 gentoo-86e4ecaab954315104fe059d8b9958f20f58eaa3.zip |
media-sound/csound: version bump to 6.08
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/csound/Manifest | 1 | ||||
-rw-r--r-- | media-sound/csound/csound-6.08.0.ebuild | 212 |
2 files changed, 213 insertions, 0 deletions
diff --git a/media-sound/csound/Manifest b/media-sound/csound/Manifest index a49efeddad18..a4dca7d0b3cc 100644 --- a/media-sound/csound/Manifest +++ b/media-sound/csound/Manifest @@ -1,2 +1,3 @@ DIST csound-6.06.0.tar.gz 33113094 SHA256 0be4d845729f9219d59f3e87b91bc2672e26838178fb0fc4a7753211984d3ef2 SHA512 6a8c2afec4ccaf27a5af37f8f847a1fa32d1800724fd0c80139ad7487288a49d19779d0ee505dc35bc7847bac34bb6c3a184da3600ddc7343531884845e6393b WHIRLPOOL 3bbbe0f27a1d104b2483c42016feaa3df28cda4488e71a15e7b1fc77360df801c6e06644f539167579055b7fa5877a937cb26b4d132ba30272c0827575eb0fe4 DIST csound-6.07.0.tar.gz 33834342 SHA256 606af463da477cf4a3f89d00a4fda63c7eb0dc7f50a8923069f009dfdc545799 SHA512 73f8f3a31f570cff309168127adc476cf78c7671d864fb0230175aba358e46b5272ba654688b2060abaf4de7ee4d68e29cc8480fdddaac48657332d5a0802a06 WHIRLPOOL 53cc86e9997088cfd1528b405b8aaf58f65a5ec6a0a4ceb20fa438ef59c96d4a0fc3996245b16da6bde72cf47bef2130d37cc8ed095cfd04e8b7948c66e6d046 +DIST csound-6.08.0.tar.gz 33948686 SHA256 480bde5c07ac7fb8303b4c84c01710999815c2334501d007170adc9cdbf826a1 SHA512 22237f7c8ac875fd44789a729f5513dd7f751bbe0446b8a6e43c6a824b1c40978ef051122632af0c3975761fa7f873c01e88b9de7be313d9d23be09ed52c29ca WHIRLPOOL 987fb74135a55a945e67a2ef083bb69e315fa3807018db5619bb8a57d33760b3aa85a8f6bfcfb2ac46b9a3f8676398ea12e2ac068b97bf917ef3e1f698d33faf diff --git a/media-sound/csound/csound-6.08.0.ebuild b/media-sound/csound/csound-6.08.0.ebuild new file mode 100644 index 000000000000..067d9f37d4a7 --- /dev/null +++ b/media-sound/csound/csound-6.08.0.ebuild @@ -0,0 +1,212 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +inherit eutils multilib java-pkg-opt-2 cmake-utils toolchain-funcs versionator python-single-r1 + +DESCRIPTION="A sound design and signal processing system providing facilities for composition and performance" +HOMEPAGE="http://csound.github.io/" +SRC_URI="https://github.com/csound/csound/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+alsa beats chua csoundac curl +cxx debug double-precision dssi examples +fltk +fluidsynth +image jack java keyboard linear lua luajit nls osc openmp +portaudio portmidi pulseaudio python samples score static-libs stk tcl test ++threads +utils vim-syntax websocket" + +LANGS=" de en_US es_CO fr it ro ru" +IUSE+="${LANGS// / linguas_}" + +REQUIRED_USE=" + csoundac? ( || ( lua python ) ) + java? ( cxx ) + linear? ( double-precision ) + lua? ( cxx ) + python? ( cxx ) +" + +RDEPEND=" + >=media-libs/libsndfile-1.0.16 + media-libs/libsamplerate + alsa? ( media-libs/alsa-lib ) + csoundac? ( + x11-libs/fltk:1[threads?] + dev-cpp/eigen:3 + dev-libs/boost:= + ) + curl? ( net-misc/curl ) + dssi? ( + media-libs/dssi + media-libs/ladspa-sdk + ) + fluidsynth? ( media-sound/fluidsynth ) + fltk? ( x11-libs/fltk:1[threads?] ) + image? ( media-libs/libpng:0= ) + jack? ( media-sound/jack-audio-connection-kit ) + java? ( virtual/jdk ) + keyboard? ( x11-libs/fltk:1[threads?] ) + linear? ( sci-mathematics/gmm ) + lua? ( + luajit? ( dev-lang/luajit:2 ) + !luajit? ( dev-lang/lua:0 ) + ) + osc? ( media-libs/liblo ) + portaudio? ( media-libs/portaudio ) + portmidi? ( media-libs/portmidi ) + pulseaudio? ( media-sound/pulseaudio ) + python? ( ${PYTHON_DEPS} ) + stk? ( media-libs/stk ) + tcl? ( + >=dev-lang/tcl-8.5:0= + >=dev-lang/tk-8.5:0= + ) + utils? ( !media-sound/snd ) + websocket? ( net-libs/libwebsockets ) +" +DEPEND="${RDEPEND} + sys-devel/flex + virtual/yacc + chua? ( dev-libs/boost ) + csoundac? ( dev-lang/swig ) + nls? ( sys-devel/gettext ) + test? ( + dev-util/cunit + ${PYTHON_DEPS} + ) +" + +# requires specific alsa settings +RESTRICT="test" + +pkg_pretend() { + if use openmp ; then + tc-has-openmp || die "Please switch to an openmp compatible compiler" + fi +} + +pkg_setup() { + if use python || use test ; then + python-single-r1_pkg_setup + fi +} + +src_prepare() { + local PATCHES=( "${FILESDIR}"/csound-6.05-python.patch ) + + sed -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' \ + -e '/-O3/d' \ + -i CMakeLists.txt || die + + for lang in ${LANGS} ; do + if ! use linguas_${lang} ; then + sed -i "/compile_po(${lang}/d" po/CMakeLists.txt || die + fi + done + + default +} + +src_configure() { + local myconf=() + + use python && myconf+=( "-DPYTHON_MODULE_INSTALL_DIR=$(python_get_sitedir)" ) + + [[ $(get_libdir) == "lib64" ]] && myconf+=( -DUSE_LIB64=ON ) + + local mycmakeargs=( + -DUSE_ALSA=$(usex alsa) + -DBUILD_CSBEATS=$(usex beats) + -DBUILD_CHUA_OPCODES=$(usex chua) + -DBUILD_CSOUND_AC=$(usex csoundac) + -DBUILD_CSOUND_AC_LUA_INTERFACE=$(usex csoundac $(usex lua)) + -DBUILD_CSOUND_AC_PYTHON_INTERFACE=$(usex csoundac $(usex python)) + -DBUILD_CXX_INTERFACE=$(usex cxx) + -DUSE_CURL=$(usex curl) + -DNEW_PARSER_DEBUG=$(usex debug) + -DUSE_DOUBLE=$(usex double-precision) + -DBUILD_DSSI_OPCODES=$(usex dssi) + -DBUILD_FLUID_OPCODES=$(usex fluidsynth) + -DUSE_FLTK=$(usex fltk) + -DBUILD_IMAGE_OPCODES=$(usex image) + -DUSE_JACK=$(usex jack) + -DBUILD_JACK_OPCODES=$(usex jack) + -DBUILD_JAVA_INTERFACE=$(usex java) + -DBUILD_VIRTUAL_KEYBOARD=$(usex keyboard) + -DBUILD_LINEAR_ALGEBRA_OPCODES=$(usex linear) + -DBUILD_LUA_OPCODES=$(usex lua) + -DBUILD_LUA_INTERFACE=$(usex lua) + -DUSE_GETTEXT=$(usex nls) + -DBUILD_OSC_OPCODES=$(usex osc) + -DUSE_OPEN_MP=$(usex openmp) + -DUSE_PORTAUDIO=$(usex portaudio) + -DUSE_PORTMIDI=$(usex portmidi) + -DUSE_PULSEAUDIO=$(usex pulseaudio) + -DBUILD_PYTHON_OPCODES=$(usex python) + -DBUILD_PYTHON_INTERFACE=$(usex python) + -DSCORE_PARSER=$(usex score) + -DBUILD_STATIC_LIBRARY=$(usex static-libs) + -DBUILD_STK_OPCODES=$(usex stk) + -DBUILD_TESTS=$(usex test) + -DBUILD_STATIC_LIBRARY=$(usex test) + -DBUILD_TCLCSOUND=$(usex tcl) + -DBUILD_MULTI_CORE=$(usex threads) + -DBUILD_UTILITIES=$(usex utils) + -DBUILD_WEBSOCKET_OPCODE=$(usex websocket) + -DNEED_PORTTIME=OFF + -DBUILD_RELEASE=ON + "${myconf[@]}" + ) + + cmake-utils_src_configure +} + +src_test() { + cmake-utils_src_test +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS ChangeLog README.md Release_Notes/* + + # Generate env.d file + if use double-precision ; then + echo OPCODEDIR64=/usr/$(get_libdir)/${PN}/plugins64 > "${T}"/62${PN} + else + echo OPCODEDIR=/usr/$(get_libdir)/${PN}/plugins > "${T}"/62${PN} + fi + echo "CSSTRNGS=/usr/share/locale" >> "${T}"/62${PN} + use stk && echo "RAWWAVE_PATH=/usr/share/csound/rawwaves" >> "${T}"/62${PN} + doenvd "${T}"/62${PN} + + if use examples ; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + use samples && dodoc -r samples + + if use vim-syntax ; then + insinto /usr/share/vim/vimfiles/syntax + doins installer/misc/vim/csound_{csd,orc,sco}.vim + insinto /usr/share/vim/vimfiles/plugin + doins installer/misc/vim/csound.vim + fi + + # rename extract to csound_extract (bug #247394) + mv "${ED}"/usr/bin/{extract,csound_extract} || die + + use python && python_optimize +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog + elog "The extract tool is now installed as csound_extract" + elog "due to collisions with many other packages (bug #247394)." + elog + fi +} |