void-packages/srcpkgs/z3/template
2019-06-01 21:10:42 +02:00

51 lines
1.5 KiB
Bash

# Template file for 'z3'
pkgname=z3
version=4.8.5
revision=1
wrksrc="${pkgname}-Z3-${version}"
build_style=configure
configure_args="--prefix=/usr -g --python $(vopt_if ocaml --ml)"
make_build_args="-C build all examples"
make_install_args="-C build install"
hostmakedepends="python3 $(vopt_if ocaml 'ocaml ocaml-findlib')"
makedepends="libgomp-devel gmp-devel $(vopt_if ocaml 'ocaml-num ncurses-devel')"
depends="python3 python3-setuptools"
pycompile_module="z3"
short_desc="Z3 theorem prover and SMT solver (command line + Python3 module)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="https://github.com/Z3Prover/z3"
distfiles="https://github.com/Z3Prover/z3/archive/Z3-${version}.tar.gz"
checksum=4e8e232887ddfa643adb6a30dcd3743cb2fa6591735fbd302b49f7028cdc0363
build_options="ocaml"
desc_option_ocaml="Enable support for OCaml bindings"
shlib_provides="libz3.so"
subpackages="$(vopt_if ocaml z3-ocaml)"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="ocaml"
fi
case "$XBPS_TARGET_MACHINE" in
i686*) broken="Error: Integer literal exceeds the range of representable integers of type int" ;;
esac
post_install() {
vbin build/z3_tptp
vbin build/maxsat
if [ "$build_option_ocaml" ]; then
vmkdir usr/lib/ocaml/Z3/stublibs
mv ${DESTDIR}/usr/lib/ocaml/Z3/dllz3ml.so ${DESTDIR}/usr/lib/ocaml/Z3/stublibs
fi
vlicense LICENSE.txt
}
z3-ocaml_package() {
short_desc="Z3 theorem prover and SMT solver (OCaml bindings)"
depends="z3>=${version}_${revision}"
pkg_install() {
vmove usr/lib/ocaml
}
}