me
/
guix
Archived
1
0
Fork 0

gnu: adcli: Delete use-local-docbook phase.

* gnu/packages/sssd.scm (adcli) [arguments]: Delete use-local-docbook phase.
[native-inputs]: Replace docbook-xml with docbook-xml-4.3.  Add libxml2.
master
Maxim Cournoyer 2023-04-20 23:38:50 -04:00
parent 704f477333
commit 8f0a110503
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 6 additions and 24 deletions

View File

@ -4,6 +4,7 @@
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si>
;;; Copyright © 2021, 2022 Remco van 't Veer <remco@remworks.net>
;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -81,37 +82,18 @@
`(#:configure-flags
;; The net tool is used to update the stored machine key for samba.
(list (string-append "--with-samba-data-tool="
(assoc-ref %build-inputs "samba") "/bin/net"))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'use-local-docbook
;; Patch Makefile and docs to use local docbook resources.
(lambda _
(let* ((docbook-xml (assoc-ref %build-inputs "docbook-xml"))
(docbook-xsl (assoc-ref %build-inputs "docbook-xsl"))
(xsldir (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
,(package-version docbook-xsl))))
(with-directory-excursion "doc"
(substitute*
'("Makefile.am" "adcli.xml" "adcli-devel.xml" "adcli-docs.xml")
(("http://docbook.sourceforge.net/release/xsl/current(/[^\"]*)" _ path)
(string-append xsldir path))
(("http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd")
(string-append docbook-xml "/xml/dtd/docbook/docbookx.dtd")))
(substitute* "Makefile.am"
(("\\$\\(XMLTO\\)" xmlto)
(string-append xmlto " --searchpath " xsldir "/html"))))))))))
(search-input-file %build-inputs "bin/net")))))
(native-inputs
(list autoconf
automake
docbook-xml
docbook-xml-4.3
docbook-xsl
libtool
libxml2 ;for XML_CATALOG_FILES
libxslt
util-linux ; For `rev` command used in tests.
util-linux ;For `rev` command used in tests.
xmlto))
(inputs
(list cyrus-sasl mit-krb5 samba openldap))
(inputs (list cyrus-sasl mit-krb5 samba openldap))
(home-page "https://gitlab.freedesktop.org/realmd/adcli/")
(synopsis "Helper library and tools for Active Directory client operations")
(description "@command{adcli} is a commandline tool to join a computer to