Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/csound: metadata.xml ChangeLog csound-5.16.6-r2.ebuild
Date: Wed, 29 Feb 2012 00:54:23
Message-Id: 20120229005413.6AA8F2004B@flycatcher.gentoo.org
1 radhermit 12/02/29 00:54:13
2
3 Modified: metadata.xml ChangeLog
4 Added: csound-5.16.6-r2.ebuild
5 Log:
6 Revbump to add luajit use flag to control using dev-lang/luajit instead of dev-lang/lua.
7
8 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 media-sound/csound/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/metadata.xml?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/metadata.xml?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/metadata.xml?r1=1.2&r2=1.3
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/csound/metadata.xml,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- metadata.xml 27 Feb 2012 05:42:44 -0000 1.2
24 +++ metadata.xml 29 Feb 2012 00:54:13 -0000 1.3
25 @@ -14,6 +14,7 @@
26 <flag name="image">Build the image opcodes</flag>
27 <flag name="keyboard">Build Virtual MIDI keyboard</flag>
28 <flag name="linear">Build the linear algebra Opcodes</flag>
29 + <flag name="luajit">Use the lua just-in-time compiler <pkg>dev-lang/luajit</pkg> instead of <pkg>dev-lang/lua</pkg></flag>
30 <flag name="portmidi">Build the PortMIDI I/O module</flag>
31 <flag name="samples">Install the HRTF datafiles for use with hrtfmove, hrtfmove2, hrtfstat, hrtfearly, and hrtfreverb</flag>
32 <flag name="stk">Build the stk opcodes</flag>
33
34
35
36 1.8 media-sound/csound/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/ChangeLog?rev=1.8&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/ChangeLog?rev=1.8&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/ChangeLog?r1=1.7&r2=1.8
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v
45 retrieving revision 1.7
46 retrieving revision 1.8
47 diff -u -r1.7 -r1.8
48 --- ChangeLog 28 Feb 2012 21:28:40 -0000 1.7
49 +++ ChangeLog 29 Feb 2012 00:54:13 -0000 1.8
50 @@ -1,6 +1,13 @@
51 # ChangeLog for media-sound/csound
52 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v 1.7 2012/02/28 21:28:40 radhermit Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v 1.8 2012/02/29 00:54:13 radhermit Exp $
55 +
56 +*csound-5.16.6-r2 (29 Feb 2012)
57 +
58 + 29 Feb 2012; Tim Harder <radhermit@g.o> +csound-5.16.6-r2.ebuild,
59 + files/csound-5.16.6-scons.patch, metadata.xml:
60 + Revbump to add luajit use flag to control using dev-lang/luajit instead of
61 + dev-lang/lua.
62
63 28 Feb 2012; Tim Harder <radhermit@g.o> csound-5.16.6-r1.ebuild:
64 Remove duplicate LDFLAGS setting.
65
66
67
68 1.1 media-sound/csound/csound-5.16.6-r2.ebuild
69
70 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/csound-5.16.6-r2.ebuild?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/csound-5.16.6-r2.ebuild?rev=1.1&content-type=text/plain
72
73 Index: csound-5.16.6-r2.ebuild
74 ===================================================================
75 # Copyright 1999-2012 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77 # $Header: /var/cvsroot/gentoo-x86/media-sound/csound/csound-5.16.6-r2.ebuild,v 1.1 2012/02/29 00:54:13 radhermit Exp $
78
79 EAPI="4"
80 PYTHON_DEPEND="python? 2"
81
82 inherit eutils multilib python java-pkg-opt-2 scons-utils toolchain-funcs versionator
83
84 MY_PN="${PN/c/C}"
85 MY_P="${MY_PN}${PV}"
86 DOCS_P="${MY_PN}$(get_version_component_range 1-2)"
87
88 DESCRIPTION="A sound design and signal processing system providing facilities for composition and performance"
89 HOMEPAGE="http://csounds.com/"
90 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
91 html? (
92 linguas_fr? ( mirror://sourceforge/${PN}/${DOCS_P}_manual-fr_html.zip )
93 !linguas_fr? ( mirror://sourceforge/${PN}/${DOCS_P}_manual_html.zip )
94 )
95 doc? (
96 linguas_fr? ( mirror://sourceforge/${PN}/${DOCS_P}_manual-fr_pdf.zip )
97 !linguas_fr? ( mirror://sourceforge/${PN}/${DOCS_P}_manual_pdf.zip )
98 )"
99
100 LICENSE="LGPL-2.1"
101 SLOT="0"
102 KEYWORDS="~amd64 ~x86"
103 IUSE="+alsa beats chua csoundac +cxx debug double-precision dssi examples fltk +fluidsynth
104 html +image jack java keyboard linear lua luajit nls osc openmp doc portaudio portmidi pulseaudio
105 python samples static-libs stk tcl test +threads +utils vim-syntax vst"
106
107 LANGS=" de en_GB en_US es_CO fr it ro ru"
108 IUSE+="${LANGS// / linguas_}"
109
110 RDEPEND=">=media-libs/libsndfile-1.0.16
111 alsa? ( media-libs/alsa-lib )
112 csoundac? ( x11-libs/fltk:1[threads?]
113 dev-libs/boost
114 =dev-lang/python-2* )
115 dssi? ( media-libs/dssi
116 media-libs/ladspa-sdk )
117 fluidsynth? ( media-sound/fluidsynth )
118 fltk? ( x11-libs/fltk:1[threads?] )
119 image? ( media-libs/libpng )
120 jack? ( media-sound/jack-audio-connection-kit )
121 java? ( >=virtual/jdk-1.5 )
122 keyboard? ( x11-libs/fltk:1[threads?] )
123 linear? ( sci-mathematics/gmm )
124 lua? (
125 luajit? ( dev-lang/luajit:2 )
126 !luajit? ( dev-lang/lua )
127 )
128 osc? ( media-libs/liblo )
129 portaudio? ( media-libs/portaudio )
130 portmidi? ( media-libs/portmidi )
131 pulseaudio? ( media-sound/pulseaudio )
132 stk? ( media-libs/stk )
133 tcl? ( >=dev-lang/tcl-8.5
134 >=dev-lang/tk-8.5 )
135 utils? ( !media-sound/snd )
136 vst? ( x11-libs/fltk:1[threads?]
137 dev-libs/boost
138 =dev-lang/python-2* )"
139 DEPEND="${RDEPEND}
140 sys-devel/flex
141 virtual/yacc
142 chua? ( dev-libs/boost )
143 csoundac? ( dev-lang/swig )
144 html? ( app-arch/unzip )
145 doc? ( app-arch/unzip )
146 nls? ( sys-devel/gettext )
147 test? ( =dev-lang/python-2* )
148 vst? ( dev-lang/swig )"
149
150 REQUIRED_USE="vst? ( csoundac )
151 java? ( cxx )
152 linear? ( double-precision )
153 lua? ( cxx )
154 python? ( cxx )"
155
156 S="${WORKDIR}/${MY_P}"
157
158 pkg_setup() {
159 if use openmp ; then
160 tc-has-openmp || die "Please switch to an openmp compatible compiler"
161 fi
162
163 python_set_active_version 2
164 python_pkg_setup
165 }
166
167 src_prepare() {
168 epatch "${FILESDIR}"/${P}-scons.patch
169 epatch "${FILESDIR}"/${P}-tests.patch
170 epatch "${FILESDIR}"/${P}-install.patch
171
172 cat > custom.py <<-EOF
173 platform = 'linux'
174 customCPPPATH = []
175 customCCFLAGS = "${CFLAGS}".split()
176 customCXXFLAGS = "${CXXFLAGS}".split()
177 customLIBS = []
178 customLIBPATH = []
179 customLINKFLAGS = "${LDFLAGS}".split()
180 customSHLINKFLAGS = []
181 customSWIGFLAGS = []
182 EOF
183 }
184
185 src_compile() {
186 local myconf
187 [[ $(get_libdir) == "lib64" ]] && myconf+=" Lib64=1"
188
189 escons \
190 prefix=/usr \
191 CC="$(tc-getCC)" \
192 CXX="$(tc-getCXX)" \
193 buildNewParser=1 \
194 pythonVersion=$(python_get_version) \
195 $(use_scons alsa useALSA) \
196 $(use_scons beats buildBeats) \
197 $(use_scons chua buildChuaOpcodes) \
198 $(use_scons csoundac buildCsoundAC) \
199 $(use_scons cxx buildInterfaces) \
200 $(use_scons !debug buildRelease) \
201 $(use_scons !debug noDebug) \
202 $(use_scons debug NewParserDebug) \
203 $(use_scons double-precision useDouble) \
204 $(use_scons dssi buildDSSI) \
205 $(use_scons fluidsynth buildFluidOpcodes) \
206 $(use_scons fltk buildCsound5GUI) \
207 $(use_scons fltk useFLTK) \
208 $(use_scons image buildImageOpcodes) \
209 $(use_scons jack useJack) \
210 $(use_scons java buildJavaWrapper) \
211 $(use_scons keyboard buildVirtual) \
212 $(use_scons linear buildLinearOpcodes) \
213 $(use_scons lua buildLuaOpcodes) \
214 $(use_scons lua buildLuaWrapper) \
215 $(use_scons luajit useLuaJIT) \
216 $(use_scons nls useGettext) \
217 $(use_scons osc useOSC) \
218 $(use_scons openmp useOpenMP) \
219 $(use_scons portaudio usePortAudio) \
220 $(use_scons portmidi usePortMIDI) \
221 $(use_scons pulseaudio usePulseAudio) \
222 $(use_scons python buildPythonOpcodes) \
223 $(use_scons python buildPythonWrapper) \
224 $(use_scons !static-libs dynamicCsoundLibrary) \
225 $(use_scons stk buildStkOpcodes) \
226 $(use_scons tcl buildTclcsound) \
227 $(use_scons !threads noFLTKThreads) \
228 $(use_scons threads buildMultiCore) \
229 $(use_scons utils buildUtilities) \
230 $(use_scons vst buildCsoundVST) \
231 ${myconf}
232 }
233
234 src_test() {
235 export LD_LIBRARY_PATH="${S}" OPCODEDIR="${S}" OPCODEDIR64="${S}"
236 cd tests
237 ./test.py || die "tests failed"
238 }
239
240 src_install() {
241 local myconf
242 [[ $(get_libdir) == "lib64" ]] && myconf+=" --word64"
243
244 use vim-syntax && myconf+=" --vimdir=/usr/share/vim/vimfiles"
245
246 ./install.py --instdir="${D}" --prefix=/usr ${myconf} || die "install failed"
247 dodoc AUTHORS ChangeLog readme-csound5-complete.txt
248
249 # Generate env.d file
250 if use double-precision ; then
251 echo OPCODEDIR64=/usr/$(get_libdir)/${PN}/plugins64 > "${T}"/62${PN}
252 else
253 echo OPCODEDIR=/usr/$(get_libdir)/${PN}/plugins > "${T}"/62${PN}
254 fi
255 echo "CSSTRNGS=/usr/share/locale" >> "${T}"/62${PN}
256 use stk && echo "RAWWAVE_PATH=/usr/share/csound/rawwaves" >> "${T}"/62${PN}
257 doenvd "${T}"/62${PN}
258
259 if use nls ; then
260 insinto /usr/share/locale
261 for lang in ${LANGS} ; do
262 use linguas_${lang} && doins -r po/${lang}
263 done
264 fi
265
266 if use examples ; then
267 dodoc -r examples
268 docompress -x /usr/share/doc/${PF}/examples
269 fi
270
271 if use html ; then
272 dohtml -r "${WORKDIR}"/html/*
273 fi
274
275 if use doc ; then
276 if use linguas_fr ; then
277 dodoc "${WORKDIR}"/${DOCS_P}_manual-fr.pdf
278 else
279 dodoc "${WORKDIR}"/${DOCS_P}_manual.pdf
280 fi
281 fi
282
283 use samples && dodoc -r samples
284 }