From 1551fe56fd6ba43a94509cffc61b6bf854b7ac9f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 1 Jun 2024 00:07:06 +0100 Subject: gentoo auto-resync : 01:06:2024 - 00:07:06 --- dev-util/coccinelle/Manifest | 2 +- dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild | 135 ------------------------- dev-util/coccinelle/coccinelle-1.1.1-r5.ebuild | 135 +++++++++++++++++++++++++ 3 files changed, 136 insertions(+), 136 deletions(-) delete mode 100644 dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild create mode 100644 dev-util/coccinelle/coccinelle-1.1.1-r5.ebuild (limited to 'dev-util/coccinelle') diff --git a/dev-util/coccinelle/Manifest b/dev-util/coccinelle/Manifest index eb772bedeb4d..8a1916e55f18 100644 --- a/dev-util/coccinelle/Manifest +++ b/dev-util/coccinelle/Manifest @@ -2,5 +2,5 @@ AUX 50coccinelle-gentoo.el 154 BLAKE2B debbfe7a00bf6195db370b33430d18fb7121123da AUX coccinelle-1.1.1-bash-completion.patch 509 BLAKE2B 57c4e11cf88b768b2d6be761d17642c02bfaab3081336d5fd2bd32c4329c6607a2bdbb7631fb79aed59d631af7bc233d479000e9dda6dc348a8a794b41c400c4 SHA512 fa96dd1774f8d4919f4f1b0594f9316441f2114c1d10780d57306fa8d9092e39720da88e958c1eda6c7a25c2e40fcc7de3be478aba7bad10bb112e4fa404c87f AUX coccinelle-1.1.1-find-xxdate.patch 449 BLAKE2B 9709570d28661b7cfea4c7931130d579efd8883e0eee4c90cd96809acf97ca67477be8a1164639c9835176dccf6353e6ca34e0802b18ab0faecc56d99b248713 SHA512 ef7117ad88f5b80675919ad583a18a0dd4a902549c6c681107382ccf06a293d8ec139c5fbb4e3c580504dceb44010b72b321a05626ea49fe990c8f47f0eea6c4 DIST coccinelle-1.1.1.tar.bz2 2118055 BLAKE2B 7efb0c86432c88daa1bce2710acdf2f62b6210c69245b4896ea8c5e39a0b28c538d94deae6ed1544e0ced66b2baa6edf8670f5e02dad40c2d1f5562326ce23e3 SHA512 fcb83203c91dae18122cf95f7db931d2e1576559b74a7a1c664c795437904acdffa005a8b9e732c1d99c8f0ab1c5f529d143eafe79c6397d28c4879848afca45 -EBUILD coccinelle-1.1.1-r4.ebuild 3011 BLAKE2B 8acff2b266b570c969eb5a83bccc7e244a496c10c8c44e964f51e2cc9b760af5dea157cdfc555b1c7e6358330e311b6a0f75c6a1f1d1546473eaf3233e8d1925 SHA512 25a44afcd67d7dcf28e92e5b2d2c5e6a2c5874c81ce97f96a1357102012abc04d4e7769d022bddcf6eab653717f5b3797bc61fa4ebedb7f6e63c1efe661a32d0 +EBUILD coccinelle-1.1.1-r5.ebuild 3012 BLAKE2B f72a013ff13a84db096336b5a77cfbc93529eb8ed72029da96756cddac89108d72e91603f3e915341e6eef801d8ce9be27cad537cd8e806789fcb2cf21e12024 SHA512 6a0dbe951dcca4917ce4d005c44e43bd4aa44e959c7f81f6ad60ac581cfc7ef561f5cb40f81283bae9806f4174889a9fcece81d1c0612a097701dfc27f3e4701 MISC metadata.xml 318 BLAKE2B 0d950c53a548409db938f27ae7e6941875f2d3260237c72fb3771659ed35e876e456e48823f2340122e68da18bf80bc4f16b58182937117977567579d49d48ad SHA512 c32dd8ca3473e147b69f305fe58412f10ba00dd939eba5fb871d366c6440cffbd623ce4922cd5879b2fefed19a3cf3ffb29bd588021e707623a32f85640905c4 diff --git a/dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild b/dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild deleted file mode 100644 index c95b850e7966..000000000000 --- a/dev-util/coccinelle/coccinelle-1.1.1-r4.ebuild +++ /dev/null @@ -1,135 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} ) -inherit autotools bash-completion-r1 elisp-common python-single-r1 - -DESCRIPTION="Program matching and transformation engine" -HOMEPAGE="https://coccinelle.gitlabpages.inria.fr/website/ https://gitlab.inria.fr/coccinelle/coccinelle" -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}" -# Test failures need investigation -RESTRICT="strip !test? ( 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?] - dev-ml/stdcompat:= - 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? ( - dev-texlive/texlive-latexextra - dev-texlive/texlive-fontsextra - virtual/latex-base - dev-tex/hevea - ) -" - -DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt ) -PATCHES=( - "${FILESDIR}"/${P}-bash-completion.patch - "${FILESDIR}"/${P}-find-xxdate.patch -) -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() { - # TODO: See Fedora's method? - # https://src.fedoraproject.org/rpms/coccinelle/blob/rawhide/f/coccinelle.spec#_231 - emake VERBOSE=yes check $(usev python pycocci-check) -} - -src_install() { - emake DESTDIR="${D}" PREFIX="${EPREFIX}" VERBOSE=yes -j1 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 - - einstalldocs - 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/coccinelle-1.1.1-r5.ebuild b/dev-util/coccinelle/coccinelle-1.1.1-r5.ebuild new file mode 100644 index 000000000000..1a366ad2ed6d --- /dev/null +++ b/dev-util/coccinelle/coccinelle-1.1.1-r5.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit autotools bash-completion-r1 elisp-common python-single-r1 + +DESCRIPTION="Program matching and transformation engine" +HOMEPAGE="https://coccinelle.gitlabpages.inria.fr/website/ https://gitlab.inria.fr/coccinelle/coccinelle" +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}" +# Test failures need investigation +RESTRICT="strip !test? ( 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?] + dev-ml/stdcompat:= + 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? ( + dev-texlive/texlive-latexextra + dev-texlive/texlive-fontsextra + virtual/latex-base + dev-tex/hevea + ) +" + +DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt ) +PATCHES=( + "${FILESDIR}"/${P}-bash-completion.patch + "${FILESDIR}"/${P}-find-xxdate.patch +) +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() { + # TODO: See Fedora's method? + # https://src.fedoraproject.org/rpms/coccinelle/blob/rawhide/f/coccinelle.spec#_231 + emake VERBOSE=yes check $(usev python pycocci-check) +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}" VERBOSE=yes -j1 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 + + einstalldocs + 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 +} -- cgit v1.2.3