Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/coccinelle: ChangeLog coccinelle-1.0.0_rc14.ebuild
Date: Wed, 01 Aug 2012 07:12:14
Message-Id: 20120801071204.7E3D72004B@flycatcher.gentoo.org
1 radhermit 12/08/01 07:12:04
2
3 Modified: ChangeLog
4 Added: coccinelle-1.0.0_rc14.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.20 dev-util/coccinelle/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccinelle/ChangeLog?rev=1.20&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccinelle/ChangeLog?rev=1.20&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccinelle/ChangeLog?r1=1.19&r2=1.20
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v
20 retrieving revision 1.19
21 retrieving revision 1.20
22 diff -u -r1.19 -r1.20
23 --- ChangeLog 30 Jun 2012 16:09:07 -0000 1.19
24 +++ ChangeLog 1 Aug 2012 07:12:04 -0000 1.20
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-util/coccinelle
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v 1.19 2012/06/30 16:09:07 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v 1.20 2012/08/01 07:12:04 radhermit Exp $
30 +
31 +*coccinelle-1.0.0_rc14 (01 Aug 2012)
32 +
33 + 01 Aug 2012; Tim Harder <radhermit@g.o> +coccinelle-1.0.0_rc14.ebuild:
34 + Version bump.
35
36 *coccinelle-1.0.0_rc12 (30 Jun 2012)
37
38
39
40
41 1.1 dev-util/coccinelle/coccinelle-1.0.0_rc14.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccinelle/coccinelle-1.0.0_rc14.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccinelle/coccinelle-1.0.0_rc14.ebuild?rev=1.1&content-type=text/plain
45
46 Index: coccinelle-1.0.0_rc14.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/coccinelle-1.0.0_rc14.ebuild,v 1.1 2012/08/01 07:12:04 radhermit Exp $
51
52 EAPI="4"
53 PYTHON_DEPEND="python? 2"
54
55 inherit multilib eutils python bash-completion-r1 elisp-common
56
57 MY_P="${P/_/-}"
58 DESCRIPTION="Program matching and transformation engine"
59 HOMEPAGE="http://coccinelle.lip6.fr/"
60 SRC_URI="http://coccinelle.lip6.fr/distrib/${MY_P}.tgz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax"
66
67 # ocaml enables ocaml scripting (uses findlib)
68 CDEPEND=">=dev-lang/ocaml-3.10[ocamlopt?]
69 dev-ml/sexplib
70 emacs? ( virtual/emacs )
71 ocaml? ( dev-ml/findlib )
72 pcre? ( dev-ml/pcre-ocaml )"
73
74 RDEPEND="${CDEPEND}
75 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
76
77 # dev-texlive/texlive-fontsextra contains 'ifsym.sty'
78 DEPEND="${CDEPEND}
79 virtual/pkgconfig
80 doc? (
81 virtual/latex-base
82 dev-texlive/texlive-latexextra
83 dev-texlive/texlive-fontsextra
84 )"
85
86 REQUIRED_USE="test? ( ocaml python )"
87
88 DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt )
89
90 S=${WORKDIR}/${MY_P}
91
92 SITEFILE=50coccinelle-gentoo.el
93
94 pkg_setup() {
95 if use python ; then
96 python_set_active_version 2
97 python_pkg_setup
98 fi
99 }
100
101 src_prepare() {
102 if use python ; then
103 # Fix python install location
104 sed -i -e "s:\$(SHAREDIR)/python:$(python_get_sitedir):" \
105 -e "s:PYTHON_TARGET:PYTHON_INSTALL_TARGET:" Makefile || die
106 sed -i -e "/export PYTHONPATH/s:\$COCCINELLE_HOME/python:$(python_get_sitedir):" \
107 scripts/spatch.sh.in || die
108 fi
109 }
110
111 src_configure() {
112 econf \
113 $(use_enable python) \
114 $(use_enable ocaml) \
115 $(use_enable pcre) \
116 $(use_enable pcre pcre-syntax)
117
118 sed -i -e "s:^LIBDIR=.*:LIBDIR=/usr/$(get_libdir)/ocaml/stublibs/:" \
119 -e "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" \
120 Makefile.config || die
121 }
122
123 src_compile() {
124 emake depend
125 emake
126
127 use ocamlopt && emake opt
128
129 if use doc ; then
130 VARTEXFONTS="${T}"/fonts emake docs
131 fi
132
133 if use emacs ; then
134 elisp-compile editors/emacs/cocci.el || die
135 fi
136 }
137
138 src_test() {
139 source env.sh # needed for built in-place python plugin
140 ./spatch standard.h -parse_c -dir tests/ || die
141 yes | ./spatch -iso_file standard.iso -macro_file_builtins standard.h -testall || die
142 if use ocamlopt ; then
143 ./spatch.opt -iso_file standard.iso -macro_file_builtins standard.h -testall || die
144 fi
145 }
146
147 src_install() {
148 default
149
150 use doc && dodoc docs/manual/*.pdf
151 newbashcomp scripts/spatch.bash_completion spatch
152
153 if use emacs ; then
154 elisp-install ${PN} editors/emacs/*
155 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
156 fi
157
158 if use vim-syntax ; then
159 newdoc editors/vim/README README-vim
160 rm editors/vim/README || die
161 insinto /usr/share/vim/vimfiles
162 doins -r editors/vim/*
163 fi
164
165 export STRIP_MASK='*/coccinelle/spatch'
166 }
167
168 pkg_postinst() {
169 use emacs && elisp-site-regen
170 }
171
172 pkg_postrm() {
173 use emacs && elisp-site-regen
174 }