# Template file for 'coccinelle' pkgname=coccinelle version=1.3 revision=2 build_style=gnu-configure configure_args="--without-pdflatex --enable-release --with-python=/usr/bin/python3" hostmakedepends="python3 automake libtool ocaml" makedepends="ocaml ocaml-findlib ocaml-num pcre-devel python3-devel" checkdepends="python3" short_desc="Program matching and transformation engine" maintainer="Đoàn Trần Công Danh " license="GPL-2.0-only" homepage="https://coccinelle.gitlabpages.inria.fr/website/" # this ref is https://github.com/ocamllibs/stdcompat/pull/35 ... _stdcompat=34487909b3c2693f9305ec17f9124d582d93258f distfiles="https://coccinelle.gitlabpages.inria.fr/website/distrib/coccinelle-${version}.tar.gz https://github.com/thierry-martinez/stdcompat/archive/${_stdcompat}.tar.gz" checksum="d214410c502951bb30b86f46ecd51c02ba5cfbcb2c1eee7268428a162b18f985 0eeb8ee66fb7fce101b0be4e0da89a9c51cabc8f59db6c18f6dac0fac058fadc" disable_parallel_build=yes nocross=yes make_check=ci-skip # broken out of the box skip_extraction="${_stdcompat}.tar.gz" case "$XBPS_TARGET_MACHINE" in x86_64*|aarch64*|riscv64*) ;; *) broken="bundled mehir wants ocamlopt";; esac post_extract() { rm -rf bundles/stdcompat/stdcompat-current vsrcextract -C bundles/stdcompat/stdcompat-current "${_stdcompat}.tar.gz" } pre_configure() { autoreconf -fi }