1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 02:20:53 +02:00

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
This commit is contained in:
Vinicius Monego 2025-06-29 17:54:18 -03:00
parent f0d1af4b29
commit 18bc763899
No known key found for this signature in database
GPG key ID: 637B0B138065B68A
6 changed files with 10 additions and 480 deletions

View file

@ -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