summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-08-31 21:28:13 +0000
committerTim Harder <radhermit@gentoo.org>2012-08-31 21:28:13 +0000
commit9a16aac8dd5624edd444946fff78149a7890237a (patch)
tree2e9d2686766e560e2e1f2bc244278506517b33f8 /dev-util
parentRemove plib dependency, bug 433143. (diff)
downloadhistorical-9a16aac8dd5624edd444946fff78149a7890237a.tar.gz
historical-9a16aac8dd5624edd444946fff78149a7890237a.tar.bz2
historical-9a16aac8dd5624edd444946fff78149a7890237a.zip
Revision bump. Fix script location for spatch binary.
Package-Manager: portage-2.2.0_alpha123/cvs/Linux x86_64
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/coccinelle/ChangeLog8
-rw-r--r--dev-util/coccinelle/Manifest17
-rw-r--r--dev-util/coccinelle/coccinelle-1.0.0_rc15-r1.ebuild133
3 files changed, 149 insertions, 9 deletions
diff --git a/dev-util/coccinelle/ChangeLog b/dev-util/coccinelle/ChangeLog
index b5b3bc9b8045..78867a6e9795 100644
--- a/dev-util/coccinelle/ChangeLog
+++ b/dev-util/coccinelle/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/coccinelle
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v 1.24 2012/08/20 17:34:06 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v 1.25 2012/08/31 21:28:13 radhermit Exp $
+
+*coccinelle-1.0.0_rc15-r1 (31 Aug 2012)
+
+ 31 Aug 2012; Tim Harder <radhermit@gentoo.org>
+ +coccinelle-1.0.0_rc15-r1.ebuild:
+ Revision bump. Fix script location for spatch binary.
20 Aug 2012; Tim Harder <radhermit@gentoo.org> -coccinelle-1.0.0_rc12.ebuild:
Remove old.
diff --git a/dev-util/coccinelle/Manifest b/dev-util/coccinelle/Manifest
index f8e676cbc4c2..1811a004072e 100644
--- a/dev-util/coccinelle/Manifest
+++ b/dev-util/coccinelle/Manifest
@@ -6,17 +6,18 @@ AUX coccinelle-1.0.0_rc14-findtool.patch 685 SHA256 c33224288cc3a7c768e5bac7f203
DIST coccinelle-1.0.0-rc14.tgz 3529203 SHA256 9e5c08ea1684e595508beeaa602387334e18260e00fdc15d71a33a9084b8dc77 SHA512 87dc23b2479a2799279025215ffa580ca4a1be24867f1a5f083e0804a604d19e10ccd2eeb4c783a6b1ef41fa2a71530d8bf8834c093b035501555d0db3bcd1c2 WHIRLPOOL 4d1786e398710e33c53aab208b1ff128c5d71f1e5c172a8d3ce8bbde0a628e93f9c4287e213387807e74e10e4933addde07bc71f82a058131b88bf9f1887a365
DIST coccinelle-1.0.0-rc15.tgz 3328556 SHA256 07fab4e17512925b958890bb13c0809797074f2e44a1107b0074bdcc156b9596 SHA512 d0800ac087e9acefd6fe1bd6fae5c8a912c94dd3a9ac5566b984f97ebee4f96302db00d12ec5111e75f4aa410233093115a8cd166367b25e4464c5aa0bd08993 WHIRLPOOL 63c32074102e11e89e8342d92a4ba6716b2092c7d6fab80791a677a9bce98b756674da71e4f1e441e46833c756232803bdaec8c9ce0695bb612930d21686cc91
EBUILD coccinelle-1.0.0_rc14.ebuild 3132 SHA256 80a59a02f086bd0d3e39a8d54791ea11abf1c6cd07c324580930dccdaa58b5af SHA512 fd031c14f26684bca7b5b6f5c280eee7051b991e40f67b3cfb4cd434ca4be132fffe5eb6cf43ea797e7e7c6934fec501bb65a162ab0ef9d26f7d054d79a754c0 WHIRLPOOL 987be955eb3a6aa837e48925f84d560fd92f41bb859b215c97d98543c3a7f5a7c090a529574946308b29f5b8a8547037d6afb1cede848a835f4487168075eef9
+EBUILD coccinelle-1.0.0_rc15-r1.ebuild 3127 SHA256 807110f82b5ccff81ddcae016aaadc8b674440b0f95a0499279b1e3173e4e6ca SHA512 5b27613424c942d14f448371397f7a7ec621071450ac8081093c433d16799cfb436680b4882b55e44b2ff44bb8a3a886734012ae0f86e4bd83494c22fcc8ab67 WHIRLPOOL 9b93df357b5856b83f6c3479c74762259a115fdcf4afc5807787ba689c97d55e7a11c35383fe04e76235a9fa9214a490818ddfabafc369af5a62322be5c29553
EBUILD coccinelle-1.0.0_rc15.ebuild 3144 SHA256 5ac5604cc8494280a252e1fa1d74d1fe7075104d20f20ce5792b7b2ec2ef0893 SHA512 442ec48c1313c2f3d39e151e87bc54c154b77eb922204046e95d603ddf78380e8865eeb658160bb1b78aa02a5a9dce3aa491f42d565c487452c829f2512a1dab WHIRLPOOL a0a02f9b92621c2cbaf23513671fb20f0a46ecd793f082e8c6f7519756887db8228488ca8fa089008c9a550944ff007723d9382a3a0e13dfee41bd857c6fb0ad
-MISC ChangeLog 4055 SHA256 2e3b5511d751f2aa8f73d102a5492986de02872263dd6564174f539efa198c81 SHA512 a844ccec54e54c1de9896ab5bb72e12194cc504fe1f39070b1df4a49dd7e544c39bcd11ed9cda1551e5a6888303969f02a791a9eca7fa67ef7670b024e7a8763 WHIRLPOOL 1bb6ec43b3b6ef29f7677db73763c25aeb2abd0ac05e9e1a3b3c87acf9b60ccba8e61677b06d6f26434838a2060b70e1c752ea2ab9ada68453e71e5f3916914e
+MISC ChangeLog 4238 SHA256 12c8bfd0a7213ed312bd8e11eca61c7644887a6f990a41ab09d6eb9c9eb4945e SHA512 1e982676ccd41cdc3e202e068e726e83d5c1cf81e2bee822cd2dc5d16f023e608df53a44328ab7b949b30a68fb866720a748d404ce53251eb193a995ae9b4041 WHIRLPOOL 2deaa727ac8fd77316b9f877f499752872b39d0dc563bca31af1770a4f6c4937cfeb5c38b464f4504f726dba1782d06ca9d20f77d6a2a51676c33eb7c7b1a012
MISC metadata.xml 246 SHA256 7c41a7e52e792cf6b02e544290706ab0266df8c36214b503083c4daa89a636fe SHA512 2f2e5377658d7b8bb082253b0fb66d54c086e005cbc574f60050b41c039f116e9dc142d1618950f635de7ddd9ab0e7f15c431f660e81bacd01215cbf25be589e WHIRLPOOL f63fe763cf8a07f7c56f0f55a72f1b567d91dbc477654939933178af55edc4687700d0952424669006b301377ccffd3b1510b2290e75b070e1c23b7d9f74f4dd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBCAAGBQJQMnUTAAoJEEqz6FtPBkyjBSUIAIVWhw34uQ7EoZs2xN3BP6m8
-iWPKFd/h/4AS20biDhkvCPGJ++JGrSuh4+FW6gqMtWCUf1AXQTEVxBONoupp9Y/R
-6b1y31WfJLGmeyN54sKk0sOvp3OzBFAVGMn5nfK1v45bs0ldifB/YuLi5myB1x7j
-E1TofW4B8DS23lXNn/X4tNf7yVmxS/z6sciHGRcZeO08YjVjK4G7KKac5A2R2Wyp
-w60EgqYCFpy30PDJcUqjZm/NCh9I1mnjx8hAGJemnZjzPWuRHUZpFO/FETUAAqUg
-UhPmuED9YD6/OamG2x8RouqlMeDCRGNrmiHmDFVX3FzEDANySZ0fE58TB79u3gI=
-=JAHF
+iQEcBAEBCAAGBQJQQSx2AAoJEEqz6FtPBkyjoNAH/RDT284LIojujmIfk3KEVs2X
+oZ3MvK72UDHT1uINGlf4jKNbHK91vuLfOXIV/F/oUYsW9NYF3rR+a0vnUfKGoDFt
+oo91p9MhsN5YJCQEvO6rIqzLj40BdTgc9opqxVY7CcGl52MvF+uZt69XnLC2Pt+c
+E12CUGZV0AKoGwdoR5oamkrJeaL7KWySYMeGdtTymWhERBm90r15QnvBtrn5v4jY
+MYz3+rTL4EUjsbUU7h61GLQyaw3qAfbm5zdaI6DG+zaQLGJwu6sd/PILHhcnRkOX
+2I1XKAUVOULR4QeGjMGc7Dt/cQOTBmnfKFalWOxPYjVrnXuQ2JpWyxFpJ7p/PJM=
+=GOpe
-----END PGP SIGNATURE-----
diff --git a/dev-util/coccinelle/coccinelle-1.0.0_rc15-r1.ebuild b/dev-util/coccinelle/coccinelle-1.0.0_rc15-r1.ebuild
new file mode 100644
index 000000000000..09e4a892d8f1
--- /dev/null
+++ b/dev-util/coccinelle/coccinelle-1.0.0_rc15-r1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/coccinelle-1.0.0_rc15-r1.ebuild,v 1.1 2012/08/31 21:28:13 radhermit Exp $
+
+EAPI="4"
+PYTHON_DEPEND="python? 2"
+
+inherit multilib eutils python bash-completion-r1 elisp-common autotools
+
+MY_P="${P/_/-}"
+DESCRIPTION="Program matching and transformation engine"
+HOMEPAGE="http://coccinelle.lip6.fr/"
+SRC_URI="http://coccinelle.lip6.fr/distrib/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax"
+
+# ocaml enables ocaml scripting (uses findlib)
+CDEPEND=">=dev-lang/ocaml-3.10[ocamlopt?]
+ dev-ml/sexplib
+ emacs? ( virtual/emacs )
+ ocaml? ( dev-ml/findlib )
+ pcre? ( dev-ml/pcre-ocaml )"
+
+RDEPEND="${CDEPEND}
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+# dev-texlive/texlive-fontsextra contains 'ifsym.sty'
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ doc? (
+ virtual/latex-base
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-fontsextra
+ )"
+
+REQUIRED_USE="test? ( ocaml python )"
+
+DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt )
+
+S=${WORKDIR}/${MY_P}
+
+SITEFILE=50coccinelle-gentoo.el
+
+pkg_setup() {
+ if use python ; then
+ python_set_active_version 2
+ python_pkg_setup
+ fi
+}
+
+src_prepare() {
+ if use python ; then
+ # Fix python install location
+ sed -i -e "s:\$(SHAREDIR)/python:$(python_get_sitedir):" \
+ -e "s:PYTHON_TARGET:PYTHON_INSTALL_TARGET:" Makefile || die
+ fi
+
+ sed -i "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" scripts/spatch.sh.in || die
+
+ epatch "${FILESDIR}"/${PN}-1.0.0_rc14-findtool.patch
+ cp Makefile Makefile.orig || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable python) \
+ $(use_enable ocaml) \
+ $(use_enable pcre) \
+ $(use_enable pcre pcre-syntax)
+
+ sed -i -e "s:^LIBDIR=.*:LIBDIR=/usr/$(get_libdir)/ocaml/stublibs/:" \
+ -e "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" \
+ Makefile.config || die
+
+ cp Makefile.orig Makefile || die
+}
+
+src_compile() {
+ emake depend
+ emake
+
+ use ocamlopt && emake opt
+
+ if use doc ; then
+ VARTEXFONTS="${T}"/fonts emake docs
+ fi
+
+ if use emacs ; then
+ elisp-compile editors/emacs/cocci.el || 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() {
+ default
+
+ use doc && dodoc docs/manual/*.pdf
+ newbashcomp scripts/spatch.bash_completion spatch
+
+ if use emacs ; then
+ elisp-install ${PN} editors/emacs/*
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+ fi
+
+ if use vim-syntax ; then
+ newdoc editors/vim/README README-vim
+ rm editors/vim/README || die
+ insinto /usr/share/vim/vimfiles
+ doins -r editors/vim/*
+ fi
+
+ export STRIP_MASK='*/coccinelle/spatch'
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}