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