diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2026-05-30 16:31:53 +0200 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-06-23 14:11:20 +0200 |
| commit | 72ef3bb7dc704d25c7647c8add73ddc2448aab37 (patch) | |
| tree | 1133a6d28db37434de90a98144c3b9d046ccd6ff | |
| parent | 097ef9c8909f355b7b12fcabfeedc17b69a64677 (diff) | |
gnu: libgpg-error: Use git repository.
* gnu/packages/gnupg.scm (libgpg-error)[source]: Switch to git-fetch.
[native-inputs]: Add autoconf, automake, and texinfo.
[arguments]<#:configure-flags>: Enable maintainer mode.
<#phases>: Add ’create-version.
[home-page]: Update.
Change-Id: Ia94f35b16767a33d22515cba3224d767bb20df81
| -rw-r--r-- | gnu/packages/gnupg.scm | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index ca43c5e763e..b34abf35c47 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm | |||
| @@ -105,18 +105,32 @@ | |||
| 105 | (version "1.61") | 105 | (version "1.61") |
| 106 | (source | 106 | (source |
| 107 | (origin | 107 | (origin |
| 108 | (method url-fetch) | 108 | (method git-fetch) |
| 109 | (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-" | 109 | (uri (git-reference |
| 110 | version ".tar.bz2")) | 110 | (url "https://dev.gnupg.org/source/libgpg-error") |
| 111 | (sha256 | 111 | (commit (string-append "libgpg-error-" version)))) |
| 112 | (base32 | 112 | (file-name (git-file-name name version)) |
| 113 | "14sw73317735xq991sz0x5jqkr12y6572aw3mbwg8m635czl31bs")))) | 113 | (sha256 |
| 114 | (base32 | ||
| 115 | "00nhhyfhljx60xzjmp0lhz7b1zx7psx6hfs138y5q7r2jj2z8h1g")))) | ||
| 114 | (build-system gnu-build-system) | 116 | (build-system gnu-build-system) |
| 115 | (arguments | 117 | (arguments |
| 116 | (list | 118 | (list |
| 117 | #:configure-flags #~(list "--enable-install-gpg-error-config") | 119 | #:configure-flags #~(list "--enable-install-gpg-error-config" |
| 120 | ;; See README.GIT. | ||
| 121 | "--enable-maintainer-mode") | ||
| 118 | #:phases | 122 | #:phases |
| 119 | #~(modify-phases %standard-phases | 123 | #~(modify-phases %standard-phases |
| 124 | (add-after 'unpack 'create-version | ||
| 125 | (lambda _ | ||
| 126 | (call-with-output-file "doc/version.texi" | ||
| 127 | (lambda (port) | ||
| 128 | (format port "\ | ||
| 129 | @set UPDATED | ||
| 130 | @set EDITION ~a | ||
| 131 | @set VERSION ~a" | ||
| 132 | #$version | ||
| 133 | #$version))))) | ||
| 120 | #$@(cond | 134 | #$@(cond |
| 121 | ((%current-target-system) | 135 | ((%current-target-system) |
| 122 | ;; If this is left out, some generated header | 136 | ;; If this is left out, some generated header |
| @@ -159,8 +173,8 @@ | |||
| 159 | (("(^| )main *\\(.*" all) | 173 | (("(^| )main *\\(.*" all) |
| 160 | (string-append all "{\n exit (77);//"))))))) | 174 | (string-append all "{\n exit (77);//"))))))) |
| 161 | (else #~()))))) | 175 | (else #~()))))) |
| 162 | (native-inputs (list gettext-minimal)) | 176 | (native-inputs (list autoconf automake gettext-minimal texinfo)) |
| 163 | (home-page "https://gnupg.org") | 177 | (home-page "https://gnupg.org/software/libgpg-error") |
| 164 | (synopsis "Library of error values for GnuPG components") | 178 | (synopsis "Library of error values for GnuPG components") |
| 165 | (description | 179 | (description |
| 166 | "Libgpg-error is a small library that defines common error values | 180 | "Libgpg-error is a small library that defines common error values |
