gnu: openssl: Fix indentation.

* gnu/packages/tls.scm (openssl): Fix indentation of package definition.
This commit is contained in:
Efraim Flashner 2020-11-08 10:12:48 +02:00
parent 2496b92e6c
commit d4dbcb81bc
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -334,27 +334,27 @@ (define-public openssl
#:disallowed-references ,(list (canonical-package perl)) #:disallowed-references ,(list (canonical-package perl))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
,@(if (%current-target-system) ,@(if (%current-target-system)
'((add-before '((add-before
'configure 'set-cross-compile 'configure 'set-cross-compile
(lambda* (#:key target outputs #:allow-other-keys) (lambda* (#:key target outputs #:allow-other-keys)
(setenv "CROSS_COMPILE" (string-append target "-")) (setenv "CROSS_COMPILE" (string-append target "-"))
(setenv "CONFIGURE_TARGET_ARCH" (setenv "CONFIGURE_TARGET_ARCH"
(cond (cond
((string-prefix? "i586" target) ((string-prefix? "i586" target)
"hurd-x86") "hurd-x86")
((string-prefix? "i686" target) ((string-prefix? "i686" target)
"linux-x86") "linux-x86")
((string-prefix? "x86_64" target) ((string-prefix? "x86_64" target)
"linux-x86_64") "linux-x86_64")
((string-prefix? "mips64el" target) ((string-prefix? "mips64el" target)
"linux-mips64") "linux-mips64")
((string-prefix? "arm" target) ((string-prefix? "arm" target)
"linux-armv4") "linux-armv4")
((string-prefix? "aarch64" target) ((string-prefix? "aarch64" target)
"linux-aarch64"))) "linux-aarch64")))
#t))) #t)))
'()) '())
(replace 'configure (replace 'configure
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
@ -365,8 +365,8 @@ (define-public openssl
(string-append (assoc-ref %build-inputs "coreutils") (string-append (assoc-ref %build-inputs "coreutils")
"/bin/env"))) "/bin/env")))
(invoke ,@(if (%current-target-system) (invoke ,@(if (%current-target-system)
'("./Configure") '("./Configure")
'("./config")) '("./config"))
"shared" ;build shared libraries "shared" ;build shared libraries
"--libdir=lib" "--libdir=lib"
@ -378,9 +378,9 @@ (define-public openssl
(string-append "--prefix=" out) (string-append "--prefix=" out)
(string-append "-Wl,-rpath," lib) (string-append "-Wl,-rpath," lib)
,@(if (%current-target-system) ,@(if (%current-target-system)
'((getenv "CONFIGURE_TARGET_ARCH")) '((getenv "CONFIGURE_TARGET_ARCH"))
'()))))) '())))))
(add-after 'install 'move-static-libraries (add-after 'install 'move-static-libraries
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; Move static libraries to the "static" output. ;; Move static libraries to the "static" output.