[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: zn-poly: Install all libraries.

From: guix-commits
Subject: 01/01: gnu: zn-poly: Install all libraries.
Date: Fri, 21 Jun 2019 10:37:15 -0400 (EDT)

andreas pushed a commit to branch master
in repository guix.

commit e6049c84dab3031fb64defae2c45a20b512d4644
Author: Andreas Enge <address@hidden>
Date:   Fri Jun 21 16:32:58 2019 +0200

    gnu: zn-poly: Install all libraries.
    * gnu/packages/sagemath.scm (zn-poly): Install the static and the dynamic
    library with its symlinks, and end a phase with #t.
 gnu/packages/sagemath.scm | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm
index 7517b55..d264eb5 100644
--- a/gnu/packages/sagemath.scm
+++ b/gnu/packages/sagemath.scm
@@ -309,8 +309,19 @@ on numerical types, while GiNaC depends on CLN for this 
              (invoke "make" "")))
          (add-after 'install 'install-so
            (lambda* (#:key outputs #:allow-other-keys)
-             (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
-               (install-file "" lib)))))))
+             (let* ((out (assoc-ref outputs "out"))
+                    (lib (string-append out "/lib"))
+                    (soname (string-append "libzn_poly-" ,version ".so"))
+                    (target (string-append lib "/" soname)))
+               (install-file "libzn_poly.a" lib)
+               (install-file soname lib)
+               (symlink target
+                        (string-append lib "/"))
+               (symlink target
+                        (string-append lib "/libzn_poly-"
+                                       ,(version-major+minor version)
+                                       ".so")))
+             #t)))))
     (synopsis "Arithmetic for polynomials over Z/NZ")
     (description "zn_poly implements the arithmetic of polynomials the
 coefficients of which are modular integers.")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]