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