summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2025-02-13 10:52:25 +0100
committerAndreas Enge <andreas@enge.fr>2025-02-13 11:04:19 +0100
commit12afd5847faa3d9f53c0bf619a56ee49cb405d56 (patch)
tree4a05295a2e0fb4486b2ed7c02c773d38da8d734d
parentb10c1ccdeaaa44f86d9abcf142566786480d3bbf (diff)
gnu: Remove zn-poly.
The only purpose of this package was to be used as an input to sage, but sage does not use it anymore. * gnu/packages/sagemath.scm (zn-poly): Delete variable. Change-Id: Ibaa8bec84be0b5f34bfc70a384113ab08c82a11c
-rw-r--r--gnu/packages/sagemath.scm57
1 files changed, 0 insertions, 57 deletions
diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm
index 28ebeeea1e1..827329029e2 100644
--- a/gnu/packages/sagemath.scm
+++ b/gnu/packages/sagemath.scm
@@ -331,63 +331,6 @@ a given height bound on a hyperelliptic curve in a very efficient way,
331by using an optimized quadratic sieve algorithm.") 331by using an optimized quadratic sieve algorithm.")
332 (license license:gpl2+))) 332 (license license:gpl2+)))
333 333
334;; Sage has become upstream of the following package.
335(define-public zn-poly
336 (package
337 (name "zn-poly")
338 (version "0.9.2")
339 (source
340 (origin
341 (method git-fetch)
342 (uri (git-reference
343 (url (string-append "https://gitlab.com/sagemath/"
344 "zn_poly.git/"))
345 (commit version)))
346 (file-name (git-file-name "zn_poly" version))
347 (sha256
348 (base32 "1wbc3apxcldxfcw1dnwnn7fvlfb6bwvlr8glvgv6hf79p9r2s4j0"))))
349 (build-system gnu-build-system)
350 (native-inputs
351 `(("python" ,python-2)))
352 (inputs
353 (list gmp))
354 (arguments
355 `(#:phases
356 (modify-phases %standard-phases
357 (replace 'configure
358 ;; The configure script chokes on --enable-fast-install.
359 (lambda* (#:key inputs outputs #:allow-other-keys)
360 (invoke "./configure"
361 (string-append "--prefix=" (assoc-ref outputs "out"))
362 "--cflags=-O3 -fPIC")))
363 (add-before 'build 'prepare-build
364 (lambda _
365 (setenv "CC" "gcc")
366 #t))
367 (add-after 'build 'build-so
368 (lambda _
369 (invoke "make" "libzn_poly.so")))
370 (add-after 'install 'install-so
371 (lambda* (#:key outputs #:allow-other-keys)
372 (let* ((out (assoc-ref outputs "out"))
373 (lib (string-append out "/lib"))
374 (soname (string-append "libzn_poly-" ,version ".so"))
375 (target (string-append lib "/" soname)))
376 (install-file "libzn_poly.a" lib)
377 (install-file soname lib)
378 (symlink target
379 (string-append lib "/libzn_poly.so"))
380 (symlink target
381 (string-append lib "/libzn_poly-"
382 ,(version-major+minor version)
383 ".so")))
384 #t)))))
385 (synopsis "Arithmetic for polynomials over Z/NZ")
386 (description "zn_poly implements the arithmetic of polynomials the
387coefficients of which are modular integers.")
388 (license (list license:gpl2 license:gpl3)) ; dual licensed
389 (home-page "https://gitlab.com/sagemath/zn_poly")))
390
391(define-public sagemath-data-conway-polynomials 334(define-public sagemath-data-conway-polynomials
392 (package 335 (package
393 (name "sagemath-data-conway-polynomials") 336 (name "sagemath-data-conway-polynomials")