1 |
radhermit 12/05/29 12:02:17 |
2 |
|
3 |
Modified: ChangeLog csound-5.17.6.ebuild |
4 |
Added: csound-5.17.11.ebuild |
5 |
Log: |
6 |
Version bump. Drop unused vst USE flag and use proper python library install location. |
7 |
|
8 |
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.17 media-sound/csound/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/ChangeLog?rev=1.17&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/ChangeLog?rev=1.17&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/ChangeLog?r1=1.16&r2=1.17 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v |
20 |
retrieving revision 1.16 |
21 |
retrieving revision 1.17 |
22 |
diff -u -r1.16 -r1.17 |
23 |
--- ChangeLog 29 May 2012 11:00:58 -0000 1.16 |
24 |
+++ ChangeLog 29 May 2012 12:02:15 -0000 1.17 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for media-sound/csound |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v 1.16 2012/05/29 11:00:58 radhermit Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/ChangeLog,v 1.17 2012/05/29 12:02:15 radhermit Exp $ |
30 |
+ |
31 |
+*csound-5.17.11 (29 May 2012) |
32 |
+ |
33 |
+ 29 May 2012; Tim Harder <radhermit@g.o> csound-5.17.6.ebuild, |
34 |
+ +csound-5.17.11.ebuild, +files/csound-5.17.11-cmake.patch: |
35 |
+ Version bump. Drop unused vst USE flag and use proper python library install |
36 |
+ location. |
37 |
|
38 |
29 May 2012; Tim Harder <radhermit@g.o> csound-5.17.6.ebuild, |
39 |
+files/csound-5.17.6-porttime-in-portmidi.patch: |
40 |
|
41 |
|
42 |
|
43 |
1.4 media-sound/csound/csound-5.17.6.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/csound-5.17.6.ebuild?rev=1.4&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/csound-5.17.6.ebuild?rev=1.4&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/csound-5.17.6.ebuild?r1=1.3&r2=1.4 |
48 |
|
49 |
Index: csound-5.17.6.ebuild |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/csound/csound-5.17.6.ebuild,v |
52 |
retrieving revision 1.3 |
53 |
retrieving revision 1.4 |
54 |
diff -u -r1.3 -r1.4 |
55 |
--- csound-5.17.6.ebuild 29 May 2012 11:00:58 -0000 1.3 |
56 |
+++ csound-5.17.6.ebuild 29 May 2012 12:02:15 -0000 1.4 |
57 |
@@ -1,6 +1,6 @@ |
58 |
# Copyright 1999-2012 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/csound-5.17.6.ebuild,v 1.3 2012/05/29 11:00:58 radhermit Exp $ |
61 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/csound-5.17.6.ebuild,v 1.4 2012/05/29 12:02:15 radhermit Exp $ |
62 |
|
63 |
EAPI="4" |
64 |
PYTHON_DEPEND="python? 2" |
65 |
@@ -75,8 +75,10 @@ |
66 |
tc-has-openmp || die "Please switch to an openmp compatible compiler" |
67 |
fi |
68 |
|
69 |
- python_set_active_version 2 |
70 |
- python_pkg_setup |
71 |
+ if use python || use test ; then |
72 |
+ python_set_active_version 2 |
73 |
+ python_pkg_setup |
74 |
+ fi |
75 |
} |
76 |
|
77 |
src_prepare() { |
78 |
|
79 |
|
80 |
|
81 |
1.1 media-sound/csound/csound-5.17.11.ebuild |
82 |
|
83 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/csound-5.17.11.ebuild?rev=1.1&view=markup |
84 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/csound/csound-5.17.11.ebuild?rev=1.1&content-type=text/plain |
85 |
|
86 |
Index: csound-5.17.11.ebuild |
87 |
=================================================================== |
88 |
# Copyright 1999-2012 Gentoo Foundation |
89 |
# Distributed under the terms of the GNU General Public License v2 |
90 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/csound/csound-5.17.11.ebuild,v 1.1 2012/05/29 12:02:17 radhermit Exp $ |
91 |
|
92 |
EAPI="4" |
93 |
PYTHON_DEPEND="python? 2" |
94 |
|
95 |
inherit eutils multilib python java-pkg-opt-2 cmake-utils toolchain-funcs versionator |
96 |
|
97 |
MY_PN="${PN/c/C}" |
98 |
MY_P="${MY_PN}${PV}" |
99 |
|
100 |
DESCRIPTION="A sound design and signal processing system providing facilities for composition and performance" |
101 |
HOMEPAGE="http://csounds.com/" |
102 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
103 |
|
104 |
LICENSE="LGPL-2.1" |
105 |
SLOT="0" |
106 |
KEYWORDS="~amd64 ~x86" |
107 |
IUSE="+alsa beats chua csoundac +cxx debug double-precision dssi examples fltk +fluidsynth |
108 |
+image jack java keyboard linear lua luajit nls osc openmp portaudio portmidi pulseaudio |
109 |
python samples static-libs stk tcl test +threads +utils vim-syntax" |
110 |
|
111 |
LANGS=" de en_GB en_US es_CO fr it ro ru" |
112 |
IUSE+="${LANGS// / linguas_}" |
113 |
|
114 |
RDEPEND=">=media-libs/libsndfile-1.0.16 |
115 |
alsa? ( media-libs/alsa-lib ) |
116 |
csoundac? ( x11-libs/fltk:1[threads?] |
117 |
dev-cpp/eigen:3 |
118 |
dev-libs/boost |
119 |
=dev-lang/python-2* ) |
120 |
dssi? ( media-libs/dssi |
121 |
media-libs/ladspa-sdk ) |
122 |
fluidsynth? ( media-sound/fluidsynth ) |
123 |
fltk? ( x11-libs/fltk:1[threads?] ) |
124 |
image? ( media-libs/libpng ) |
125 |
jack? ( media-sound/jack-audio-connection-kit ) |
126 |
java? ( >=virtual/jdk-1.5 ) |
127 |
keyboard? ( x11-libs/fltk:1[threads?] ) |
128 |
linear? ( sci-mathematics/gmm ) |
129 |
lua? ( |
130 |
luajit? ( dev-lang/luajit:2 ) |
131 |
!luajit? ( dev-lang/lua ) |
132 |
) |
133 |
osc? ( media-libs/liblo ) |
134 |
portaudio? ( media-libs/portaudio ) |
135 |
portmidi? ( media-libs/portmidi ) |
136 |
pulseaudio? ( media-sound/pulseaudio ) |
137 |
stk? ( media-libs/stk ) |
138 |
tcl? ( >=dev-lang/tcl-8.5 |
139 |
>=dev-lang/tk-8.5 ) |
140 |
utils? ( !media-sound/snd )" |
141 |
DEPEND="${RDEPEND} |
142 |
sys-devel/flex |
143 |
virtual/yacc |
144 |
chua? ( dev-libs/boost ) |
145 |
csoundac? ( dev-lang/swig ) |
146 |
nls? ( sys-devel/gettext ) |
147 |
test? ( =dev-lang/python-2* )" |
148 |
|
149 |
REQUIRED_USE="java? ( cxx ) |
150 |
linear? ( double-precision ) |
151 |
lua? ( cxx ) |
152 |
python? ( cxx )" |
153 |
|
154 |
S=${WORKDIR}/${MY_P} |
155 |
|
156 |
pkg_setup() { |
157 |
if use openmp ; then |
158 |
tc-has-openmp || die "Please switch to an openmp compatible compiler" |
159 |
fi |
160 |
|
161 |
if use python || use test ; then |
162 |
python_set_active_version 2 |
163 |
fi |
164 |
use python && python_pkg_setup |
165 |
} |
166 |
|
167 |
src_prepare() { |
168 |
epatch "${FILESDIR}"/${PN}-5.16.6-tests.patch |
169 |
epatch "${FILESDIR}"/${PN}-5.17.6-fltk.patch |
170 |
epatch "${FILESDIR}"/${PN}-5.17.6-porttime-in-portmidi.patch |
171 |
epatch "${FILESDIR}"/${P}-cmake.patch |
172 |
|
173 |
sed -i -e "s:^\(csoundExecutable =\).*:\1 \"${WORKDIR}/${P}_build/csound\":" \ |
174 |
tests/test.py || die |
175 |
|
176 |
sed -i -e '/set(PLUGIN_INSTALL_DIR/s/-${APIVERSION}//' CMakeLists.txt || die |
177 |
|
178 |
if [[ $(get_libdir) == "lib64" ]] ; then |
179 |
sed -i -e '/set(LIBRARY_INSTALL_DIR/s/lib/lib64/' CMakeLists.txt || die |
180 |
fi |
181 |
|
182 |
if use python ; then |
183 |
sed -i -e "/set(PYTHON_MODULE_INSTALL_DIR/s#\${LIBRARY_INSTALL_DIR}#$(python_get_sitedir)#" CMakeLists.txt || die |
184 |
fi |
185 |
} |
186 |
|
187 |
src_configure() { |
188 |
local myconf |
189 |
|
190 |
if use csoundac ; then |
191 |
myconf+=" -DBUILD_CSOUND_AC_PYTHON_INTERFACE=$(usex python ON OFF)" |
192 |
myconf+=" -DBUILD_CSOUND_AC_LUA_INTERFACE=$(usex lua ON OFF)" |
193 |
fi |
194 |
|
195 |
local mycmakeargs=( |
196 |
-DBUILD_NEW_PARSER=ON |
197 |
$(cmake-utils_use_use alsa ALSA) \ |
198 |
$(cmake-utils_use_build beats CSBEATS) \ |
199 |
$(cmake-utils_use_build chua CHUA_OPCODES) \ |
200 |
$(cmake-utils_use_build csoundac CSOUND_AC) \ |
201 |
$(cmake-utils_use_build cxx CXX_INTERFACE) \ |
202 |
$(cmake-utils_use debug NEW_PARSER_DEBUG) \ |
203 |
$(cmake-utils_use_use double-precision DOUBLE) \ |
204 |
$(cmake-utils_use_build dssi DSSI_OPCODES) \ |
205 |
$(cmake-utils_use_build fluidsynth FLUID_OPCODES) \ |
206 |
$(cmake-utils_use_use fltk FLTK) \ |
207 |
$(cmake-utils_use_build image IMAGE_OPCODES) \ |
208 |
$(cmake-utils_use_use jack JACK) \ |
209 |
$(cmake-utils_use_build jack JACK_OPCODES) \ |
210 |
$(cmake-utils_use_build java JAVA_INTERFACE) \ |
211 |
$(cmake-utils_use_build keyboard VIRTUAL_KEYBOARD) \ |
212 |
$(cmake-utils_use_build linear LINEAR_ALGEBRA_OPCODES) \ |
213 |
$(cmake-utils_use_build lua LUA_OPCODES) \ |
214 |
$(cmake-utils_use_build lua LUA_INTERFACE) \ |
215 |
$(cmake-utils_use_use nls GETTEXT) \ |
216 |
$(cmake-utils_use_build osc OSC_OPCODES) \ |
217 |
$(cmake-utils_use_use openmp OPEN_MP) \ |
218 |
$(cmake-utils_use_use portaudio PORTAUDIO) \ |
219 |
$(cmake-utils_use_use portmidi PORTMIDI) \ |
220 |
$(cmake-utils_use_use pulseaudio PULSEAUDIO) \ |
221 |
$(cmake-utils_use_build python PYTHON_OPCODES) \ |
222 |
$(cmake-utils_use_build python PYTHON_INTERFACE) \ |
223 |
$(cmake-utils_use_build static-libs STATIC_LIBRARY) \ |
224 |
$(cmake-utils_use_build stk STK_OPCODES) \ |
225 |
$(cmake-utils_use_build tcl TCLCSOUND) \ |
226 |
$(cmake-utils_use_build threads MULTI_CORE) \ |
227 |
$(cmake-utils_use_build utils UTILITIES) \ |
228 |
${myconf} |
229 |
) |
230 |
|
231 |
cmake-utils_src_configure |
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 |
cmake-utils_src_install |
242 |
|
243 |
dodoc AUTHORS ChangeLog readme-csound5-complete.txt |
244 |
|
245 |
# Generate env.d file |
246 |
if use double-precision ; then |
247 |
echo OPCODEDIR64=/usr/$(get_libdir)/${PN}/plugins64 > "${T}"/62${PN} |
248 |
else |
249 |
echo OPCODEDIR=/usr/$(get_libdir)/${PN}/plugins > "${T}"/62${PN} |
250 |
fi |
251 |
echo "CSSTRNGS=/usr/share/locale" >> "${T}"/62${PN} |
252 |
use stk && echo "RAWWAVE_PATH=/usr/share/csound/rawwaves" >> "${T}"/62${PN} |
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 |
} |