guix-commits
[Top][All Lists]
Advanced

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

03/05: gnu: openssl: Install data and documentation to PREFIX/share.


From: Ludovic Courtès
Subject: 03/05: gnu: openssl: Install data and documentation to PREFIX/share.
Date: Wed, 09 Sep 2015 17:20:14 +0000

civodul pushed a commit to branch core-updates
in repository guix.

commit 4fb254a3399a62b061fdde365fc8d53d6a6fc23e
Author: Ludovic Courtès <address@hidden>
Date:   Wed Sep 9 18:17:38 2015 +0200

    gnu: openssl: Install data and documentation to PREFIX/share.
    
    * gnu/packages/tls.scm (openssl)[arguments]: Add 'fix-man-dir' phase.
      Pass --openssldir=PREFIX/share/openssl-VERSION to ./config.
---
 gnu/packages/tls.scm |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 5bbe367..0bce6e1 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -204,6 +204,15 @@ required structures.")
       #:test-target "test"
       #:phases
       (modify-phases %standard-phases
+        (add-before
+         'configure 'fix-man-dir
+         (lambda* (#:key outputs #:allow-other-keys)
+           ;; The default MANDIR is some unusual place.  Fix that.
+           (let ((out (assoc-ref outputs "out")))
+             (substitute* "Makefile.org"
+               (("^MANDIR[[:blank:]]*=.*$")
+                (string-append "MANDIR = " out "/share/man\n")))
+             #t)))
         (replace
          'configure
          (lambda* (#:key outputs #:allow-other-keys)
@@ -212,6 +221,13 @@ required structures.")
               (system* "./config"
                        "shared"                   ;build shared libraries
                        "--libdir=lib"
+
+                       ;; The default for this catch-all directory is
+                       ;; PREFIX/ssl.  Change that to something more
+                       ;; conventional.
+                       (string-append "--openssldir=" out
+                                      "/share/openssl-" ,version)
+
                        (string-append "--prefix=" out)
 
                        ;; XXX FIXME: Work around a code generation bug in GCC



reply via email to

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