From 3ceda9e131fb3a62f848632d6d5a2cb7d7f1b70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Wed, 29 Jul 2020 21:23:42 +0200 Subject: [PATCH] scryer-prolog: use system gmp --- srcpkgs/scryer-prolog/template | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/srcpkgs/scryer-prolog/template b/srcpkgs/scryer-prolog/template index 217ae275fd..3868993d0d 100644 --- a/srcpkgs/scryer-prolog/template +++ b/srcpkgs/scryer-prolog/template @@ -1,24 +1,18 @@ # Template file for 'scryer-prolog' pkgname=scryer-prolog version=0.8.123 -revision=1 -archs="~i686" # aggresive cpu detection +revision=2 build_style=cargo hostmakedepends="m4 pkg-config" -depends="gmp" +makedepends="gmp-devel mpfr-devel libmpc-devel" short_desc="Modern Prolog implementation written mostly in Rust" maintainer="Hans-J. Schmid " license="BSD-3-Clause" homepage="https://github.com/mthom/scryer-prolog" distfiles="https://github.com/mthom/scryer-prolog/archive/v${version}.tar.gz" checksum=4370bc2200e3e56d411326801219bc5fc37a422febdb6cd3548ed3f65b5a44aa - -if [ "$XBPS_TARGET_LIBC" = "musl" ]; then - # XXX: Also should have GMP_MPFR_SYS_CACHE="" set somewhere https://crates.io/crates/gmp-mpfr-sys (we have ccache for that) - # We might also want to use system libs instead - # the runtime dep on gmp is incorrect right now, since gmp is statically linked - broken="https://build.voidlinux.org/builders/x86_64-musl_builder/builds/29779/steps/shell_3/logs/stdio" -fi +nocross="executes gmp header https://gitlab.com/tspiteri/gmp-mpfr-sys/-/blob/v1.2.2/build.rs#L1278" +export CARGO_FEATURE_USE_SYSTEM_LIBS=1 case "$XBPS_TARGET_MACHINE" in x86_64*|i686*|arm*|aarch64*) ;;