From ffbf8ce07a8601501be6368345e767e50aeb27b6 Mon Sep 17 00:00:00 2001 From: Liliana Marie Prikler Date: Sat, 25 Feb 2023 09:25:49 +0100 Subject: gnu: Add java-smtinterpol. * gnu/packages/maths.scm (java-smtinterpol): New variable. --- gnu/packages/maths.scm | 68 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 28750e5f46..a7497f1d2f 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -87,6 +87,7 @@ (define-module (gnu packages maths) #:use-module (guix gexp) #:use-module (guix utils) #:use-module ((guix build utils) #:select (alist-replace)) + #:use-module (guix build-system ant) #:use-module (guix build-system cmake) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) @@ -6130,11 +6131,76 @@ (define-public boolector (native-inputs (list googletest pkg-config python-wrapper)) (home-page "http://boolector.github.io/") (synopsis "Bitvector-based theory solver") - (description "Boolector is a @abbrev{SMT, satisfiability modulo theories} + (description "Boolector is a @acronym{SMT, satisfiability modulo theories} solver for the theories of fixed-size bit-vectors, arrays and uninterpreted functions.") (license license:lgpl3+))) +(define-public java-smtinterpol + (package + (name "java-smtinterpol") + (version "2.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ultimate-pa/smtinterpol") + (commit version))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet #~(begin + (delete-file-recursively "jacoco") + (delete-file-recursively "libs") + (delete-file-recursively "sonar"))) + (sha256 + (base32 + "0bq5l7g830a8hxw1xyyfp2ph6jqk8ak0ichlymdglpnpngf6322f")))) + (build-system ant-build-system) + (arguments + (list #:build-target "dist" + #:test-target "runtests" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-build.xml + (lambda _ + (substitute* "build.xml" + (("") "") + (("executable=\"git\"") + (string-append "executable=\"" + (which "sh") + "\"")) + (("" all) + (string-append all + "")) + (("" all) + (string-append + all + "")) + (("") "") + (("