gnu: gnome-keyring: Use Python 3.

* gnu/packages/gnome.scm (libgnome-keyring)[source]: Fix indentation.
[arguments]: Use gexps.
[phases]{fix-docbook}: Delete phase.
[native-inputs]: Use new style.  Replaec python-2 with python-wrapper.  Use
current docbook-xml.  Add libxml2.
This commit is contained in:
Maxim Cournoyer 2022-05-13 13:44:51 -04:00
parent 5fe7b6efbb
commit 6fedf5c5b0
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -2477,61 +2477,44 @@ GNOME Desktop.")
(name "gnome-keyring") (name "gnome-keyring")
(version "40.0") (version "40.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://gnome/sources/" name "/" (uri (string-append "mirror://gnome/sources/" name "/"
(version-major version) "/" (version-major version) "/"
name "-" version ".tar.xz")) name "-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"0cdrlcw814zayhvlaxqs1sm9bqlfijlp22dzzd0g5zg2isq4vlm3")))) "0cdrlcw814zayhvlaxqs1sm9bqlfijlp22dzzd0g5zg2isq4vlm3"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does (list
;not exist #:tests? #f ;48 of 603 tests fail because /var/lib/dbus/machine-id does
#:configure-flags ;not exist
(list #:configure-flags
(string-append "--with-pkcs11-config=" #~(list
(assoc-ref %outputs "out") "/share/p11-kit/modules/") (string-append "--with-pkcs11-config="
(string-append "--with-pkcs11-modules=" #$output "/share/p11-kit/modules/")
(assoc-ref %outputs "out") "/share/p11-kit/modules/")) (string-append "--with-pkcs11-modules="
#:phases #$output "/share/p11-kit/modules/"))
(modify-phases %standard-phases #:phases
(add-after 'unpack 'fix-/bin/sh-reference #~(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'fix-/bin/sh-reference
(substitute* "po/Makefile.in.in" (lambda _
(("/bin/sh") (which "sh"))) (substitute* "po/Makefile.in.in"
#t)) (("/bin/sh") (which "sh"))))))))
(add-after 'unpack 'fix-docbook
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "docs/Makefile.am"
(("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
(string-append (assoc-ref inputs "docbook-xsl")
"/xml/xsl/docbook-xsl-"
,(package-version docbook-xsl)
"/manpages/docbook.xsl")))
(setenv "XML_CATALOG_FILES"
(string-append (assoc-ref inputs "docbook-xml")
"/xml/dtd/docbook/catalog.xml"))
;; Rerun the whole thing to avoid version mismatch ("This is
;; Automake 1.15.1, but the definition used by this
;; AM_INIT_AUTOMAKE comes from Automake 1.15."). Note: we don't
;; use 'autoreconf' because it insists on running 'libtoolize'.
(invoke "autoconf")
(invoke "aclocal")
(invoke "automake" "-ac"))))))
(inputs (inputs
(list libgcrypt linux-pam openssh dbus gcr)) (list libgcrypt linux-pam openssh dbus gcr))
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config) (list pkg-config
("glib" ,glib "bin") `(,glib "bin")
("glib" ,glib) ; for m4 macros glib ;for m4 macros
("python" ,python-2) ;for tests python-wrapper ;for tests
("intltool" ,intltool) intltool
("autoconf" ,autoconf) autoconf
("automake" ,automake) automake
("libxslt" ,libxslt) ;for documentation libxml2 ;for XML_CATALOG_FILES
("docbook-xml" ,docbook-xml-4.3) libxslt ;for documentation
("docbook-xsl" ,docbook-xsl))) docbook-xml
docbook-xsl))
(propagated-inputs (propagated-inputs
(list gcr)) (list gcr))
(home-page "https://www.gnome.org") (home-page "https://www.gnome.org")