summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/coccinelle/ChangeLog8
-rw-r--r--dev-util/coccinelle/Manifest9
-rw-r--r--dev-util/coccinelle/coccinelle-0.2.5-r2.ebuild68
3 files changed, 80 insertions, 5 deletions
diff --git a/dev-util/coccinelle/ChangeLog b/dev-util/coccinelle/ChangeLog
index cbb49a02e3fa..0dca82f9b430 100644
--- a/dev-util/coccinelle/ChangeLog
+++ b/dev-util/coccinelle/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/coccinelle
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v 1.7 2011/05/09 21:14:09 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v 1.8 2011/06/26 19:45:57 aballier Exp $
+
+*coccinelle-0.2.5-r2 (26 Jun 2011)
+
+ 26 Jun 2011; Alexis Ballier <aballier@gentoo.org>
+ +coccinelle-0.2.5-r2.ebuild:
+ it depends on sexplib, not keyworded on x86, drop keywords
*coccinelle-0.2.5-r1 (09 May 2011)
diff --git a/dev-util/coccinelle/Manifest b/dev-util/coccinelle/Manifest
index c0445dc6fff7..526ee31ca541 100644
--- a/dev-util/coccinelle/Manifest
+++ b/dev-util/coccinelle/Manifest
@@ -3,12 +3,13 @@ Hash: SHA1
DIST coccinelle-0.2.5.tgz 2295665 RMD160 a0811ba0a2c50b70fc52155cc062af6ba383d0d2 SHA1 fa9aed17ee23a253cf01a8571b61d1320082751b SHA256 b80360d8106be90aff4801330f0400525c980409dadf3eb6a1079a7e43c5d017
EBUILD coccinelle-0.2.5-r1.ebuild 1893 RMD160 7e1b6ec5ecdf27be2bfe97b4a8856efe2f8df5b6 SHA1 a99e854511366c08c9f4583d3ce8164e560d2c72 SHA256 251b90bec95718184969f73e152f86cfea7e61636663307eabc4fbc98f83dfc3
-MISC ChangeLog 1449 RMD160 08a5ea36d7501186ab16ccafdabd1d4bae36e18c SHA1 d2a4e905300cc6ccb9cc548625b1d6fa773488f7 SHA256 6f051d6a14b787625a155cf0f1c0ad0aa4a907e6e76d8a5fba393e3f9cdf9d47
+EBUILD coccinelle-0.2.5-r2.ebuild 1906 RMD160 3c9ced3c8a6f9f39cf80f03ea1f45cf3c88d3c62 SHA1 08a34842a5321c71ffc51d85c6aec49d78128c42 SHA256 3a4d09f89e120bdfab9d604a6cbc3c3b4503239d4709bcc16c0dd25e88c03bbf
+MISC ChangeLog 1632 RMD160 db54b058e0f074108433e3af9014257b83a1ca2b SHA1 55c8f9b54b56d698b9d248661974a19c4ace164a SHA256 991f961a46ee3391811659fd54fece1acb4a9ebdd462731cd37fcb7082baf3e2
MISC metadata.xml 155 RMD160 dfaa057e679b01302a807c75a32a910098b26809 SHA1 94024f83dcacbb53e92be090dd0f994ec93dc90d SHA256 118048376ebb76f57628b0819f3de4856e73959c2578c88715d37ea2d1e0af81
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEUEARECAAYFAk3IWdEACgkQcaHudmEf86plcQCfUxIUxcslTMzl1xMHh+x6Jctz
-gggAmMdMZ6yJLCEIEglbg8g5j8Vwq0Y=
-=dgcs
+iEYEARECAAYFAk4HjHsACgkQvFcC4BYPU0olZQCgi3dMkUne74WbUqnFsT0hKp2u
+lM8An1DZ7qxUu0ViR9JtdC5qvErrF/LW
+=kuUK
-----END PGP SIGNATURE-----
diff --git a/dev-util/coccinelle/coccinelle-0.2.5-r2.ebuild b/dev-util/coccinelle/coccinelle-0.2.5-r2.ebuild
new file mode 100644
index 000000000000..12375a323e3d
--- /dev/null
+++ b/dev-util/coccinelle/coccinelle-0.2.5-r2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/coccinelle-0.2.5-r2.ebuild,v 1.1 2011/06/26 19:45:57 aballier Exp $
+
+EAPI="2"
+
+inherit multilib
+
+DESCRIPTION="Program matching and transformation engine"
+HOMEPAGE="http://coccinelle.lip6.fr/"
+SRC_URI="http://coccinelle.lip6.fr/distrib/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc +ocamlopt python ocaml"
+
+# ocaml enables ocaml scripting (uses findlib)
+RDEPEND="python? ( dev-lang/python )
+ >=dev-lang/ocaml-3.10[ocamlopt?]
+ dev-ml/sexplib
+ ocaml? ( dev-ml/findlib )"
+
+# dev-texlive/texlive-fontsextra contains 'ifsym.sty'
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ || ( dev-texlive/texlive-latexextra app-text/ptex )
+ dev-texlive/texlive-fontsextra )"
+
+src_configure() {
+ # non-autoconf
+ ./configure \
+ --prefix=/usr \
+ $(use ocamlopt || echo "--no-opt") \
+ $(use_with python) \
+ $(use_with ocaml) \
+ || die
+ sed -i "s:^LIBDIR=.*:LIBDIR=/usr/$(get_libdir)/ocaml/stublibs/:" Makefile.config
+ sed -i "s:^SHAREDIR=.*:SHAREDIR=/usr/libexec/${PN}/:" Makefile.config
+ sed -i "s:^MANDIR=.*:MANDIR=/usr/share/man/:" Makefile.config
+}
+
+src_compile() {
+ emake depend || die
+ emake || die
+ if use doc ; then
+ VARTEXFONTS="${T}"/fonts emake docs || die
+ fi
+ if use ocamlopt ; then
+ emake opt || die
+ fi
+}
+
+src_test() {
+ source env.sh # needed for built in-place python plugin
+ ./spatch standard.h -parse_c -dir tests/ || die
+ yes | ./spatch -iso_file standard.iso -macro_file_builtins standard.h -testall || die
+ if use ocamlopt ; then
+ ./spatch.opt -iso_file standard.iso -macro_file_builtins standard.h -testall || die
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc authors.txt bugs.txt changes.txt credits.txt readme.txt
+ use doc && dodoc docs/manual/*.pdf
+ export STRIP_MASK='*/coccinelle/spatch'
+}