diff options
author | Vinicius Monego <monego@posteo.net> | 2025-06-29 17:54:18 -0300 |
---|---|---|
committer | Vinicius Monego <monego@posteo.net> | 2025-06-29 19:42:55 -0300 |
commit | 18bc763899eef49e94ec991c61d9ba010e68ce52 (patch) | |
tree | 70fe433c4d412d75f94502627fd1f904d3b97de2 /gnu/packages/algebra.scm | |
parent | f0d1af4b29f35a7fcaeba07974b1905f7d51ad04 (diff) |
gnu: symmetrica: Update to 3.1.0.
* gnu/packages/algebra.scm (symmetrica): Update to 3.1.0.
[source]: Fetch from maintained fork. Remove patches.
[arguments]: Remove '#:tests? #f'.
<#:phases>: Delete phases 'fix-makefile', 'turn-off-banner'. Undelete
the 'configure' phase. Do not override the 'install' phase.
[native-inputs]: Add autoconf, automake, libtool, pkg-config.
[home-page]: Switch to new home page.
[license]: Switch to new ISC license.
* gnu/packages/patches/symmetrica-bruch.patch:
* gnu/packages/patches/symmetrica-int32.patch:
* gnu/packages/patches/symmetrica-return_values.patch:
* gnu/packages/patches/symmetrica-sort_sum_rename.patch: Remove them.
* gnu/local.mk (dist_patch_DATA): Unregister them.
Change-Id: I876424baa9c111575d72c6516910ab43926c684f
Diffstat (limited to 'gnu/packages/algebra.scm')
-rw-r--r-- | gnu/packages/algebra.scm | 57 |
1 files changed, 10 insertions, 47 deletions
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index f8f05ff222..cf5287d57b 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -1646,62 +1646,25 @@ multiplication algorithm.") (define-public symmetrica (package (name "symmetrica") - (version "2.0") + (version "3.1.0") (source (origin - (method url-fetch/tarbomb) - (uri (let ((v (string-join (string-split version #\.) "_"))) - (string-append "http://www.algorithm.uni-bayreuth.de/" - "en/research/SYMMETRICA/" - "SYM" v "_tar.gz"))) + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/sagemath/symmetrica/") + (commit version))) + (file-name (git-file-name name version)) (sha256 (base32 - "1qhfrbd5ybb0sinl9pad64rscr08qvlfzrzmi4p4hk61xn6phlmz")) - ;; Taken from <https://git.sagemath.org/sage.git/plain/build/pkgs/symmetrica/patches/> - (patches (search-patches "symmetrica-bruch.patch" - "symmetrica-int32.patch" - "symmetrica-return_values.patch" - "symmetrica-sort_sum_rename.patch")))) + "0yirh2rhvih515442pr7nfx1wdwjhjvnnr0a51a02wc3z50qsxms")))) (build-system gnu-build-system) - (arguments - `(#:tests? #f ;no test - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-makefile - (lambda _ - (substitute* "makefile" - (("cc -c") "gcc -c -fPIC")) - #t)) - (add-after 'fix-makefile 'turn-off-banner - (lambda _ - (substitute* "de.c" - (("(INT no_banner = )FALSE" _ pre) (string-append pre "TRUE"))) - #t)) - (delete 'configure) ;no configure script - (replace 'install ;no install target - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (lib (string-append out "/lib")) - (inc (string-append out "/include/symmetrica")) - (doc (string-append out "/share/doc/symmetrica-" ,version)) - (static "libsymmetrica.a")) - ;; Build static library. - (apply invoke "ar" "crs" static (find-files "." "\\.o$")) - (invoke "ranlib" static) - ;; Install static library and headers. - (for-each (lambda (f) (install-file f inc)) - (find-files "." "\\.h$")) - (install-file "libsymmetrica.a" lib) - ;; Install documentation. - (for-each (lambda (f) (install-file f doc)) - (find-files "." "\\.doc$")) - #t)))))) - (home-page "http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/") + (native-inputs (list autoconf automake libtool pkg-config)) + (home-page "https://gitlab.com/sagemath/symmetrica/") (synopsis "Combinatoric C Library") (description "Symmetrica is a library for combinatorics. It has support for the representation theory of the symmetric group and related groups, combinatorics of tableaux, symmetric functions and polynomials, Schubert polynomials, and the representation theory of Hecke algebras of type A_n.") - (license license:public-domain))) + (license license:isc))) (define-public m4rie (package |