diff options
-rw-r--r-- | media-sound/csound/ChangeLog | 7 | ||||
-rw-r--r-- | media-sound/csound/Manifest | 17 | ||||
-rw-r--r-- | media-sound/csound/csound-5.17.6-r1.ebuild | 179 |
3 files changed, 201 insertions, 2 deletions
diff --git a/media-sound/csound/ChangeLog b/media-sound/csound/ChangeLog index 58c2922af504..446b965aaf34 100644 --- a/media-sound/csound/ChangeLog +++ b/media-sound/csound/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-sound/csound # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v 1.17 2012/05/29 12:02:15 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v 1.18 2012/05/29 12:10:21 radhermit Exp $ + +*csound-5.17.6-r1 (29 May 2012) + + 29 May 2012; Tim Harder <radhermit@gentoo.org> +csound-5.17.6-r1.ebuild: + Revision bump. Drop unused vst USE flag and fix python library install dir. *csound-5.17.11 (29 May 2012) diff --git a/media-sound/csound/Manifest b/media-sound/csound/Manifest index 61e2231318f8..36b7b01c4ef1 100644 --- a/media-sound/csound/Manifest +++ b/media-sound/csound/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + AUX csound-5.16.6-install.patch 7688 RMD160 1f7da4193df6e187ff0d7bc5cf7ab55d161b0fd3 SHA1 6a510c171c9133172fd543044ca66fbe395dc51a SHA256 95cb4f08c57aa6a6135f7c4038242678fff39af58d892cc38ba031dab120039e AUX csound-5.16.6-tests.patch 2356 RMD160 6b3d93e4e062d009b7776ece4cf9c39a7da7ac0c SHA1 11e2132a702565c7386c4b54b2e42d63820fd568 SHA256 0b242d94b1718671d325b20cbd3faf4bc2437738fd88d49586a73fc84e5e9dca AUX csound-5.17.11-cmake.patch 256 RMD160 e247ddcc2c690226a70c1d2074abef77e3901b97 SHA1 ca29f48940c392fd277d8fed89ebfdfd6353695c SHA256 abcf62d9aabaa8e761d1f9ff5cf5b93c7701d7ac917e149dd62efc3be7964acd @@ -9,6 +12,18 @@ DIST Csound5.17.2.tar.gz 8777963 RMD160 79bb854e722c049afd4a2e048b2332223c2a0f97 DIST Csound5.17.6.tar.gz 9132954 RMD160 8b42227b149664bb0c72713818d67018bbe428ee SHA1 ee1e999e51dc3377b9409cd43cd84ce32f3bf1c8 SHA256 d161acddb4a419fc15097e4f508b7b4e09fadb25b72906cf4f485ca9415fe6d1 EBUILD csound-5.17.11.ebuild 5556 RMD160 5ec526560418b0074dc253653a813a1a9e1b758e SHA1 a308f1f31805eadf4358bcd3a5c0db1288ef31ee SHA256 16553479a201d1b03b4b422cd351c247c0484cc1d7d25ca5f3958f3420f371c3 EBUILD csound-5.17.2-r1.ebuild 5347 RMD160 737073bbaf5b04920b80458b3ce24d66e1343933 SHA1 f88471c6c9d02581f9370e19c896da8e39e4807b SHA256 dff64cd4aea79f89ec929214dbfc9d98b9a6206ab7c66c3af6023190cc125b4c +EBUILD csound-5.17.6-r1.ebuild 5485 RMD160 c1d55437982e19f8cedf347595adf937574e43af SHA1 7e0c22758f53c0792105872b37156cab9a3f8152 SHA256 5f9f80743d417bad23684c23b840dd69c79977b7eb7aa02b7659a586d430a147 EBUILD csound-5.17.6.ebuild 5440 RMD160 65d35f1bbb6262f89f290180e425ac5b4cac270a SHA1 f335aac4cc40be91f859d266a7b6164096413963 SHA256 5dc5ce4d25253b96521efaf2d171a617d858e8546dd77f382ae3afabe46b7785 -MISC ChangeLog 3043 RMD160 1d938d39d9263a179ad3c7a175660d1faba77bfe SHA1 55a05272cab86a86852c8b945079008e7d337ff2 SHA256 3cc155b847a6c652c6ac978669399377a3ea3f1f54bbcbdcf9167ec5fe1d4f8e +MISC ChangeLog 3230 RMD160 fdf62de3e3758406a7d7b1196ddaa422703ca256 SHA1 cade0edab35b144dbf6844b9b390597b4b90fd7d SHA256 6b23031acf768b3fbeaaf5279ec892b896f6ccb5635bc6a509f2bd4e4395699b MISC metadata.xml 1412 RMD160 c6e0d21b6e3be750430852d3814414fc4ce4c109 SHA1 c99d16c25cd572e31aeccf34261f36c84502cf84 SHA256 3bf65b3bc701d6e4f28b9074673e81914fa637c6b430b31b8d5cf3f191a3fb41 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCgAGBQJPxLy3AAoJEEqz6FtPBkyj+YYH/11oRX/IuASoi381rHpMeKdA +bskVO05skhdDWFL+O1fD72lKUA/PFdMQL1IhpFeuhxK6SydwEWubxwVyhTCgwVfZ +Ef7V/hUo9TgiYQi3y2TkD+UkdUbBAtlCwHsLJPesDfF8ZmUJt1gTOpiTxqF4hlTl +KwyASua3iE9CCklFny9eHhb7BotuOeaKS2yqH7PnwZfEdby/bMxCAb6AZc90O3uF +yQsWVaoJF2LjMJmECpVt5t46nEzueIku/I6YEUgZL/yMfn1Ano90FoJxeAJXHFy3 +Fr1rLZVfBiq6p6TUkV7YdDrCzrdioacRVeIuAVGYm5DNVDS+I7AFR/hyW0wehQ0= +=n6NX +-----END PGP SIGNATURE----- diff --git a/media-sound/csound/csound-5.17.6-r1.ebuild b/media-sound/csound/csound-5.17.6-r1.ebuild new file mode 100644 index 000000000000..07d787f28dff --- /dev/null +++ b/media-sound/csound/csound-5.17.6-r1.ebuild @@ -0,0 +1,179 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/csound-5.17.6-r1.ebuild,v 1.1 2012/05/29 12:10:21 radhermit Exp $ + +EAPI="4" +PYTHON_DEPEND="python? 2" + +inherit eutils multilib python java-pkg-opt-2 cmake-utils toolchain-funcs versionator + +MY_PN="${PN/c/C}" +MY_P="${MY_PN}${PV}" + +DESCRIPTION="A sound design and signal processing system providing facilities for composition and performance" +HOMEPAGE="http://csounds.com/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+alsa beats chua csoundac +cxx debug double-precision dssi examples fltk +fluidsynth ++image jack java keyboard linear lua luajit nls osc openmp portaudio portmidi pulseaudio +python samples static-libs stk tcl test +threads +utils vim-syntax" + +LANGS=" de en_GB en_US es_CO fr it ro ru" +IUSE+="${LANGS// / linguas_}" + +RDEPEND=">=media-libs/libsndfile-1.0.16 + alsa? ( media-libs/alsa-lib ) + csoundac? ( x11-libs/fltk:1[threads?] + dev-libs/boost + =dev-lang/python-2* ) + dssi? ( media-libs/dssi + media-libs/ladspa-sdk ) + fluidsynth? ( media-sound/fluidsynth ) + fltk? ( x11-libs/fltk:1[threads?] ) + image? ( media-libs/libpng ) + jack? ( media-sound/jack-audio-connection-kit ) + java? ( >=virtual/jdk-1.5 ) + keyboard? ( x11-libs/fltk:1[threads?] ) + linear? ( sci-mathematics/gmm ) + lua? ( + luajit? ( dev-lang/luajit:2 ) + !luajit? ( dev-lang/lua ) + ) + osc? ( media-libs/liblo ) + portaudio? ( media-libs/portaudio ) + portmidi? ( media-libs/portmidi ) + pulseaudio? ( media-sound/pulseaudio ) + stk? ( media-libs/stk ) + tcl? ( >=dev-lang/tcl-8.5 + >=dev-lang/tk-8.5 ) + utils? ( !media-sound/snd )" +DEPEND="${RDEPEND} + sys-devel/flex + virtual/yacc + chua? ( dev-libs/boost ) + csoundac? ( dev-lang/swig ) + nls? ( sys-devel/gettext ) + test? ( =dev-lang/python-2* )" + +REQUIRED_USE="java? ( cxx ) + linear? ( double-precision ) + lua? ( cxx ) + python? ( cxx )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + if use openmp ; then + tc-has-openmp || die "Please switch to an openmp compatible compiler" + fi + + if use python || use test ; then + python_set_active_version 2 + fi + use python && python_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-5.16.6-tests.patch + epatch "${FILESDIR}"/${P}-fltk.patch + epatch "${FILESDIR}"/${P}-porttime-in-portmidi.patch + + sed -i -e "s:^\(csoundExecutable =\).*:\1 \"${WORKDIR}/${P}_build/csound\":" \ + tests/test.py || die + + sed -i -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' CMakeLists.txt || die + + if [[ $(get_libdir) == "lib64" ]] ; then + sed -i -e '/set(LIBRARY_INSTALL_DIR/s/lib/lib64/' CMakeLists.txt || die + fi + + if use python ; then + sed -i -e "/set(PYTHON_MODULE_INSTALL_DIR/s#\${LIBRARY_INSTALL_DIR}#$(python_get_sitedir)#" CMakeLists.txt || die + fi +} + +src_configure() { + local myconf + + if use csoundac ; then + myconf+=" -DBUILD_CSOUND_AC_PYTHON_INTERFACE=$(usex python ON OFF)" + myconf+=" -DBUILD_CSOUND_AC_LUA_INTERFACE=$(usex lua ON OFF)" + fi + + local mycmakeargs=( + -DBUILD_NEW_PARSER=ON + $(cmake-utils_use_use alsa ALSA) \ + $(cmake-utils_use_build beats CSBEATS) \ + $(cmake-utils_use_build chua CHUA_OPCODES) \ + $(cmake-utils_use_build csoundac CSOUND_AC) \ + $(cmake-utils_use_build cxx CXX_INTERFACE) \ + $(cmake-utils_use debug NEW_PARSER_DEBUG) \ + $(cmake-utils_use_use double-precision DOUBLE) \ + $(cmake-utils_use_build dssi DSSI_OPCODES) \ + $(cmake-utils_use_build fluidsynth FLUID_OPCODES) \ + $(cmake-utils_use_use fltk FLTK) \ + $(cmake-utils_use_build image IMAGE_OPCODES) \ + $(cmake-utils_use_use jack JACK) \ + $(cmake-utils_use_build jack JACK_OPCODES) \ + $(cmake-utils_use_build java JAVA_INTERFACE) \ + $(cmake-utils_use_build keyboard VIRTUAL_KEYBOARD) \ + $(cmake-utils_use_build linear LINEAR_ALGEBRA_OPCODES) \ + $(cmake-utils_use_build lua LUA_OPCODES) \ + $(cmake-utils_use_build lua LUA_INTERFACE) \ + $(cmake-utils_use_use nls GETTEXT) \ + $(cmake-utils_use_build osc OSC_OPCODES) \ + $(cmake-utils_use_use openmp OPEN_MP) \ + $(cmake-utils_use_use portaudio PORTAUDIO) \ + $(cmake-utils_use_use portmidi PORTMIDI) \ + $(cmake-utils_use_use pulseaudio PULSEAUDIO) \ + $(cmake-utils_use_build python PYTHON_OPCODES) \ + $(cmake-utils_use_build python PYTHON_INTERFACE) \ + $(cmake-utils_use_build static-libs STATIC_LIBRARY) \ + $(cmake-utils_use_build stk STK_OPCODES) \ + $(cmake-utils_use_build tcl TCLCSOUND) \ + $(cmake-utils_use_build threads MULTI_CORE) \ + $(cmake-utils_use_build utils UTILITIES) \ + ${myconf} + ) + + cmake-utils_src_configure +} + +src_test() { + export LD_LIBRARY_PATH="${S}" OPCODEDIR="${S}" OPCODEDIR64="${S}" + cd tests + ./test.py || die "tests failed" +} + +src_install() { + cmake-utils_src_install + + dodoc AUTHORS ChangeLog readme-csound5-complete.txt + + # 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 +} |