43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'coq'
|
|
pkgname=coq
|
|
version=8.19.1
|
|
revision=1
|
|
hostmakedepends="dune ocaml ocaml-findlib ocaml-num ocaml-zarith"
|
|
depends="ocaml-findlib"
|
|
checkdepends="python3 rsync time"
|
|
short_desc="Proof assistant written in OCaml"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://coq.inria.fr"
|
|
distfiles="https://github.com/coq/coq/archive/V${version}.tar.gz"
|
|
checksum=1e535ed924234f18394efce94b12d9247a67e8af29241eb79615804160f21674
|
|
nopie=yes
|
|
nocross=yes
|
|
make_check=ci-skip # takes long and has some faults
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
ppc*) broken="R_PPC_REL24 relocation out of range";;
|
|
esac
|
|
|
|
do_patch() {
|
|
if ! command -v ocamlc.opt >/dev/null; then
|
|
# see coq/coq#18609
|
|
vsed -i -e 's/dep ^ ".cmxs"/dep ^ ".cma"/' tools/dune_rule_gen/coq_rules.ml
|
|
fi
|
|
}
|
|
|
|
do_build() {
|
|
make dunestrap
|
|
dune build --display=short -p coq-core,coq-stdlib,coqide-server
|
|
}
|
|
|
|
do_install() {
|
|
dune install coq-core coq-stdlib --prefix=/usr --destdir="$DESTDIR" \
|
|
--mandir=/usr/share/man --docdir=/usr/share/doc
|
|
}
|
|
|
|
do_check() {
|
|
make -C test-suite UNIT_TESTS= || make -C test-suite report PRINT_LOGS=1
|
|
}
|