diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2026-08-20 21:28:28 +0200 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-08-24 10:17:55 +0200 |
| commit | 3c4604731ddeb602c3f728af9e95c8bd4e534ab5 (patch) | |
| tree | 43bfe2518a06cdb2efb81f6b9637eaa1342b66db /gnu/packages | |
| parent | 8aa21a95352b0501a82d8182b51a17b75b430b7c (diff) | |
gnu: aiger: Update to 1.9.20.
* gnu/packages/maths.scm (aiger): Update to 1.9.20.
[sources]: Switch to git-fetch.
[arguments]<#:make-flags>: Simplify.
<#:tests?>: Delete.
<#:phases>: Update ’patch-source; use G-Expressions in
’patch-build-files and ’install-static; replace ’check.
[inputs]: Add xz.
Merges guix/guix!10689.
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/maths.scm | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1513e7611da..ecc8cece440 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm | |||
| @@ -9799,58 +9799,61 @@ optimized algorithms and implementation.") | |||
| 9799 | (define-public aiger | 9799 | (define-public aiger |
| 9800 | (package | 9800 | (package |
| 9801 | (name "aiger") | 9801 | (name "aiger") |
| 9802 | (version "1.9.9") | 9802 | (version "1.9.20") |
| 9803 | (source (origin | 9803 | (source (origin |
| 9804 | (method url-fetch) | 9804 | (method git-fetch) |
| 9805 | (uri (string-append "https://fmv.jku.at/aiger/aiger-" | 9805 | (uri (git-reference |
| 9806 | version ".tar.gz")) | 9806 | (url "https://github.com/arminbiere/aiger") |
| 9807 | (sha256 | 9807 | (commit (string-append "rel-" version)))) |
| 9808 | (file-name (git-file-name name version)) | ||
| 9809 | (sha256 | ||
| 9808 | (base32 | 9810 | (base32 |
| 9809 | "1ish0dw0nf9gyghxsdhpy1jjiy5wp54c993swp85xp7m6vdx6l0y")))) | 9811 | "1bjm3362l6qskmfi0gyz2h30cr157xkv8yjivmm9iwl37chk22c2")))) |
| 9810 | (outputs (list "out" "static")) | 9812 | (outputs (list "out" "static")) |
| 9811 | (build-system gnu-build-system) | 9813 | (build-system gnu-build-system) |
| 9812 | (arguments | 9814 | (arguments |
| 9813 | (list #:tests? #f ; no check target | 9815 | (list #:make-flags #~(list (string-append "CFLAGS=-g -O2")) |
| 9814 | #:make-flags | ||
| 9815 | #~(list (string-append "CFLAGS=-g -O2" | ||
| 9816 | " -Wno-error=implicit-function-declaration")) | ||
| 9817 | #:phases | 9816 | #:phases |
| 9818 | #~(modify-phases %standard-phases | 9817 | #~(modify-phases %standard-phases |
| 9819 | (add-after 'unpack 'patch-source | 9818 | (add-after 'unpack 'patch-source |
| 9820 | (lambda* (#:key inputs #:allow-other-keys) | 9819 | (lambda* (#:key inputs #:allow-other-keys) |
| 9821 | (substitute* "aiger.c" | 9820 | (substitute* "aiger.c" |
| 9822 | (("\"(gzip|gunzip)" all cmd) | 9821 | (("\"(gzip|xz)" all cmd) |
| 9823 | (string-append | 9822 | (string-append |
| 9824 | "\"" | 9823 | "\"" |
| 9825 | (search-input-file inputs (string-append "bin/" cmd))))))) | 9824 | (search-input-file inputs (string-append "bin/" cmd))))))) |
| 9826 | (add-after 'unpack 'patch-build-files | 9825 | (add-after 'unpack 'patch-build-files |
| 9827 | (lambda* (#:key outputs #:allow-other-keys) | 9826 | (lambda _ |
| 9828 | (substitute* "makefile.in" | 9827 | (substitute* "makefile.in" |
| 9829 | (("test -d .*") "true") | 9828 | (("test -d .*") "true") |
| 9830 | (("/usr/local") (assoc-ref outputs "out"))))) | 9829 | (("/usr/local") #$output)))) |
| 9831 | (replace 'configure | 9830 | (replace 'configure |
| 9832 | (lambda* (#:key configure-flags #:allow-other-keys) | 9831 | (lambda* (#:key configure-flags #:allow-other-keys) |
| 9833 | (apply invoke "./configure.sh" configure-flags))) | 9832 | (apply invoke "./configure.sh" configure-flags))) |
| 9834 | (add-after 'install 'install-static | 9833 | (add-after 'install 'install-static |
| 9835 | (lambda* (#:key outputs #:allow-other-keys) | 9834 | (lambda _ |
| 9836 | (apply invoke #$(ar-for-target) "rcs" "libaiger.a" | 9835 | (apply invoke #$(ar-for-target) "rcs" "libaiger.a" |
| 9837 | (find-files "." "\\.o$")) | 9836 | (find-files "." "\\.o$")) |
| 9838 | (let* ((static (assoc-ref outputs "static")) | 9837 | (let* ((lib (string-append #$output:static "/lib")) |
| 9839 | (lib (string-append static "/lib")) | 9838 | (incl (string-append #$output:static "/include/aiger"))) |
| 9840 | (incl (string-append static "/include/aiger"))) | ||
| 9841 | (mkdir-p lib) | 9839 | (mkdir-p lib) |
| 9842 | (mkdir-p incl) | 9840 | (mkdir-p incl) |
| 9843 | (install-file "libaiger.a" lib) | 9841 | (install-file "libaiger.a" lib) |
| 9844 | (for-each (lambda (f) (install-file f incl)) | 9842 | (for-each (lambda (f) (install-file f incl)) |
| 9845 | (find-files "." "\\.h$")))))))) | 9843 | (find-files "." "\\.h$"))))) |
| 9846 | (inputs (list gzip)) | 9844 | (replace 'check |
| 9845 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 9846 | (when tests? | ||
| 9847 | (setenv "CC" #$(cc-for-target)) | ||
| 9848 | (invoke "make" "-f" "test.mk"))))))) | ||
| 9849 | (inputs (list gzip xz)) | ||
| 9847 | (home-page "https://fmv.jku.at/aiger") | 9850 | (home-page "https://fmv.jku.at/aiger") |
| 9848 | (synopsis "Utilities for And-Inverter Graphs") | 9851 | (synopsis "Utilities for And-Inverter Graphs") |
| 9849 | (description "AIGER is a format, library and set of utilities for | 9852 | (description "AIGER is a format, library and set of utilities for |
| 9850 | @acronym{AIG, And-Inverter Graphs}s. The focus is on conversion utilities and a | 9853 | @acronym{AIG, And-Inverter Graphs}s. The focus is on conversion utilities and a |
| 9851 | generic reader and writer API.") | 9854 | generic reader and writer API.") |
| 9852 | (license (list license:expat | 9855 | (license (list license:expat |
| 9853 | license:bsd-3)))) ; blif2aig | 9856 | license:bsd-3)))) ; bliftoaig |
| 9854 | 9857 | ||
| 9855 | (define-public cudd | 9858 | (define-public cudd |
| 9856 | (package | 9859 | (package |
