1 |
commit: 46793735da631fae7af30b9826c267a666439057 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 29 11:30:58 2017 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 29 11:32:25 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46793735 |
7 |
|
8 |
media-sound/csound: version bump to 6.09.1 |
9 |
|
10 |
Merge csound-manual back in as releases now appear to be coordinated for |
11 |
both on github. |
12 |
|
13 |
media-sound/csound/Manifest | 3 ++ |
14 |
.../{csound-9999.ebuild => csound-6.09.1.ebuild} | 41 ++++++++++++++++------ |
15 |
media-sound/csound/csound-9999.ebuild | 39 ++++++++++++++------ |
16 |
.../csound/files/csound-6.09.1-python.patch | 23 ++++++++++++ |
17 |
4 files changed, 86 insertions(+), 20 deletions(-) |
18 |
|
19 |
diff --git a/media-sound/csound/Manifest b/media-sound/csound/Manifest |
20 |
index 3a5290e6ef0..e2165ff71ae 100644 |
21 |
--- a/media-sound/csound/Manifest |
22 |
+++ b/media-sound/csound/Manifest |
23 |
@@ -1 +1,4 @@ |
24 |
+DIST Csound6.09.1_manual_html.zip 15537547 SHA256 b2e8ef90e43762c64643c6adddb1e276ac6b496b4fe64fe83e2b8393dbd69100 SHA512 8ddd821737b003d277eadf5b966907314ee50380ab5cc7b9716588d1bcfac8950f591e076752650508c924d1068bac0334523a3d3b869a4f6d4118b822003afd WHIRLPOOL e5d0091dca95c311af5ecf42482a2693851fda4b38f66d3ccc3d06568a6c548a0410b1d5c444b655cf9a3bc73fbbf7cede896311bf109f30bb907b9ed1b5b744 |
25 |
+DIST Csound6.09.1_manual_pdf.zip 8647957 SHA256 6c4287758791d4cd04c75adfea310d7d34581294d520d4da881a5653f47c9b24 SHA512 1dd2c0058751fe1f176a51741380884db115bdb52416512882c43212fd5ded1c489cc9c423059c1154a1e01528e7bf6e70621eac6ee83a1a4b5e2388ab85ae1b WHIRLPOOL b6460e66a2d043cef9adbd5bef61913f46bafdb3cb55ea107af5903c160e066544bed0011e4d0780d04945c7f585ea8952e48046e14ec74d8fb29cc3e2493050 |
26 |
DIST csound-6.08.0.tar.gz 33948686 SHA256 480bde5c07ac7fb8303b4c84c01710999815c2334501d007170adc9cdbf826a1 SHA512 22237f7c8ac875fd44789a729f5513dd7f751bbe0446b8a6e43c6a824b1c40978ef051122632af0c3975761fa7f873c01e88b9de7be313d9d23be09ed52c29ca WHIRLPOOL 987fb74135a55a945e67a2ef083bb69e315fa3807018db5619bb8a57d33760b3aa85a8f6bfcfb2ac46b9a3f8676398ea12e2ac068b97bf917ef3e1f698d33faf |
27 |
+DIST csound-6.09.1.tar.gz 41969942 SHA256 d49735b4ed50f2818b577abcface45fe7f9b7fb49ccd898db030893cbcdfc738 SHA512 c82d3e4fa5fba2c47f916ee102ba841477a819e1905e578089474ce5a7c4a4e70c4ec2768337621fcd2e3843af9b1129ce50f4a4fd3c33bfa27da52815b99454 WHIRLPOOL 31b3bba6ae60760cc70ca8e8234c45dcee1a070ab7a63891acac62218cfd39de3e11d24cb13789b9fb2152cebfa6a6a450a9c5c078531e8b7c5066206ae09079 |
28 |
|
29 |
diff --git a/media-sound/csound/csound-9999.ebuild b/media-sound/csound/csound-6.09.1.ebuild |
30 |
similarity index 86% |
31 |
copy from media-sound/csound/csound-9999.ebuild |
32 |
copy to media-sound/csound/csound-6.09.1.ebuild |
33 |
index 93c01700dd0..13059c170b0 100644 |
34 |
--- a/media-sound/csound/csound-9999.ebuild |
35 |
+++ b/media-sound/csound/csound-6.09.1.ebuild |
36 |
@@ -2,31 +2,35 @@ |
37 |
# Distributed under the terms of the GNU General Public License v2 |
38 |
|
39 |
EAPI=6 |
40 |
- |
41 |
PYTHON_COMPAT=( python2_7 ) |
42 |
|
43 |
-inherit eutils java-pkg-opt-2 toolchain-funcs versionator python-single-r1 cmake-utils |
44 |
+inherit java-pkg-opt-2 toolchain-funcs python-single-r1 cmake-utils |
45 |
|
46 |
-if [[ ${PV} == *9999 ]]; then |
47 |
+if [[ ${PV} == "9999" ]]; then |
48 |
EGIT_REPO_URI="https://github.com/csound/csound.git" |
49 |
inherit git-r3 |
50 |
else |
51 |
- SRC_URI="https://github.com/csound/csound/archive/${PV}.tar.gz -> ${P}.tar.gz" |
52 |
+ DOC_P="Csound${PV}" |
53 |
+ SRC_URI="https://github.com/csound/csound/archive/${PV}.tar.gz -> ${P}.tar.gz |
54 |
+ doc? ( |
55 |
+ https://github.com/csound/csound/releases/download/${PV}/${DOC_P}_manual_pdf.zip |
56 |
+ https://github.com/csound/csound/releases/download/${PV}/${DOC_P}_manual_html.zip |
57 |
+ )" |
58 |
KEYWORDS="~amd64 ~x86" |
59 |
fi |
60 |
|
61 |
DESCRIPTION="A sound design and signal processing system for composition and performance" |
62 |
HOMEPAGE="http://csound.github.io/" |
63 |
|
64 |
-LICENSE="LGPL-2.1" |
65 |
+LICENSE="LGPL-2.1 doc? ( FDL-1.2+ )" |
66 |
SLOT="0" |
67 |
-IUSE="+alsa beats chua csoundac curl +cxx debug double-precision dssi examples |
68 |
+IUSE="+alsa beats chua csoundac curl +cxx debug doc double-precision dssi examples |
69 |
fltk +fluidsynth +image jack java keyboard linear lua luajit nls osc openmp |
70 |
portaudio portmidi pulseaudio python samples score static-libs stk tcl test |
71 |
+threads +utils vim-syntax websocket" |
72 |
|
73 |
-LANGS=" de en_US es_CO fr it ro ru" |
74 |
-IUSE+="${LANGS// / linguas_}" |
75 |
+IUSE_LANGS=" de en_US es es_CO fr it ro ru" |
76 |
+IUSE+="${IUSE_LANGS// / linguas_}" |
77 |
|
78 |
REQUIRED_USE=" |
79 |
csoundac? ( || ( lua python ) ) |
80 |
@@ -86,9 +90,20 @@ DEPEND="${RDEPEND} |
81 |
) |
82 |
" |
83 |
|
84 |
+if [[ ${PV} != "9999" ]]; then |
85 |
+ DEPEND+=" |
86 |
+ doc? ( |
87 |
+ app-arch/unzip |
88 |
+ !app-doc/csound-manual |
89 |
+ ) |
90 |
+ " |
91 |
+fi |
92 |
+ |
93 |
# requires specific alsa settings |
94 |
RESTRICT="test" |
95 |
|
96 |
+PATCHES=( "${FILESDIR}"/${P}-python.patch ) |
97 |
+ |
98 |
pkg_pretend() { |
99 |
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
100 |
} |
101 |
@@ -109,7 +124,7 @@ src_prepare() { |
102 |
-i CMakeLists.txt || die |
103 |
|
104 |
local lang |
105 |
- for lang in ${LANGS} ; do |
106 |
+ for lang in ${IUSE_LANGS} ; do |
107 |
if ! use linguas_${lang} ; then |
108 |
sed -i "/compile_po(${lang}/d" po/CMakeLists.txt || die |
109 |
fi |
110 |
@@ -175,7 +190,7 @@ src_install() { |
111 |
cmake-utils_src_install |
112 |
dodoc -r Release_Notes/. |
113 |
|
114 |
- # Generate env.d file |
115 |
+ # generate env.d file |
116 |
cat > "${T}"/62${PN} <<-_EOF_ || die |
117 |
OPCODEDIR$(usex double-precision 64 '')="${EPREFIX}/usr/$(get_libdir)/${PN}/plugins$(usex double-precision 64 '')" |
118 |
CSSTRNGS="${EPREFIX}/usr/share/locale" |
119 |
@@ -203,6 +218,12 @@ src_install() { |
120 |
mv "${ED%/}"/usr/bin/{,csound_}extract || die |
121 |
|
122 |
use python && python_optimize |
123 |
+ |
124 |
+ # install docs |
125 |
+ if [[ ${PV} != "9999" ]] && use doc ; then |
126 |
+ dodoc "${WORKDIR}"/*.pdf |
127 |
+ dodoc -r "${WORKDIR}"/html |
128 |
+ fi |
129 |
} |
130 |
|
131 |
pkg_postinst() { |
132 |
|
133 |
diff --git a/media-sound/csound/csound-9999.ebuild b/media-sound/csound/csound-9999.ebuild |
134 |
index 93c01700dd0..73a1cd39197 100644 |
135 |
--- a/media-sound/csound/csound-9999.ebuild |
136 |
+++ b/media-sound/csound/csound-9999.ebuild |
137 |
@@ -2,31 +2,35 @@ |
138 |
# Distributed under the terms of the GNU General Public License v2 |
139 |
|
140 |
EAPI=6 |
141 |
- |
142 |
PYTHON_COMPAT=( python2_7 ) |
143 |
|
144 |
-inherit eutils java-pkg-opt-2 toolchain-funcs versionator python-single-r1 cmake-utils |
145 |
+inherit java-pkg-opt-2 toolchain-funcs python-single-r1 cmake-utils |
146 |
|
147 |
-if [[ ${PV} == *9999 ]]; then |
148 |
+if [[ ${PV} == "9999" ]]; then |
149 |
EGIT_REPO_URI="https://github.com/csound/csound.git" |
150 |
inherit git-r3 |
151 |
else |
152 |
- SRC_URI="https://github.com/csound/csound/archive/${PV}.tar.gz -> ${P}.tar.gz" |
153 |
+ DOC_P="Csound${PV}" |
154 |
+ SRC_URI="https://github.com/csound/csound/archive/${PV}.tar.gz -> ${P}.tar.gz |
155 |
+ doc? ( |
156 |
+ https://github.com/csound/csound/releases/download/${PV}/${DOC_P}_manual_pdf.zip |
157 |
+ https://github.com/csound/csound/releases/download/${PV}/${DOC_P}_manual_html.zip |
158 |
+ )" |
159 |
KEYWORDS="~amd64 ~x86" |
160 |
fi |
161 |
|
162 |
DESCRIPTION="A sound design and signal processing system for composition and performance" |
163 |
HOMEPAGE="http://csound.github.io/" |
164 |
|
165 |
-LICENSE="LGPL-2.1" |
166 |
+LICENSE="LGPL-2.1 doc? ( FDL-1.2+ )" |
167 |
SLOT="0" |
168 |
-IUSE="+alsa beats chua csoundac curl +cxx debug double-precision dssi examples |
169 |
+IUSE="+alsa beats chua csoundac curl +cxx debug doc double-precision dssi examples |
170 |
fltk +fluidsynth +image jack java keyboard linear lua luajit nls osc openmp |
171 |
portaudio portmidi pulseaudio python samples score static-libs stk tcl test |
172 |
+threads +utils vim-syntax websocket" |
173 |
|
174 |
-LANGS=" de en_US es_CO fr it ro ru" |
175 |
-IUSE+="${LANGS// / linguas_}" |
176 |
+IUSE_LANGS=" de en_US es es_CO fr it ro ru" |
177 |
+IUSE+="${IUSE_LANGS// / linguas_}" |
178 |
|
179 |
REQUIRED_USE=" |
180 |
csoundac? ( || ( lua python ) ) |
181 |
@@ -86,6 +90,15 @@ DEPEND="${RDEPEND} |
182 |
) |
183 |
" |
184 |
|
185 |
+if [[ ${PV} != "9999" ]]; then |
186 |
+ DEPEND+=" |
187 |
+ doc? ( |
188 |
+ app-arch/unzip |
189 |
+ !app-doc/csound-manual |
190 |
+ ) |
191 |
+ " |
192 |
+fi |
193 |
+ |
194 |
# requires specific alsa settings |
195 |
RESTRICT="test" |
196 |
|
197 |
@@ -109,7 +122,7 @@ src_prepare() { |
198 |
-i CMakeLists.txt || die |
199 |
|
200 |
local lang |
201 |
- for lang in ${LANGS} ; do |
202 |
+ for lang in ${IUSE_LANGS} ; do |
203 |
if ! use linguas_${lang} ; then |
204 |
sed -i "/compile_po(${lang}/d" po/CMakeLists.txt || die |
205 |
fi |
206 |
@@ -175,7 +188,7 @@ src_install() { |
207 |
cmake-utils_src_install |
208 |
dodoc -r Release_Notes/. |
209 |
|
210 |
- # Generate env.d file |
211 |
+ # generate env.d file |
212 |
cat > "${T}"/62${PN} <<-_EOF_ || die |
213 |
OPCODEDIR$(usex double-precision 64 '')="${EPREFIX}/usr/$(get_libdir)/${PN}/plugins$(usex double-precision 64 '')" |
214 |
CSSTRNGS="${EPREFIX}/usr/share/locale" |
215 |
@@ -203,6 +216,12 @@ src_install() { |
216 |
mv "${ED%/}"/usr/bin/{,csound_}extract || die |
217 |
|
218 |
use python && python_optimize |
219 |
+ |
220 |
+ # install docs |
221 |
+ if [[ ${PV} != "9999" ]] && use doc ; then |
222 |
+ dodoc "${WORKDIR}"/*.pdf |
223 |
+ dodoc -r "${WORKDIR}"/html |
224 |
+ fi |
225 |
} |
226 |
|
227 |
pkg_postinst() { |
228 |
|
229 |
diff --git a/media-sound/csound/files/csound-6.09.1-python.patch b/media-sound/csound/files/csound-6.09.1-python.patch |
230 |
new file mode 100644 |
231 |
index 00000000000..47461e48aaf |
232 |
--- /dev/null |
233 |
+++ b/media-sound/csound/files/csound-6.09.1-python.patch |
234 |
@@ -0,0 +1,23 @@ |
235 |
+Respect externally set PYTHON_MODULE_INSTALL_DIR. |
236 |
+ |
237 |
+--- csound-6.09.1/CMakeLists.txt |
238 |
++++ csound-6.09.1/CMakeLists.txt |
239 |
+@@ -218,11 +218,13 @@ |
240 |
+ set(PLUGIN_INSTALL_DIR "${LIBRARY_INSTALL_DIR}/csound/plugins-${APIVERSION}") |
241 |
+ endif() |
242 |
+ |
243 |
+-execute_process ( |
244 |
+- COMMAND python -c |
245 |
+- "import site, sys; sys.stdout.write(site.getusersitepackages())" |
246 |
+- OUTPUT_VARIABLE PYTHON_MODULE_INSTALL_DIR |
247 |
+- ) |
248 |
++if(NOT DEFINED PYTHON_MODULE_INSTALL_DIR) |
249 |
++ execute_process ( |
250 |
++ COMMAND python -c |
251 |
++ "import site, sys; sys.stdout.write(site.getusersitepackages())" |
252 |
++ OUTPUT_VARIABLE PYTHON_MODULE_INSTALL_DIR |
253 |
++ ) |
254 |
++endif() |
255 |
+ |
256 |
+ set(JAVA_MODULE_INSTALL_DIR ${LIBRARY_INSTALL_DIR}) |
257 |
+ set(LUA_MODULE_INSTALL_DIR ${LIBRARY_INSTALL_DIR}) |