public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-util/coccinelle/files/, dev-util/coccinelle/
@ 2016-06-28 19:04 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2016-06-28 19:04 UTC (permalink / raw
  To: gentoo-commits

commit:     f23de55be394f55cb431760dec447a4d73a2d594
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 28 19:01:12 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun 28 19:02:33 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f23de55b

dev-util/coccinelle: Remove old, #586930

 dev-util/coccinelle/Manifest                       |   4 -
 dev-util/coccinelle/coccinelle-1.0.0.ebuild        | 139 ---------------------
 dev-util/coccinelle/coccinelle-1.0.1.ebuild        | 139 ---------------------
 dev-util/coccinelle/coccinelle-1.0.2.ebuild        | 132 -------------------
 dev-util/coccinelle/coccinelle-1.0.4.ebuild        | 132 -------------------
 .../files/coccinelle-1.0.0_rc16-findtool.patch     |  11 --
 6 files changed, 557 deletions(-)

diff --git a/dev-util/coccinelle/Manifest b/dev-util/coccinelle/Manifest
index 9ad8b2c..7937f30 100644
--- a/dev-util/coccinelle/Manifest
+++ b/dev-util/coccinelle/Manifest
@@ -1,5 +1 @@
-DIST coccinelle-1.0.0.tgz 3427246 SHA256 e18b4c77964c6f623c385dc8b2fcb46beacd9811927617144620b12d93289e74 SHA512 0c59918dff3d33035f5c928b54de9cbe32f9146d9e4b82545d168140d1395ff5b3e446faff47f39dbb6fceb74f432b419e9c7322e834c11bb50b5fb5d4e4dd46 WHIRLPOOL 8714327d7156bd1ada0c6b0776fefcc4e46b9885354ca686d4de8b35c2dd1cf6372e91dfa3a04645295f411b40d57eee94d81cbd8dfe2c18f3dc3b15ff8e1926
-DIST coccinelle-1.0.1.tgz 2772730 SHA256 39caac46c1f80cbe5de21164c5b31a794e3befdb9cd7ef1d080d455ac171b526 SHA512 5a69476941a9582ca6e0663c468a87aba15b6e38243cbb532c517b75066c8fafe37cbe6d398d6183cc7a315c5680efdf425f0bc8cb2184dbf94e446879514a89 WHIRLPOOL 8b38b982b8d19c10c7e3ed77629b6883c4d6455da4da4d68251b492ce36490c5236573bf7c44a34e21887b8be0ca83b4efb39cf13b1c4c6db7db58979ee6a7bc
-DIST coccinelle-1.0.2.tgz 2790829 SHA256 4e45b904f42c9b84732168782d491c8c1ab23bb85db06c4b9ba2762bea8ac679 SHA512 83c8e250a7e19126ce3f95d0455892d60b2d7a688af3a066edcfb9a8cc146f8a9281c9e019896421e1bc546d366114effef3116105eae19617ad45c26f42c534 WHIRLPOOL 15b64abbad31f49883e4cacc2282ed28eb67f64d951636ee6b690a474b072e6a029c4131adb727f5f7a8d86628b871db0cff144ad8478514529c4c5d5dee9074
-DIST coccinelle-1.0.4.tgz 2484218 SHA256 7f823813a2ea299c0f6c01d8419b83c4dc6617116d32ba99d726443a1c22b06d SHA512 1e7ad7adb700f2e0d844b3f5787c24fc40bc9a61354b5aefa0f957e524e74ba67a8bef594e837a479d3a5f3c8d89c2395e8636838e0451977de8bd3d588d7ce1 WHIRLPOOL 15759395a2253fa8322e034a02388b5f0f6cc0702e82d43e95c3c9ecc2fa5795cb4a3a3fbc48aa2104bd0173adfd58e046f804d63c3ccbe278796cbe4932f46e
 DIST coccinelle-1.0.5.tgz 5660596 SHA256 5efb093b538145b7526a06946c09c7caaa715006658af2049faa8739f459743b SHA512 0fee450554abc40feac9e745a252c1679f8016c82f04236e642e32e129618a950bb9657f1c447d62543289e95bbd4b1a8b0c6030373025c32a37068f82d30678 WHIRLPOOL 33ec9789d93f6cd35eda37f0647d3e3f3f53898fccc2df68aa30cec50ce82b4d392d84a0c97708cdf301b2f076cce1942b5d4a51dffb0bd177eb9dee460d3e6f

diff --git a/dev-util/coccinelle/coccinelle-1.0.0.ebuild b/dev-util/coccinelle/coccinelle-1.0.0.ebuild
deleted file mode 100644
index f7b4292..0000000
--- a/dev-util/coccinelle/coccinelle-1.0.0.ebuild
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-PYTHON_COMPAT=( python2_7 )
-
-inherit multilib eutils python-single-r1 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"
-IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-# ocaml enables ocaml scripting (uses findlib)
-CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
-	dev-ml/sexplib:=[ocamlopt?]
-	dev-ml/menhir:=[ocamlopt?]
-	|| ( dev-ml/camlp4:=[ocamlopt?] <dev-lang/ocaml-4.02.0 )
-	dev-ml/parmap:=[ocamlopt?]
-	emacs? ( virtual/emacs )
-	ocaml? ( dev-ml/findlib:= )
-	pcre? ( dev-ml/pcre-ocaml:=[ocamlopt?] )
-	python? ( ${PYTHON_DEPS} )"
-
-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() {
-	use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-	if use python ; then
-		# fix python install location
-		sed -e "s:\$(SHAREDIR)/python:$(python_get_sitedir):" \
-			-e "s:PYTHON_TARGET:PYTHON_INSTALL_TARGET:" \
-			-i Makefile || die
-	fi
-
-	sed -i "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" scripts/spatch.sh.in || die
-
-	# This is regenerated by menhir, bundled version does not build with latest
-	# one...
-	rm -f parsing_cocci/parser_cocci_menhir.ml
-
-	epatch "${FILESDIR}"/${PN}-1.0.0_rc16-findtool.patch
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable python) \
-		$(use_enable ocaml) \
-		$(use_enable pcre) \
-		$(use_enable pcre pcre-syntax)
-
-	sed -e "s:^LIBDIR=.*:LIBDIR=/usr/$(get_libdir)/ocaml/stublibs/:" \
-		-e "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" \
-		-i Makefile.config || 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
-
-	use python && python_optimize
-
-	export STRIP_MASK='*/coccinelle/spatch'
-}
-
-pkg_postinst() {
-	use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
-	use emacs && elisp-site-regen
-}

diff --git a/dev-util/coccinelle/coccinelle-1.0.1.ebuild b/dev-util/coccinelle/coccinelle-1.0.1.ebuild
deleted file mode 100644
index 2a9f559..0000000
--- a/dev-util/coccinelle/coccinelle-1.0.1.ebuild
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-PYTHON_COMPAT=( python2_7 )
-
-inherit multilib eutils python-single-r1 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"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-# ocaml enables ocaml scripting (uses findlib)
-CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
-	dev-ml/sexplib:=[ocamlopt?]
-	dev-ml/menhir:=[ocamlopt?]
-	|| ( dev-ml/camlp4:=[ocamlopt?] <dev-lang/ocaml-4.02.0 )
-	dev-ml/parmap:=[ocamlopt?]
-	emacs? ( virtual/emacs )
-	ocaml? ( dev-ml/findlib:= )
-	pcre? ( dev-ml/pcre-ocaml:=[ocamlopt?] )
-	python? ( ${PYTHON_DEPS} )"
-
-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() {
-	use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-	if use python ; then
-		# fix python install location
-		sed -e "s:\$(SHAREDIR)/python:$(python_get_sitedir):" \
-			-e "s:PYTHON_TARGET:PYTHON_INSTALL_TARGET:" \
-			-i Makefile || die
-	fi
-
-	sed -i "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" scripts/spatch.sh.in || die
-
-	# This is regenerated by menhir, bundled version does not build with latest
-	# one...
-	rm -f parsing_cocci/parser_cocci_menhir.ml
-
-	epatch "${FILESDIR}"/${PN}-1.0.0_rc16-findtool.patch
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable python) \
-		$(use_enable ocaml) \
-		$(use_enable pcre) \
-		$(use_enable pcre pcre-syntax)
-
-	sed -e "s:^LIBDIR=.*:LIBDIR=/usr/$(get_libdir)/ocaml/stublibs/:" \
-		-e "s:^SHAREDIR=.*:SHAREDIR=/usr/$(get_libdir)/ocaml/${PN}/:" \
-		-i Makefile.config || 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
-
-	use python && python_optimize
-
-	export STRIP_MASK='*/coccinelle/spatch'
-}
-
-pkg_postinst() {
-	use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
-	use emacs && elisp-site-regen
-}

diff --git a/dev-util/coccinelle/coccinelle-1.0.2.ebuild b/dev-util/coccinelle/coccinelle-1.0.2.ebuild
deleted file mode 100644
index adc67ae..0000000
--- a/dev-util/coccinelle/coccinelle-1.0.2.ebuild
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-PYTHON_COMPAT=( python2_7 )
-
-inherit multilib eutils python-single-r1 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"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-# ocaml enables ocaml scripting (uses findlib)
-CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
-	dev-ml/sexplib:=[ocamlopt?]
-	dev-ml/menhir:=[ocamlopt?]
-	|| ( dev-ml/camlp4:=[ocamlopt?] <dev-lang/ocaml-4.02.0 )
-	dev-ml/parmap:=[ocamlopt?]
-	emacs? ( virtual/emacs )
-	ocaml? ( dev-ml/findlib:= )
-	pcre? ( dev-ml/pcre-ocaml:=[ocamlopt?] )
-	python? ( ${PYTHON_DEPS} )"
-
-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() {
-	use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-	if use python ; then
-		# fix python install location
-		sed -e "s:\$(LIBDIR)/python:$(python_get_sitedir):" \
-			-i Makefile || die
-	fi
-
-	# This is regenerated by menhir, bundled version does not build with latest
-	# one...
-	rm -f parsing_cocci/parser_cocci_menhir.ml
-
-	epatch "${FILESDIR}"/${PN}-1.0.0_rc16-findtool.patch
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable python) \
-		$(use_enable ocaml) \
-		$(use_enable pcre) \
-		$(use_enable pcre pcre-syntax)
-}
-
-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
-
-	use python && python_optimize
-
-	export STRIP_MASK='*/coccinelle/spatch'
-}
-
-pkg_postinst() {
-	use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
-	use emacs && elisp-site-regen
-}

diff --git a/dev-util/coccinelle/coccinelle-1.0.4.ebuild b/dev-util/coccinelle/coccinelle-1.0.4.ebuild
deleted file mode 100644
index adc67ae..0000000
--- a/dev-util/coccinelle/coccinelle-1.0.4.ebuild
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-PYTHON_COMPAT=( python2_7 )
-
-inherit multilib eutils python-single-r1 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"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-# ocaml enables ocaml scripting (uses findlib)
-CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
-	dev-ml/sexplib:=[ocamlopt?]
-	dev-ml/menhir:=[ocamlopt?]
-	|| ( dev-ml/camlp4:=[ocamlopt?] <dev-lang/ocaml-4.02.0 )
-	dev-ml/parmap:=[ocamlopt?]
-	emacs? ( virtual/emacs )
-	ocaml? ( dev-ml/findlib:= )
-	pcre? ( dev-ml/pcre-ocaml:=[ocamlopt?] )
-	python? ( ${PYTHON_DEPS} )"
-
-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() {
-	use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-	if use python ; then
-		# fix python install location
-		sed -e "s:\$(LIBDIR)/python:$(python_get_sitedir):" \
-			-i Makefile || die
-	fi
-
-	# This is regenerated by menhir, bundled version does not build with latest
-	# one...
-	rm -f parsing_cocci/parser_cocci_menhir.ml
-
-	epatch "${FILESDIR}"/${PN}-1.0.0_rc16-findtool.patch
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable python) \
-		$(use_enable ocaml) \
-		$(use_enable pcre) \
-		$(use_enable pcre pcre-syntax)
-}
-
-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
-
-	use python && python_optimize
-
-	export STRIP_MASK='*/coccinelle/spatch'
-}
-
-pkg_postinst() {
-	use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
-	use emacs && elisp-site-regen
-}

diff --git a/dev-util/coccinelle/files/coccinelle-1.0.0_rc16-findtool.patch b/dev-util/coccinelle/files/coccinelle-1.0.0_rc16-findtool.patch
deleted file mode 100644
index bc0dd97..0000000
--- a/dev-util/coccinelle/files/coccinelle-1.0.0_rc16-findtool.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- coccinelle-1.0.0-rc16/setup/cocci.m4
-+++ coccinelle-1.0.0-rc16/setup/cocci.m4
-@@ -285,7 +285,7 @@
-     AC_SUBST([$1], [no])
-   ],
-   [dnl  find the tool
--    AC_COCCI_FINDTOOL([$1],[[$]$1])
-+    AC_COCCI_FINDTOOL([$1],[$2])
-   ])
- 
-   AS_IF([test -z "[$]$1" -o "x[$]$1" = xno],


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/coccinelle/files/, dev-util/coccinelle/
@ 2022-10-29 18:26 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2022-10-29 18:26 UTC (permalink / raw
  To: gentoo-commits

commit:     027818aade360d64a45ab7f9c5f7e278eccb9949
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 29 18:10:43 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 29 18:25:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=027818aa

dev-util/coccinelle: new package, add 1.1.1

It was removed in the past because of no Python 3 support, but
it supports Python 3 now.

Bug: https://bugs.gentoo.org/734630
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/coccinelle/Manifest                     |   1 +
 dev-util/coccinelle/coccinelle-1.1.1.ebuild      | 126 +++++++++++++++++++++++
 dev-util/coccinelle/files/50coccinelle-gentoo.el |   6 ++
 dev-util/coccinelle/metadata.xml                 |  11 ++
 4 files changed, 144 insertions(+)

diff --git a/dev-util/coccinelle/Manifest b/dev-util/coccinelle/Manifest
new file mode 100644
index 000000000000..55489c38c940
--- /dev/null
+++ b/dev-util/coccinelle/Manifest
@@ -0,0 +1 @@
+DIST coccinelle-1.1.1.tar.bz2 2118055 BLAKE2B 7efb0c86432c88daa1bce2710acdf2f62b6210c69245b4896ea8c5e39a0b28c538d94deae6ed1544e0ced66b2baa6edf8670f5e02dad40c2d1f5562326ce23e3 SHA512 fcb83203c91dae18122cf95f7db931d2e1576559b74a7a1c664c795437904acdffa005a8b9e732c1d99c8f0ab1c5f529d143eafe79c6397d28c4879848afca45

diff --git a/dev-util/coccinelle/coccinelle-1.1.1.ebuild b/dev-util/coccinelle/coccinelle-1.1.1.ebuild
new file mode 100644
index 000000000000..4affa4aee5a6
--- /dev/null
+++ b/dev-util/coccinelle/coccinelle-1.1.1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+inherit autotools bash-completion-r1 elisp-common python-single-r1
+
+DESCRIPTION="Program matching and transformation engine"
+HOMEPAGE="http://coccinelle.lip6.fr/"
+SRC_URI="https://gitlab.inria.fr/coccinelle/coccinelle/-/archive/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc emacs +ocamlopt pcre python test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="strip !test? ( test )"
+
+RDEPEND="
+	>=dev-lang/ocaml-3.12:=[ocamlopt?]
+	dev-ml/sexplib:=[ocamlopt(+)?]
+	dev-ml/menhir:=[ocamlopt?]
+	dev-ml/camlp4:=[ocamlopt?]
+	dev-ml/parmap:=[ocamlopt?]
+	dev-ml/findlib:=[ocamlopt?]
+	emacs? ( >=app-editors/emacs-23.1:* )
+	pcre? (
+		dev-libs/libpcre
+		dev-ml/pcre-ocaml:=[ocamlopt?]
+	)
+	python? ( ${PYTHON_DEPS} )
+"
+DEPEND="${RDEPEND}"
+# dev-texlive/texlive-fontsextra contains 'ifsym.sty'
+BDEPEND="
+	virtual/pkgconfig
+	doc? (
+		virtual/latex-base
+		dev-texlive/texlive-latexextra
+		dev-texlive/texlive-fontsextra
+	)
+"
+
+DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt )
+
+SITEFILE=50coccinelle-gentoo.el
+
+pkg_setup() {
+	use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+	default
+
+	eautoreconf
+
+	if use python ; then
+		# Fix python install location
+		sed -e "s:\$(LIBDIR)/python:$(python_get_sitedir):" \
+			-i Makefile || die
+	fi
+}
+
+src_configure() {
+	local myeconfargs=(
+		--enable-ocaml
+		--with-bash-completion="$(get_bashcompdir)"
+		--with-python="${EPYTHON}"
+
+		$(use_enable python)
+		$(use_enable pcre)
+		$(use_enable pcre pcre-syntax)
+		$(use_enable ocamlopt opt)
+	)
+
+	CONFIG_SHELL="${BROOT}"/bin/bash econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+	export TARGET_SPATCH=$(usev !ocamlopt 'byte-only')
+
+	emake VERBOSE=yes -j1 $(usex ocamlopt 'all.opt' 'all-dev')
+
+	if use doc ; then
+		VARTEXFONTS="${T}"/fonts emake VERBOSE=yes docs
+	fi
+
+	if use emacs ; then
+		elisp-compile editors/emacs/cocci.el || die
+	fi
+}
+
+src_test() {
+	emake VERBOSE=yes check $(usev python pycocci-check)
+}
+
+src_install() {
+	emake DESTDIR="${D}" PREFIX="${EPREFIX}" VERBOSE=yes install
+
+	if use python ; then
+		python_optimize
+	else
+		rm -rf "${ED}/usr/$(get_libdir)/${PN}/python" || die
+	fi
+
+	if use emacs ; then
+		elisp-install ${PN} editors/emacs/*
+		elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+	fi
+
+	use doc && dodoc docs/manual/*.pdf
+
+	newdoc editors/vim/README README-vim
+	rm editors/vim/README || die
+	insinto /usr/share/vim/vimfiles
+	doins -r editors/vim/*
+}
+
+pkg_postinst() {
+	use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+	use emacs && elisp-site-regen
+}

diff --git a/dev-util/coccinelle/files/50coccinelle-gentoo.el b/dev-util/coccinelle/files/50coccinelle-gentoo.el
new file mode 100644
index 000000000000..6721b3c5e5a1
--- /dev/null
+++ b/dev-util/coccinelle/files/50coccinelle-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; site-lisp configuration for coccinelle
+
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'cocci-mode "cocci" "Major mode for editing cocci code." t)

diff --git a/dev-util/coccinelle/metadata.xml b/dev-util/coccinelle/metadata.xml
new file mode 100644
index 000000000000..313e852a9cce
--- /dev/null
+++ b/dev-util/coccinelle/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>ml@gentoo.org</email>
+		<name>ML</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">coccinelle/coccinelle</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-util/coccinelle/files/, dev-util/coccinelle/
@ 2024-06-06  6:41 Alfredo Tupone
  0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2024-06-06  6:41 UTC (permalink / raw
  To: gentoo-commits

commit:     fad68b819ce5e02ada95dc8fc7ff36616267cf09
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  6 06:40:44 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Jun  6 06:40:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fad68b81

dev-util/coccinelle: fix make

Closes: https://bugs.gentoo.org/888769
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-util/coccinelle/coccinelle-1.1.1-r5.ebuild           |  1 +
 dev-util/coccinelle/files/coccinelle-1.1.1-shuffle.patch | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/dev-util/coccinelle/coccinelle-1.1.1-r5.ebuild b/dev-util/coccinelle/coccinelle-1.1.1-r5.ebuild
index 1a366ad2ed6d..63d4cf03a4a9 100644
--- a/dev-util/coccinelle/coccinelle-1.1.1-r5.ebuild
+++ b/dev-util/coccinelle/coccinelle-1.1.1-r5.ebuild
@@ -49,6 +49,7 @@ DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt )
 PATCHES=(
 	"${FILESDIR}"/${P}-bash-completion.patch
 	"${FILESDIR}"/${P}-find-xxdate.patch
+	"${FILESDIR}"/${P}-shuffle.patch
 )
 SITEFILE=50coccinelle-gentoo.el
 

diff --git a/dev-util/coccinelle/files/coccinelle-1.1.1-shuffle.patch b/dev-util/coccinelle/files/coccinelle-1.1.1-shuffle.patch
new file mode 100644
index 000000000000..0b3059e02529
--- /dev/null
+++ b/dev-util/coccinelle/files/coccinelle-1.1.1-shuffle.patch
@@ -0,0 +1,12 @@
+--- a/Makefile	2024-06-06 08:37:24.033420168 +0200
++++ b/Makefile	2024-06-06 08:37:54.188080138 +0200
+@@ -283,7 +283,8 @@
+ byt-only byte-only byte : $(foreach tool,$(TOOLS),$(PREFIX_$(tool))$(tool))
+ 
+ .PHONY: install
+-install: install-spatch install-spgen install-python install-bash install-man
++install: install-spatch
++	$(MAKE) install-spgen install-python install-bash install-man
+ 
+ .PHONY: install-bash
+ install-bash:


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-06  6:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-29 18:26 [gentoo-commits] repo/gentoo:master commit in: dev-util/coccinelle/files/, dev-util/coccinelle/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2024-06-06  6:41 Alfredo Tupone
2016-06-28 19:04 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox