Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/coccinelle/
Date: Fri, 30 Oct 2015 10:41:30
Message-Id: 1446201644.05e8eaaac7ffb4aa0a80b2b4a23d5e0c88086155.aballier@gentoo
1 commit: 05e8eaaac7ffb4aa0a80b2b4a23d5e0c88086155
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 30 10:40:44 2015 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 30 10:40:44 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05e8eaaa
7
8 dev-util/coccinelle: Bump to 1.0.4.
9
10 Package-Manager: portage-2.2.23
11
12 dev-util/coccinelle/Manifest | 1 +
13 dev-util/coccinelle/coccinelle-1.0.4.ebuild | 132 ++++++++++++++++++++++++++++
14 2 files changed, 133 insertions(+)
15
16 diff --git a/dev-util/coccinelle/Manifest b/dev-util/coccinelle/Manifest
17 index 5184a32..3e45afe 100644
18 --- a/dev-util/coccinelle/Manifest
19 +++ b/dev-util/coccinelle/Manifest
20 @@ -1,3 +1,4 @@
21 DIST coccinelle-1.0.0.tgz 3427246 SHA256 e18b4c77964c6f623c385dc8b2fcb46beacd9811927617144620b12d93289e74 SHA512 0c59918dff3d33035f5c928b54de9cbe32f9146d9e4b82545d168140d1395ff5b3e446faff47f39dbb6fceb74f432b419e9c7322e834c11bb50b5fb5d4e4dd46 WHIRLPOOL 8714327d7156bd1ada0c6b0776fefcc4e46b9885354ca686d4de8b35c2dd1cf6372e91dfa3a04645295f411b40d57eee94d81cbd8dfe2c18f3dc3b15ff8e1926
22 DIST coccinelle-1.0.1.tgz 2772730 SHA256 39caac46c1f80cbe5de21164c5b31a794e3befdb9cd7ef1d080d455ac171b526 SHA512 5a69476941a9582ca6e0663c468a87aba15b6e38243cbb532c517b75066c8fafe37cbe6d398d6183cc7a315c5680efdf425f0bc8cb2184dbf94e446879514a89 WHIRLPOOL 8b38b982b8d19c10c7e3ed77629b6883c4d6455da4da4d68251b492ce36490c5236573bf7c44a34e21887b8be0ca83b4efb39cf13b1c4c6db7db58979ee6a7bc
23 DIST coccinelle-1.0.2.tgz 2790829 SHA256 4e45b904f42c9b84732168782d491c8c1ab23bb85db06c4b9ba2762bea8ac679 SHA512 83c8e250a7e19126ce3f95d0455892d60b2d7a688af3a066edcfb9a8cc146f8a9281c9e019896421e1bc546d366114effef3116105eae19617ad45c26f42c534 WHIRLPOOL 15b64abbad31f49883e4cacc2282ed28eb67f64d951636ee6b690a474b072e6a029c4131adb727f5f7a8d86628b871db0cff144ad8478514529c4c5d5dee9074
24 +DIST coccinelle-1.0.4.tgz 2484218 SHA256 7f823813a2ea299c0f6c01d8419b83c4dc6617116d32ba99d726443a1c22b06d SHA512 1e7ad7adb700f2e0d844b3f5787c24fc40bc9a61354b5aefa0f957e524e74ba67a8bef594e837a479d3a5f3c8d89c2395e8636838e0451977de8bd3d588d7ce1 WHIRLPOOL 15759395a2253fa8322e034a02388b5f0f6cc0702e82d43e95c3c9ecc2fa5795cb4a3a3fbc48aa2104bd0173adfd58e046f804d63c3ccbe278796cbe4932f46e
25
26 diff --git a/dev-util/coccinelle/coccinelle-1.0.4.ebuild b/dev-util/coccinelle/coccinelle-1.0.4.ebuild
27 new file mode 100644
28 index 0000000..adc67ae
29 --- /dev/null
30 +++ b/dev-util/coccinelle/coccinelle-1.0.4.ebuild
31 @@ -0,0 +1,132 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI="5"
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +inherit multilib eutils python-single-r1 bash-completion-r1 elisp-common autotools
40 +
41 +MY_P="${P/_/-}"
42 +DESCRIPTION="Program matching and transformation engine"
43 +HOMEPAGE="http://coccinelle.lip6.fr/"
44 +SRC_URI="http://coccinelle.lip6.fr/distrib/${MY_P}.tgz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax"
50 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
51 +
52 +# ocaml enables ocaml scripting (uses findlib)
53 +CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
54 + dev-ml/sexplib:=[ocamlopt?]
55 + dev-ml/menhir:=[ocamlopt?]
56 + || ( dev-ml/camlp4:=[ocamlopt?] <dev-lang/ocaml-4.02.0 )
57 + dev-ml/parmap:=[ocamlopt?]
58 + emacs? ( virtual/emacs )
59 + ocaml? ( dev-ml/findlib:= )
60 + pcre? ( dev-ml/pcre-ocaml:=[ocamlopt?] )
61 + python? ( ${PYTHON_DEPS} )"
62 +
63 +RDEPEND="${CDEPEND}
64 + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
65 +
66 +# dev-texlive/texlive-fontsextra contains 'ifsym.sty'
67 +DEPEND="${CDEPEND}
68 + virtual/pkgconfig
69 + doc? (
70 + virtual/latex-base
71 + dev-texlive/texlive-latexextra
72 + dev-texlive/texlive-fontsextra
73 + )"
74 +
75 +REQUIRED_USE="test? ( ocaml python )"
76 +
77 +DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt )
78 +
79 +S=${WORKDIR}/${MY_P}
80 +
81 +SITEFILE=50coccinelle-gentoo.el
82 +
83 +pkg_setup() {
84 + use python && python-single-r1_pkg_setup
85 +}
86 +
87 +src_prepare() {
88 + if use python ; then
89 + # fix python install location
90 + sed -e "s:\$(LIBDIR)/python:$(python_get_sitedir):" \
91 + -i Makefile || die
92 + fi
93 +
94 + # This is regenerated by menhir, bundled version does not build with latest
95 + # one...
96 + rm -f parsing_cocci/parser_cocci_menhir.ml
97 +
98 + epatch "${FILESDIR}"/${PN}-1.0.0_rc16-findtool.patch
99 + eautoreconf
100 +}
101 +
102 +src_configure() {
103 + econf \
104 + $(use_enable python) \
105 + $(use_enable ocaml) \
106 + $(use_enable pcre) \
107 + $(use_enable pcre pcre-syntax)
108 +}
109 +
110 +src_compile() {
111 + emake depend
112 + emake
113 +
114 + use ocamlopt && emake opt
115 +
116 + if use doc ; then
117 + VARTEXFONTS="${T}"/fonts emake docs
118 + fi
119 +
120 + if use emacs ; then
121 + elisp-compile editors/emacs/cocci.el || die
122 + fi
123 +}
124 +
125 +src_test() {
126 + source env.sh # needed for built in-place python plugin
127 + ./spatch standard.h -parse_c -dir tests/ || die
128 + yes | ./spatch -iso_file standard.iso -macro_file_builtins standard.h -testall || die
129 + if use ocamlopt ; then
130 + ./spatch.opt -iso_file standard.iso -macro_file_builtins standard.h -testall || die
131 + fi
132 +}
133 +
134 +src_install() {
135 + default
136 +
137 + use doc && dodoc docs/manual/*.pdf
138 + newbashcomp scripts/spatch.bash_completion spatch
139 +
140 + if use emacs ; then
141 + elisp-install ${PN} editors/emacs/*
142 + elisp-site-file-install "${FILESDIR}"/${SITEFILE}
143 + fi
144 +
145 + if use vim-syntax ; then
146 + newdoc editors/vim/README README-vim
147 + rm editors/vim/README || die
148 + insinto /usr/share/vim/vimfiles
149 + doins -r editors/vim/*
150 + fi
151 +
152 + use python && python_optimize
153 +
154 + export STRIP_MASK='*/coccinelle/spatch'
155 +}
156 +
157 +pkg_postinst() {
158 + use emacs && elisp-site-regen
159 +}
160 +
161 +pkg_postrm() {
162 + use emacs && elisp-site-regen
163 +}