mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
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.
This commit is contained in:
parent
b6cb13583b
commit
4fb254a339
1 changed files with 16 additions and 0 deletions
|
@ -204,6 +204,15 @@ (define-public openssl
|
||||||
#:test-target "test"
|
#:test-target "test"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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
|
(replace
|
||||||
'configure
|
'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
@ -212,6 +221,13 @@ (define-public openssl
|
||||||
(system* "./config"
|
(system* "./config"
|
||||||
"shared" ;build shared libraries
|
"shared" ;build shared libraries
|
||||||
"--libdir=lib"
|
"--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)
|
(string-append "--prefix=" out)
|
||||||
|
|
||||||
;; XXX FIXME: Work around a code generation bug in GCC
|
;; XXX FIXME: Work around a code generation bug in GCC
|
||||||
|
|
Loading…
Reference in a new issue