gnu: ldns: Gexp arguments.

* gnu/packages/dns.scm (ldns)[arguments]:
Rewrite as a keyword/gexp list.
This commit is contained in:
Tobias Geerinckx-Rice 2021-12-23 05:24:16 +01:00
parent a1bf1e6faf
commit 14bc88a9b3
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79

View File

@ -79,6 +79,7 @@
#:use-module (gnu packages web) #:use-module (gnu packages web)
#:use-module (gnu packages xml) #:use-module (gnu packages xml)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
@ -157,50 +158,38 @@ protocol.")
(build-system gnu-build-system) (build-system gnu-build-system)
(outputs '("out" "drill" "examples" "pyldns")) (outputs '("out" "drill" "examples" "pyldns"))
(arguments (arguments
`( ;; Tests require Tpkg. (list
;; https://tpkg.github.io/ #:tests? #f ; tests require <https://tpkg.github.io>
#:tests? #f #:configure-flags
#:configure-flags #~(list
(list "--disable-static"
"--disable-static" "--enable-gost-anyway"
"--enable-gost-anyway" "--enable-rrtype-ninfo"
"--enable-rrtype-ninfo" "--enable-rrtype-rkey"
"--enable-rrtype-rkey" "--enable-rrtype-ta"
"--enable-rrtype-ta" "--enable-rrtype-avc"
"--enable-rrtype-avc" "--enable-rrtype-doa"
"--enable-rrtype-doa" "--enable-rrtype-amtrelay"
"--enable-rrtype-amtrelay" "--with-drill"
"--with-drill" "--with-examples"
"--with-examples" "--with-pyldns"
"--with-pyldns" ;; Perl module DNS::LDNS not available.
;; Perl module DNS::LDNS not available. ;; https://github.com/erikoest/DNS-LDNS.git
;; https://github.com/erikoest/DNS-LDNS.git ;; "--with-p5-dns-ldns"
;; "--with-p5-dns-ldns" (string-append "--with-ssl=" #$(this-package-input "openssl"))
(string-append "--with-ssl=" (string-append "--with-ca-path=" #$(this-package-input "nss-certs")
(assoc-ref %build-inputs "openssl")) "/etc/ssl/certs"))
(string-append "--with-ca-path=" #:make-flags
(assoc-ref %build-inputs "nss-certs") #~(list
"/etc/ssl/certs")) (string-append "drillbindir=" #$output:drill "/bin")
#:make-flags (string-append "drillmandir=" #$output:drill "/share/man")
(list (string-append "examplesbindir=" #$output:examples "/bin")
(string-append "drillbindir=" (string-append "examplesmandir=" #$output:examples "/share/man")
(assoc-ref %outputs "drill") (string-append "python_site=" #$output:pyldns "/lib/python"
"/bin") #$(version-major+minor (package-version
(string-append "drillmandir=" (this-package-input
(assoc-ref %outputs "drill") "python-wrapper")))
"/share/man") "/site-packages"))))
(string-append "examplesbindir="
(assoc-ref %outputs "examples")
"/bin")
(string-append "examplesmandir="
(assoc-ref %outputs "examples")
"/share/man")
(string-append "python_site="
(assoc-ref %outputs "pyldns")
"/lib/python"
,(version-major+minor
(package-version python))
"/site-packages"))))
(native-inputs (native-inputs
(list doxygen perl perl-devel-checklib pkg-config swig)) (list doxygen perl perl-devel-checklib pkg-config swig))
(inputs (inputs