Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/csound/
Date: Sun, 16 May 2021 06:41:57
Message-Id: 1621147295.f68b38eb0e6b9f21768e7091699fb6373c2496a9.fordfrog@gentoo
1 commit: f68b38eb0e6b9f21768e7091699fb6373c2496a9
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 16 06:41:35 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sun May 16 06:41:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f68b38eb
7
8 media-sound/csound: removed obsolete 6.15.0-r100
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-sound/csound/csound-6.15.0-r100.ebuild | 267 ---------------------------
14 1 file changed, 267 deletions(-)
15
16 diff --git a/media-sound/csound/csound-6.15.0-r100.ebuild b/media-sound/csound/csound-6.15.0-r100.ebuild
17 deleted file mode 100644
18 index 99d7b30062a..00000000000
19 --- a/media-sound/csound/csound-6.15.0-r100.ebuild
20 +++ /dev/null
21 @@ -1,267 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -# As upstream (and we aswell) are not allowed to redistribute scansyn,
26 -# we have to repackage the tarball. For that purpose use `bash files/repackage.sh version`
27 -# Reference: https://github.com/csound/csound/issues/1148
28 -
29 -EAPI=7
30 -
31 -LUA_COMPAT=( lua5-1 luajit )
32 -PYTHON_COMPAT=( python3_{7,8,9} )
33 -
34 -inherit cmake lua-single python-single-r1 toolchain-funcs
35 -
36 -if [[ ${PV} == "9999" ]]; then
37 - EGIT_REPO_URI="https://github.com/csound/csound.git"
38 - inherit git-r3
39 -else
40 - DOC_P="Csound${PV}"
41 - SRC_URI="https://dev.gentoo.org/~fordfrog/distfiles/${P}-distributable.tar.xz
42 - doc? (
43 - https://github.com/csound/csound/releases/download/${PV}/${DOC_P}_manual_pdf.zip
44 - https://github.com/csound/csound/releases/download/${PV}/${DOC_P}_manual_html.zip
45 - )"
46 - KEYWORDS="amd64 x86"
47 -fi
48 -
49 -DESCRIPTION="Sound design and signal processing system for composition and performance"
50 -HOMEPAGE="https://csound.github.io/"
51 -
52 -LICENSE="LGPL-2.1 doc? ( FDL-1.2+ )"
53 -SLOT="0"
54 -# java doesn't work atm as it needs to have some variables specified to work, see src_configure
55 -IUSE="+alsa beats chua curl +cxx debug doc double-precision dssi examples
56 -fltk +fluidsynth hdf5 +image jack keyboard linear lua mp3 nls osc portaudio
57 -portaudio portmidi pulseaudio python samples static-libs stk test +threads +utils
58 -vim-syntax websocket"
59 -
60 -REQUIRED_USE="
61 - alsa? ( threads )
62 - linear? ( double-precision )
63 - lua? ( ${LUA_REQUIRED_USE} cxx )
64 - python? ( ${PYTHON_REQUIRED_USE} cxx )
65 -"
66 -# java? ( cxx )
67 -
68 -BDEPEND="
69 - sys-devel/flex
70 - virtual/yacc
71 - chua? ( dev-libs/boost )
72 - lua? ( dev-lang/swig )
73 - python? ( dev-lang/swig )
74 - nls? ( sys-devel/gettext )
75 - test? (
76 - dev-util/cunit
77 - ${PYTHON_DEPS}
78 - )
79 -"
80 -# linear currently works only with sci-mathematics-gmm-5.1
81 -# https://github.com/csound/csound/issues/920
82 -# currently not used deps due to some issues
83 -# java? ( virtual/jdk:* )
84 -CDEPEND="
85 - dev-cpp/eigen:3
86 - >=media-libs/libsndfile-1.0.16
87 - media-libs/libsamplerate
88 - sys-libs/zlib
89 - alsa? ( media-libs/alsa-lib )
90 - curl? ( net-misc/curl )
91 - dssi? (
92 - media-libs/dssi
93 - media-libs/ladspa-sdk
94 - )
95 - fluidsynth? ( media-sound/fluidsynth:= )
96 - fltk? ( x11-libs/fltk:1[threads?] )
97 - hdf5? ( sci-libs/hdf5 )
98 - image? ( media-libs/libpng:0= )
99 - jack? ( virtual/jack )
100 - keyboard? ( x11-libs/fltk:1[threads?] )
101 - linear? ( =sci-mathematics/gmm-5.1* )
102 - lua? ( ${LUA_DEPS} )
103 - mp3? ( >=media-sound/lame-3.100-r3 )
104 - osc? ( media-libs/liblo )
105 - portaudio? ( media-libs/portaudio )
106 - portmidi? ( media-libs/portmidi )
107 - pulseaudio? ( media-sound/pulseaudio )
108 - python? ( ${PYTHON_DEPS} )
109 - stk? ( media-libs/stk )
110 - utils? ( !media-sound/snd )
111 - websocket? ( net-libs/libwebsockets:= )
112 -"
113 -RDEPEND="${CDEPEND}"
114 -DEPEND="
115 - ${CDEPEND}
116 - dev-libs/boost
117 -"
118 -
119 -if [[ ${PV} != "9999" ]]; then
120 - DEPEND+="doc? ( app-arch/unzip )"
121 -fi
122 -
123 -# requires specific alsa settings
124 -RESTRICT="test"
125 -
126 -PATCHES=(
127 - "${FILESDIR}/${PN}-6.13.0-xdg-open.patch"
128 - "${FILESDIR}/${PN}-6.15.0-lame.patch"
129 -)
130 -
131 -pkg_setup() {
132 - use lua && lua-single_pkg_setup
133 -
134 - if use python || use test ; then
135 - python-single-r1_pkg_setup
136 - fi
137 -}
138 -
139 -src_prepare() {
140 - cmake_src_prepare
141 -
142 - sed -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' \
143 - -e '/-O3/d' \
144 - -i CMakeLists.txt || die
145 -}
146 -
147 -src_configure() {
148 - local mycmakeargs=(
149 - -DBUILD_BELA=OFF
150 - -DBUILD_BUCHLA_OPCODES=ON
151 - -DBUILD_CHUA_OPCODES=$(usex chua)
152 - -DBUILD_COUNTER_OPCODES=ON
153 - -DBUILD_CSBEATS=$(usex beats)
154 - -DBUILD_CUDA_OPCODES=OFF
155 - -DBUILD_CXX_INTERFACE=$(usex cxx)
156 - -DBUILD_DSSI_OPCODES=$(usex dssi)
157 - -DBUILD_EMUGENS_OPCODES=ON
158 - -DBUILD_EXCITER_OPCODES=ON
159 - -DBUILD_FAUST_OPCODES=OFF
160 - -DBUILD_FLUID_OPCODES=$(usex fluidsynth)
161 - -DBUILD_FRAMEBUFFER_OPCODES=ON
162 - -DBUILD_HDF5_OPCODES=$(usex hdf5)
163 - -DBUILD_IMAGE_OPCODES=$(usex image)
164 - -DBUILD_INSTALLER=OFF
165 - -DBUILD_JACK_OPCODES=$(usex jack)
166 - -DBUILD_JAVA_INTERFACE=OFF
167 - -DBUILD_LINEAR_ALGEBRA_OPCODES=$(usex linear)
168 - -DBUILD_LUA_INTERFACE=$(usex lua)
169 - -DBUILD_MP3OUT_OPCODE=$(usex mp3)
170 - -DBUILD_MULTI_CORE=$(usex threads)
171 - -DBUILD_OPENCL_OPCODES=OFF
172 - -DBUILD_OSC_OPCODES=$(usex osc)
173 - -DBUILD_P5GLOVE_OPCODES=OFF
174 - -DBUILD_PADSYNTH_OPCODES=ON
175 - -DBUILD_PLATEREV_OPCODES=ON
176 - -DBUILD_PVSGENDY_OPCODE=OFF
177 - -DBUILD_PYTHON_INTERFACE=$(usex python)
178 - -DBUILD_PYTHON_OPCODES=$(usex python)
179 - -DBUILD_RELEASE=ON
180 - -DBUILD_SCANSYN_OPCODES=OFF # this is not allowed to be redistributed: https://github.com/csound/csound/issues/1148
181 - -DBUILD_SELECT_OPCODE=ON
182 - -DBUILD_SERIAL_OPCODES=ON
183 - -DBUILD_SHARED_LIBS=ON
184 - -DBUILD_STACK_OPCODES=ON
185 - -DBUILD_STATIC_LIBRARY=$(usex static-libs "ON" $(usex test))
186 - -DBUILD_STK_OPCODES=$(usex stk)
187 - -DBUILD_TESTS=$(usex test)
188 - -DBUILD_UTILITIES=$(usex utils)
189 - -DBUILD_VIRTUAL_KEYBOARD=$(usex keyboard)
190 - -DBUILD_VST4CS_OPCODES=OFF
191 - -DBUILD_WEBSOCKET_OPCODE=$(usex websocket)
192 - -DBUILD_WIIMOTE_OPCODES=OFF
193 - -DBUILD_WINSOUND=OFF
194 -
195 - -DFAIL_MISSING=ON
196 - -DNEW_PARSER_DEBUG=$(usex debug)
197 - -DREQUIRE_PTHREADS=$(usex threads)
198 -
199 - -DUSE_ALSA=$(usex alsa)
200 - -DUSE_ATOMIC_BUILTIN=ON
201 - -DUSE_AUDIOUNIT=OFF # Apple specific
202 - -DUSE_COMPILER_OPTIMIZATIONS=ON
203 - -DUSE_COREMIDI=OFF # Apple specific
204 - -DUSE_CURL=$(usex curl)
205 - -DUSE_DOUBLE=$(usex double-precision)
206 - -DUSE_FLTK=$(usex fltk)
207 - -DUSE_GETTEXT=$(usex nls)
208 - -DUSE_GIT_COMMIT=ON
209 - -DUSE_IPMIDI=ON
210 - -DUSE_JACK=$(usex jack)
211 - -DUSE_LIB64=$([[ $(get_libdir) == "lib64" ]] && echo "ON" || echo "OFF")
212 - -DUSE_LRINT=ON
213 - -DUSE_PORTAUDIO=$(usex portaudio)
214 - -DUSE_PORTMIDI=$(usex portmidi)
215 - -DUSE_PULSEAUDIO=$(usex pulseaudio)
216 -
217 - )
218 -
219 - #use java && mycmakeargs+=(
220 - #-DJAVA_INCLUDE_PATH="${JAVA_HOME}/include"
221 - #-DJAVA_AWT_LIBRARY="?"
222 - #-DJAVA_JVM_LIBRARY="?"
223 - #-DJAVA_INCLUDE_PATH2="?"
224 - #-DJAVA_AWT_INCLUDE_PATH="?"
225 - #)
226 -
227 - use lua && mycmakeargs+=(
228 - -DLUA_H_PATH="$(lua_get_include_dir)"
229 - -DLUA_LIBRARY="$(lua_get_shared_lib)"
230 - # LUA_MODULE_INSTALL_DIR omitted on purpose, csound Lua module links against liblua
231 - # so it must NOT be installed into cmod_dir.
232 - )
233 -
234 - use python && mycmakeargs+=(
235 - -DPYTHON_MODULE_INSTALL_DIR="$(python_get_sitedir)"
236 - )
237 -
238 - cmake_src_configure
239 -}
240 -
241 -src_install() {
242 - cmake_src_install
243 - dodoc -r Release_Notes/.
244 -
245 - # generate env.d file
246 - cat > "${T}"/62${PN} <<-_EOF_ || die
247 - OPCODEDIR$(usex double-precision 64 '')="${EPREFIX}/usr/$(get_libdir)/${PN}/plugins$(usex double-precision 64 '')"
248 - CSSTRNGS="${EPREFIX}/usr/share/locale"
249 - _EOF_
250 - if use stk ; then
251 - echo RAWWAVE_PATH=\"${EPREFIX}/usr/share/csound/rawwaves\" >> "${T}"/62${PN} || die
252 - fi
253 - doenvd "${T}"/62${PN}
254 -
255 - if use examples ; then
256 - dodoc -r examples
257 - docompress -x /usr/share/doc/${PF}/examples
258 - fi
259 -
260 - use samples && dodoc -r samples
261 -
262 - if use vim-syntax ; then
263 - insinto /usr/share/vim/vimfiles/syntax
264 - doins installer/misc/vim/csound_{csd,orc,sco}.vim
265 - insinto /usr/share/vim/vimfiles/plugin
266 - doins installer/misc/vim/csound.vim
267 - fi
268 -
269 - # rename extract to csound_extract (bug #247394)
270 - mv "${ED}"/usr/bin/{,csound_}extract || die
271 -
272 - use python && python_optimize
273 -
274 - # install docs
275 - if [[ ${PV} != "9999" ]] && use doc ; then
276 - dodoc "${WORKDIR}"/*.pdf
277 - dodoc -r "${WORKDIR}"/html
278 - fi
279 -}
280 -
281 -pkg_postinst() {
282 - if [[ -z ${REPLACING_VERSIONS} ]] ; then
283 - elog
284 - elog "The extract tool is now installed as csound_extract"
285 - elog "due to collisions with many other packages (bug #247394)."
286 - elog
287 - fi
288 -}