# Template file for 'coccinelle'
pkgname=coccinelle
version=1.1.1p20240218
revision=1
_gitrev=68c580f1f1abf9979d591371e5b2e474f97dac90
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 ocaml-stdcompat
 pcre-devel python3-devel"
short_desc="Program matching and transformation engine"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-2.0-only"
homepage="https://coccinelle.gitlabpages.inria.fr/website/"
distfiles="https://github.com/coccinelle/coccinelle/archive/${_gitrev}.tar.gz"
checksum=bdda73a6827d1c2e5f85bafa25a0d03810298c0653ebd40a1eceaf6ca2cd72c0
disable_parallel_build=yes
nocross=yes
make_check=ci-skip # broken out of the box

case "$XBPS_TARGET_MACHINE" in
	x86_64*|aarch64*|riscv64*) ;;
	*) broken="bundled mehir wants ocamlopt";;
esac

pre_configure() {
	autoreconf -fi
}
