1 |
commit: f23de55be394f55cb431760dec447a4d73a2d594 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 28 19:01:12 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 19:02:33 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f23de55b |
7 |
|
8 |
dev-util/coccinelle: Remove old, #586930 |
9 |
|
10 |
dev-util/coccinelle/Manifest | 4 - |
11 |
dev-util/coccinelle/coccinelle-1.0.0.ebuild | 139 --------------------- |
12 |
dev-util/coccinelle/coccinelle-1.0.1.ebuild | 139 --------------------- |
13 |
dev-util/coccinelle/coccinelle-1.0.2.ebuild | 132 ------------------- |
14 |
dev-util/coccinelle/coccinelle-1.0.4.ebuild | 132 ------------------- |
15 |
.../files/coccinelle-1.0.0_rc16-findtool.patch | 11 -- |
16 |
6 files changed, 557 deletions(-) |
17 |
|
18 |
diff --git a/dev-util/coccinelle/Manifest b/dev-util/coccinelle/Manifest |
19 |
index 9ad8b2c..7937f30 100644 |
20 |
--- a/dev-util/coccinelle/Manifest |
21 |
+++ b/dev-util/coccinelle/Manifest |
22 |
@@ -1,5 +1 @@ |
23 |
-DIST coccinelle-1.0.0.tgz 3427246 SHA256 e18b4c77964c6f623c385dc8b2fcb46beacd9811927617144620b12d93289e74 SHA512 0c59918dff3d33035f5c928b54de9cbe32f9146d9e4b82545d168140d1395ff5b3e446faff47f39dbb6fceb74f432b419e9c7322e834c11bb50b5fb5d4e4dd46 WHIRLPOOL 8714327d7156bd1ada0c6b0776fefcc4e46b9885354ca686d4de8b35c2dd1cf6372e91dfa3a04645295f411b40d57eee94d81cbd8dfe2c18f3dc3b15ff8e1926 |
24 |
-DIST coccinelle-1.0.1.tgz 2772730 SHA256 39caac46c1f80cbe5de21164c5b31a794e3befdb9cd7ef1d080d455ac171b526 SHA512 5a69476941a9582ca6e0663c468a87aba15b6e38243cbb532c517b75066c8fafe37cbe6d398d6183cc7a315c5680efdf425f0bc8cb2184dbf94e446879514a89 WHIRLPOOL 8b38b982b8d19c10c7e3ed77629b6883c4d6455da4da4d68251b492ce36490c5236573bf7c44a34e21887b8be0ca83b4efb39cf13b1c4c6db7db58979ee6a7bc |
25 |
-DIST coccinelle-1.0.2.tgz 2790829 SHA256 4e45b904f42c9b84732168782d491c8c1ab23bb85db06c4b9ba2762bea8ac679 SHA512 83c8e250a7e19126ce3f95d0455892d60b2d7a688af3a066edcfb9a8cc146f8a9281c9e019896421e1bc546d366114effef3116105eae19617ad45c26f42c534 WHIRLPOOL 15b64abbad31f49883e4cacc2282ed28eb67f64d951636ee6b690a474b072e6a029c4131adb727f5f7a8d86628b871db0cff144ad8478514529c4c5d5dee9074 |
26 |
-DIST coccinelle-1.0.4.tgz 2484218 SHA256 7f823813a2ea299c0f6c01d8419b83c4dc6617116d32ba99d726443a1c22b06d SHA512 1e7ad7adb700f2e0d844b3f5787c24fc40bc9a61354b5aefa0f957e524e74ba67a8bef594e837a479d3a5f3c8d89c2395e8636838e0451977de8bd3d588d7ce1 WHIRLPOOL 15759395a2253fa8322e034a02388b5f0f6cc0702e82d43e95c3c9ecc2fa5795cb4a3a3fbc48aa2104bd0173adfd58e046f804d63c3ccbe278796cbe4932f46e |
27 |
DIST coccinelle-1.0.5.tgz 5660596 SHA256 5efb093b538145b7526a06946c09c7caaa715006658af2049faa8739f459743b SHA512 0fee450554abc40feac9e745a252c1679f8016c82f04236e642e32e129618a950bb9657f1c447d62543289e95bbd4b1a8b0c6030373025c32a37068f82d30678 WHIRLPOOL 33ec9789d93f6cd35eda37f0647d3e3f3f53898fccc2df68aa30cec50ce82b4d392d84a0c97708cdf301b2f076cce1942b5d4a51dffb0bd177eb9dee460d3e6f |
28 |
|
29 |
diff --git a/dev-util/coccinelle/coccinelle-1.0.0.ebuild b/dev-util/coccinelle/coccinelle-1.0.0.ebuild |
30 |
deleted file mode 100644 |
31 |
index f7b4292..0000000 |
32 |
--- a/dev-util/coccinelle/coccinelle-1.0.0.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,139 +0,0 @@ |
35 |
-# Copyright 1999-2015 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
-# $Id$ |
38 |
- |
39 |
-EAPI="5" |
40 |
-PYTHON_COMPAT=( python2_7 ) |
41 |
- |
42 |
-inherit multilib eutils python-single-r1 bash-completion-r1 elisp-common autotools |
43 |
- |
44 |
-MY_P="${P/_/-}" |
45 |
-DESCRIPTION="Program matching and transformation engine" |
46 |
-HOMEPAGE="http://coccinelle.lip6.fr/" |
47 |
-SRC_URI="http://coccinelle.lip6.fr/distrib/${MY_P}.tgz" |
48 |
- |
49 |
-LICENSE="GPL-2" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="~amd64" |
52 |
-IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax" |
53 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
54 |
- |
55 |
-# ocaml enables ocaml scripting (uses findlib) |
56 |
-CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?] |
57 |
- dev-ml/sexplib:=[ocamlopt?] |
58 |
- dev-ml/menhir:=[ocamlopt?] |
59 |
- || ( dev-ml/camlp4:=[ocamlopt?] <dev-lang/ocaml-4.02.0 ) |
60 |
- dev-ml/parmap:=[ocamlopt?] |
61 |
- emacs? ( virtual/emacs ) |
62 |
- ocaml? ( dev-ml/findlib:= ) |
63 |
- pcre? ( dev-ml/pcre-ocaml:=[ocamlopt?] ) |
64 |
- python? ( ${PYTHON_DEPS} )" |
65 |
- |
66 |
-RDEPEND="${CDEPEND} |
67 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
68 |
- |
69 |
-# dev-texlive/texlive-fontsextra contains 'ifsym.sty' |
70 |
-DEPEND="${CDEPEND} |
71 |
- virtual/pkgconfig |
72 |
- doc? ( |
73 |
- virtual/latex-base |
74 |
- dev-texlive/texlive-latexextra |
75 |
- dev-texlive/texlive-fontsextra |
76 |
- )" |
77 |
- |
78 |
-REQUIRED_USE="test? ( ocaml python )" |
79 |
- |
80 |
-DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt ) |
81 |
- |
82 |
-S=${WORKDIR}/${MY_P} |
83 |
- |
84 |
-SITEFILE=50coccinelle-gentoo.el |
85 |
- |
86 |
-pkg_setup() { |
87 |
- use python && python-single-r1_pkg_setup |
88 |
-} |
89 |
- |
90 |
-src_prepare() { |
91 |
- if use python ; then |
92 |
- # fix python install location |
93 |
- sed -e "s:\$(SHAREDIR)/python:$(python_get_sitedir):" \ |
94 |
- -e "s:PYTHON_TARGET:PYTHON_INSTALL_TARGET:" \ |
95 |
- -i Makefile || die |
96 |
- fi |
97 |
- |
98 |
- sed -i "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" scripts/spatch.sh.in || die |
99 |
- |
100 |
- # This is regenerated by menhir, bundled version does not build with latest |
101 |
- # one... |
102 |
- rm -f parsing_cocci/parser_cocci_menhir.ml |
103 |
- |
104 |
- epatch "${FILESDIR}"/${PN}-1.0.0_rc16-findtool.patch |
105 |
- eautoreconf |
106 |
-} |
107 |
- |
108 |
-src_configure() { |
109 |
- econf \ |
110 |
- $(use_enable python) \ |
111 |
- $(use_enable ocaml) \ |
112 |
- $(use_enable pcre) \ |
113 |
- $(use_enable pcre pcre-syntax) |
114 |
- |
115 |
- sed -e "s:^LIBDIR=.*:LIBDIR=/usr/$(get_libdir)/ocaml/stublibs/:" \ |
116 |
- -e "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" \ |
117 |
- -i Makefile.config || die |
118 |
-} |
119 |
- |
120 |
-src_compile() { |
121 |
- emake depend |
122 |
- emake |
123 |
- |
124 |
- use ocamlopt && emake opt |
125 |
- |
126 |
- if use doc ; then |
127 |
- VARTEXFONTS="${T}"/fonts emake docs |
128 |
- fi |
129 |
- |
130 |
- if use emacs ; then |
131 |
- elisp-compile editors/emacs/cocci.el || die |
132 |
- fi |
133 |
-} |
134 |
- |
135 |
-src_test() { |
136 |
- source env.sh # needed for built in-place python plugin |
137 |
- ./spatch standard.h -parse_c -dir tests/ || die |
138 |
- yes | ./spatch -iso_file standard.iso -macro_file_builtins standard.h -testall || die |
139 |
- if use ocamlopt ; then |
140 |
- ./spatch.opt -iso_file standard.iso -macro_file_builtins standard.h -testall || die |
141 |
- fi |
142 |
-} |
143 |
- |
144 |
-src_install() { |
145 |
- default |
146 |
- |
147 |
- use doc && dodoc docs/manual/*.pdf |
148 |
- newbashcomp scripts/spatch.bash_completion spatch |
149 |
- |
150 |
- if use emacs ; then |
151 |
- elisp-install ${PN} editors/emacs/* |
152 |
- elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
153 |
- fi |
154 |
- |
155 |
- if use vim-syntax ; then |
156 |
- newdoc editors/vim/README README-vim |
157 |
- rm editors/vim/README || die |
158 |
- insinto /usr/share/vim/vimfiles |
159 |
- doins -r editors/vim/* |
160 |
- fi |
161 |
- |
162 |
- use python && python_optimize |
163 |
- |
164 |
- export STRIP_MASK='*/coccinelle/spatch' |
165 |
-} |
166 |
- |
167 |
-pkg_postinst() { |
168 |
- use emacs && elisp-site-regen |
169 |
-} |
170 |
- |
171 |
-pkg_postrm() { |
172 |
- use emacs && elisp-site-regen |
173 |
-} |
174 |
|
175 |
diff --git a/dev-util/coccinelle/coccinelle-1.0.1.ebuild b/dev-util/coccinelle/coccinelle-1.0.1.ebuild |
176 |
deleted file mode 100644 |
177 |
index 2a9f559..0000000 |
178 |
--- a/dev-util/coccinelle/coccinelle-1.0.1.ebuild |
179 |
+++ /dev/null |
180 |
@@ -1,139 +0,0 @@ |
181 |
-# Copyright 1999-2015 Gentoo Foundation |
182 |
-# Distributed under the terms of the GNU General Public License v2 |
183 |
-# $Id$ |
184 |
- |
185 |
-EAPI="5" |
186 |
-PYTHON_COMPAT=( python2_7 ) |
187 |
- |
188 |
-inherit multilib eutils python-single-r1 bash-completion-r1 elisp-common autotools |
189 |
- |
190 |
-MY_P="${P/_/-}" |
191 |
-DESCRIPTION="Program matching and transformation engine" |
192 |
-HOMEPAGE="http://coccinelle.lip6.fr/" |
193 |
-SRC_URI="http://coccinelle.lip6.fr/distrib/${MY_P}.tgz" |
194 |
- |
195 |
-LICENSE="GPL-2" |
196 |
-SLOT="0" |
197 |
-KEYWORDS="~amd64 ~x86" |
198 |
-IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax" |
199 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
200 |
- |
201 |
-# ocaml enables ocaml scripting (uses findlib) |
202 |
-CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?] |
203 |
- dev-ml/sexplib:=[ocamlopt?] |
204 |
- dev-ml/menhir:=[ocamlopt?] |
205 |
- || ( dev-ml/camlp4:=[ocamlopt?] <dev-lang/ocaml-4.02.0 ) |
206 |
- dev-ml/parmap:=[ocamlopt?] |
207 |
- emacs? ( virtual/emacs ) |
208 |
- ocaml? ( dev-ml/findlib:= ) |
209 |
- pcre? ( dev-ml/pcre-ocaml:=[ocamlopt?] ) |
210 |
- python? ( ${PYTHON_DEPS} )" |
211 |
- |
212 |
-RDEPEND="${CDEPEND} |
213 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
214 |
- |
215 |
-# dev-texlive/texlive-fontsextra contains 'ifsym.sty' |
216 |
-DEPEND="${CDEPEND} |
217 |
- virtual/pkgconfig |
218 |
- doc? ( |
219 |
- virtual/latex-base |
220 |
- dev-texlive/texlive-latexextra |
221 |
- dev-texlive/texlive-fontsextra |
222 |
- )" |
223 |
- |
224 |
-REQUIRED_USE="test? ( ocaml python )" |
225 |
- |
226 |
-DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt ) |
227 |
- |
228 |
-S=${WORKDIR}/${MY_P} |
229 |
- |
230 |
-SITEFILE=50coccinelle-gentoo.el |
231 |
- |
232 |
-pkg_setup() { |
233 |
- use python && python-single-r1_pkg_setup |
234 |
-} |
235 |
- |
236 |
-src_prepare() { |
237 |
- if use python ; then |
238 |
- # fix python install location |
239 |
- sed -e "s:\$(SHAREDIR)/python:$(python_get_sitedir):" \ |
240 |
- -e "s:PYTHON_TARGET:PYTHON_INSTALL_TARGET:" \ |
241 |
- -i Makefile || die |
242 |
- fi |
243 |
- |
244 |
- sed -i "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" scripts/spatch.sh.in || die |
245 |
- |
246 |
- # This is regenerated by menhir, bundled version does not build with latest |
247 |
- # one... |
248 |
- rm -f parsing_cocci/parser_cocci_menhir.ml |
249 |
- |
250 |
- epatch "${FILESDIR}"/${PN}-1.0.0_rc16-findtool.patch |
251 |
- eautoreconf |
252 |
-} |
253 |
- |
254 |
-src_configure() { |
255 |
- econf \ |
256 |
- $(use_enable python) \ |
257 |
- $(use_enable ocaml) \ |
258 |
- $(use_enable pcre) \ |
259 |
- $(use_enable pcre pcre-syntax) |
260 |
- |
261 |
- sed -e "s:^LIBDIR=.*:LIBDIR=/usr/$(get_libdir)/ocaml/stublibs/:" \ |
262 |
- -e "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" \ |
263 |
- -i Makefile.config || die |
264 |
-} |
265 |
- |
266 |
-src_compile() { |
267 |
- emake depend |
268 |
- emake |
269 |
- |
270 |
- use ocamlopt && emake opt |
271 |
- |
272 |
- if use doc ; then |
273 |
- VARTEXFONTS="${T}"/fonts emake docs |
274 |
- fi |
275 |
- |
276 |
- if use emacs ; then |
277 |
- elisp-compile editors/emacs/cocci.el || die |
278 |
- fi |
279 |
-} |
280 |
- |
281 |
-src_test() { |
282 |
- source env.sh # needed for built in-place python plugin |
283 |
- ./spatch standard.h -parse_c -dir tests/ || die |
284 |
- yes | ./spatch -iso_file standard.iso -macro_file_builtins standard.h -testall || die |
285 |
- if use ocamlopt ; then |
286 |
- ./spatch.opt -iso_file standard.iso -macro_file_builtins standard.h -testall || die |
287 |
- fi |
288 |
-} |
289 |
- |
290 |
-src_install() { |
291 |
- default |
292 |
- |
293 |
- use doc && dodoc docs/manual/*.pdf |
294 |
- newbashcomp scripts/spatch.bash_completion spatch |
295 |
- |
296 |
- if use emacs ; then |
297 |
- elisp-install ${PN} editors/emacs/* |
298 |
- elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
299 |
- fi |
300 |
- |
301 |
- if use vim-syntax ; then |
302 |
- newdoc editors/vim/README README-vim |
303 |
- rm editors/vim/README || die |
304 |
- insinto /usr/share/vim/vimfiles |
305 |
- doins -r editors/vim/* |
306 |
- fi |
307 |
- |
308 |
- use python && python_optimize |
309 |
- |
310 |
- export STRIP_MASK='*/coccinelle/spatch' |
311 |
-} |
312 |
- |
313 |
-pkg_postinst() { |
314 |
- use emacs && elisp-site-regen |
315 |
-} |
316 |
- |
317 |
-pkg_postrm() { |
318 |
- use emacs && elisp-site-regen |
319 |
-} |
320 |
|
321 |
diff --git a/dev-util/coccinelle/coccinelle-1.0.2.ebuild b/dev-util/coccinelle/coccinelle-1.0.2.ebuild |
322 |
deleted file mode 100644 |
323 |
index adc67ae..0000000 |
324 |
--- a/dev-util/coccinelle/coccinelle-1.0.2.ebuild |
325 |
+++ /dev/null |
326 |
@@ -1,132 +0,0 @@ |
327 |
-# Copyright 1999-2015 Gentoo Foundation |
328 |
-# Distributed under the terms of the GNU General Public License v2 |
329 |
-# $Id$ |
330 |
- |
331 |
-EAPI="5" |
332 |
-PYTHON_COMPAT=( python2_7 ) |
333 |
- |
334 |
-inherit multilib eutils python-single-r1 bash-completion-r1 elisp-common autotools |
335 |
- |
336 |
-MY_P="${P/_/-}" |
337 |
-DESCRIPTION="Program matching and transformation engine" |
338 |
-HOMEPAGE="http://coccinelle.lip6.fr/" |
339 |
-SRC_URI="http://coccinelle.lip6.fr/distrib/${MY_P}.tgz" |
340 |
- |
341 |
-LICENSE="GPL-2" |
342 |
-SLOT="0" |
343 |
-KEYWORDS="~amd64 ~x86" |
344 |
-IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax" |
345 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
346 |
- |
347 |
-# ocaml enables ocaml scripting (uses findlib) |
348 |
-CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?] |
349 |
- dev-ml/sexplib:=[ocamlopt?] |
350 |
- dev-ml/menhir:=[ocamlopt?] |
351 |
- || ( dev-ml/camlp4:=[ocamlopt?] <dev-lang/ocaml-4.02.0 ) |
352 |
- dev-ml/parmap:=[ocamlopt?] |
353 |
- emacs? ( virtual/emacs ) |
354 |
- ocaml? ( dev-ml/findlib:= ) |
355 |
- pcre? ( dev-ml/pcre-ocaml:=[ocamlopt?] ) |
356 |
- python? ( ${PYTHON_DEPS} )" |
357 |
- |
358 |
-RDEPEND="${CDEPEND} |
359 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
360 |
- |
361 |
-# dev-texlive/texlive-fontsextra contains 'ifsym.sty' |
362 |
-DEPEND="${CDEPEND} |
363 |
- virtual/pkgconfig |
364 |
- doc? ( |
365 |
- virtual/latex-base |
366 |
- dev-texlive/texlive-latexextra |
367 |
- dev-texlive/texlive-fontsextra |
368 |
- )" |
369 |
- |
370 |
-REQUIRED_USE="test? ( ocaml python )" |
371 |
- |
372 |
-DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt ) |
373 |
- |
374 |
-S=${WORKDIR}/${MY_P} |
375 |
- |
376 |
-SITEFILE=50coccinelle-gentoo.el |
377 |
- |
378 |
-pkg_setup() { |
379 |
- use python && python-single-r1_pkg_setup |
380 |
-} |
381 |
- |
382 |
-src_prepare() { |
383 |
- if use python ; then |
384 |
- # fix python install location |
385 |
- sed -e "s:\$(LIBDIR)/python:$(python_get_sitedir):" \ |
386 |
- -i Makefile || die |
387 |
- fi |
388 |
- |
389 |
- # This is regenerated by menhir, bundled version does not build with latest |
390 |
- # one... |
391 |
- rm -f parsing_cocci/parser_cocci_menhir.ml |
392 |
- |
393 |
- epatch "${FILESDIR}"/${PN}-1.0.0_rc16-findtool.patch |
394 |
- eautoreconf |
395 |
-} |
396 |
- |
397 |
-src_configure() { |
398 |
- econf \ |
399 |
- $(use_enable python) \ |
400 |
- $(use_enable ocaml) \ |
401 |
- $(use_enable pcre) \ |
402 |
- $(use_enable pcre pcre-syntax) |
403 |
-} |
404 |
- |
405 |
-src_compile() { |
406 |
- emake depend |
407 |
- emake |
408 |
- |
409 |
- use ocamlopt && emake opt |
410 |
- |
411 |
- if use doc ; then |
412 |
- VARTEXFONTS="${T}"/fonts emake docs |
413 |
- fi |
414 |
- |
415 |
- if use emacs ; then |
416 |
- elisp-compile editors/emacs/cocci.el || die |
417 |
- fi |
418 |
-} |
419 |
- |
420 |
-src_test() { |
421 |
- source env.sh # needed for built in-place python plugin |
422 |
- ./spatch standard.h -parse_c -dir tests/ || die |
423 |
- yes | ./spatch -iso_file standard.iso -macro_file_builtins standard.h -testall || die |
424 |
- if use ocamlopt ; then |
425 |
- ./spatch.opt -iso_file standard.iso -macro_file_builtins standard.h -testall || die |
426 |
- fi |
427 |
-} |
428 |
- |
429 |
-src_install() { |
430 |
- default |
431 |
- |
432 |
- use doc && dodoc docs/manual/*.pdf |
433 |
- newbashcomp scripts/spatch.bash_completion spatch |
434 |
- |
435 |
- if use emacs ; then |
436 |
- elisp-install ${PN} editors/emacs/* |
437 |
- elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
438 |
- fi |
439 |
- |
440 |
- if use vim-syntax ; then |
441 |
- newdoc editors/vim/README README-vim |
442 |
- rm editors/vim/README || die |
443 |
- insinto /usr/share/vim/vimfiles |
444 |
- doins -r editors/vim/* |
445 |
- fi |
446 |
- |
447 |
- use python && python_optimize |
448 |
- |
449 |
- export STRIP_MASK='*/coccinelle/spatch' |
450 |
-} |
451 |
- |
452 |
-pkg_postinst() { |
453 |
- use emacs && elisp-site-regen |
454 |
-} |
455 |
- |
456 |
-pkg_postrm() { |
457 |
- use emacs && elisp-site-regen |
458 |
-} |
459 |
|
460 |
diff --git a/dev-util/coccinelle/coccinelle-1.0.4.ebuild b/dev-util/coccinelle/coccinelle-1.0.4.ebuild |
461 |
deleted file mode 100644 |
462 |
index adc67ae..0000000 |
463 |
--- a/dev-util/coccinelle/coccinelle-1.0.4.ebuild |
464 |
+++ /dev/null |
465 |
@@ -1,132 +0,0 @@ |
466 |
-# Copyright 1999-2015 Gentoo Foundation |
467 |
-# Distributed under the terms of the GNU General Public License v2 |
468 |
-# $Id$ |
469 |
- |
470 |
-EAPI="5" |
471 |
-PYTHON_COMPAT=( python2_7 ) |
472 |
- |
473 |
-inherit multilib eutils python-single-r1 bash-completion-r1 elisp-common autotools |
474 |
- |
475 |
-MY_P="${P/_/-}" |
476 |
-DESCRIPTION="Program matching and transformation engine" |
477 |
-HOMEPAGE="http://coccinelle.lip6.fr/" |
478 |
-SRC_URI="http://coccinelle.lip6.fr/distrib/${MY_P}.tgz" |
479 |
- |
480 |
-LICENSE="GPL-2" |
481 |
-SLOT="0" |
482 |
-KEYWORDS="~amd64 ~x86" |
483 |
-IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax" |
484 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
485 |
- |
486 |
-# ocaml enables ocaml scripting (uses findlib) |
487 |
-CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?] |
488 |
- dev-ml/sexplib:=[ocamlopt?] |
489 |
- dev-ml/menhir:=[ocamlopt?] |
490 |
- || ( dev-ml/camlp4:=[ocamlopt?] <dev-lang/ocaml-4.02.0 ) |
491 |
- dev-ml/parmap:=[ocamlopt?] |
492 |
- emacs? ( virtual/emacs ) |
493 |
- ocaml? ( dev-ml/findlib:= ) |
494 |
- pcre? ( dev-ml/pcre-ocaml:=[ocamlopt?] ) |
495 |
- python? ( ${PYTHON_DEPS} )" |
496 |
- |
497 |
-RDEPEND="${CDEPEND} |
498 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
499 |
- |
500 |
-# dev-texlive/texlive-fontsextra contains 'ifsym.sty' |
501 |
-DEPEND="${CDEPEND} |
502 |
- virtual/pkgconfig |
503 |
- doc? ( |
504 |
- virtual/latex-base |
505 |
- dev-texlive/texlive-latexextra |
506 |
- dev-texlive/texlive-fontsextra |
507 |
- )" |
508 |
- |
509 |
-REQUIRED_USE="test? ( ocaml python )" |
510 |
- |
511 |
-DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt ) |
512 |
- |
513 |
-S=${WORKDIR}/${MY_P} |
514 |
- |
515 |
-SITEFILE=50coccinelle-gentoo.el |
516 |
- |
517 |
-pkg_setup() { |
518 |
- use python && python-single-r1_pkg_setup |
519 |
-} |
520 |
- |
521 |
-src_prepare() { |
522 |
- if use python ; then |
523 |
- # fix python install location |
524 |
- sed -e "s:\$(LIBDIR)/python:$(python_get_sitedir):" \ |
525 |
- -i Makefile || die |
526 |
- fi |
527 |
- |
528 |
- # This is regenerated by menhir, bundled version does not build with latest |
529 |
- # one... |
530 |
- rm -f parsing_cocci/parser_cocci_menhir.ml |
531 |
- |
532 |
- epatch "${FILESDIR}"/${PN}-1.0.0_rc16-findtool.patch |
533 |
- eautoreconf |
534 |
-} |
535 |
- |
536 |
-src_configure() { |
537 |
- econf \ |
538 |
- $(use_enable python) \ |
539 |
- $(use_enable ocaml) \ |
540 |
- $(use_enable pcre) \ |
541 |
- $(use_enable pcre pcre-syntax) |
542 |
-} |
543 |
- |
544 |
-src_compile() { |
545 |
- emake depend |
546 |
- emake |
547 |
- |
548 |
- use ocamlopt && emake opt |
549 |
- |
550 |
- if use doc ; then |
551 |
- VARTEXFONTS="${T}"/fonts emake docs |
552 |
- fi |
553 |
- |
554 |
- if use emacs ; then |
555 |
- elisp-compile editors/emacs/cocci.el || die |
556 |
- fi |
557 |
-} |
558 |
- |
559 |
-src_test() { |
560 |
- source env.sh # needed for built in-place python plugin |
561 |
- ./spatch standard.h -parse_c -dir tests/ || die |
562 |
- yes | ./spatch -iso_file standard.iso -macro_file_builtins standard.h -testall || die |
563 |
- if use ocamlopt ; then |
564 |
- ./spatch.opt -iso_file standard.iso -macro_file_builtins standard.h -testall || die |
565 |
- fi |
566 |
-} |
567 |
- |
568 |
-src_install() { |
569 |
- default |
570 |
- |
571 |
- use doc && dodoc docs/manual/*.pdf |
572 |
- newbashcomp scripts/spatch.bash_completion spatch |
573 |
- |
574 |
- if use emacs ; then |
575 |
- elisp-install ${PN} editors/emacs/* |
576 |
- elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
577 |
- fi |
578 |
- |
579 |
- if use vim-syntax ; then |
580 |
- newdoc editors/vim/README README-vim |
581 |
- rm editors/vim/README || die |
582 |
- insinto /usr/share/vim/vimfiles |
583 |
- doins -r editors/vim/* |
584 |
- fi |
585 |
- |
586 |
- use python && python_optimize |
587 |
- |
588 |
- export STRIP_MASK='*/coccinelle/spatch' |
589 |
-} |
590 |
- |
591 |
-pkg_postinst() { |
592 |
- use emacs && elisp-site-regen |
593 |
-} |
594 |
- |
595 |
-pkg_postrm() { |
596 |
- use emacs && elisp-site-regen |
597 |
-} |
598 |
|
599 |
diff --git a/dev-util/coccinelle/files/coccinelle-1.0.0_rc16-findtool.patch b/dev-util/coccinelle/files/coccinelle-1.0.0_rc16-findtool.patch |
600 |
deleted file mode 100644 |
601 |
index bc0dd97..0000000 |
602 |
--- a/dev-util/coccinelle/files/coccinelle-1.0.0_rc16-findtool.patch |
603 |
+++ /dev/null |
604 |
@@ -1,11 +0,0 @@ |
605 |
---- coccinelle-1.0.0-rc16/setup/cocci.m4 |
606 |
-+++ coccinelle-1.0.0-rc16/setup/cocci.m4 |
607 |
-@@ -285,7 +285,7 @@ |
608 |
- AC_SUBST([$1], [no]) |
609 |
- ], |
610 |
- [dnl find the tool |
611 |
-- AC_COCCI_FINDTOOL([$1],[[$]$1]) |
612 |
-+ AC_COCCI_FINDTOOL([$1],[$2]) |
613 |
- ]) |
614 |
- |
615 |
- AS_IF([test -z "[$]$1" -o "x[$]$1" = xno], |