[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/14: gnu: dpkg: Use G-expressions.
From: |
guix-commits |
Subject: |
07/14: gnu: dpkg: Use G-expressions. |
Date: |
Fri, 7 Jul 2023 17:35:26 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit ec96833aab57d4f753e76ee9606268e488d38b99
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 2 02:00:01 2023 +0200
gnu: dpkg: Use G-expressions.
* gnu/packages/debian.scm (dpkg)[arguments]:
Rewrite as G-expressions.
---
gnu/packages/debian.scm | 103 ++++++++++++++++++++++++------------------------
1 file changed, 51 insertions(+), 52 deletions(-)
diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm
index 92aa4a33e3..c5cfda9f80 100644
--- a/gnu/packages/debian.scm
+++ b/gnu/packages/debian.scm
@@ -349,58 +349,57 @@ distributions such as Debian and Trisquel.")
(base32 "0b5czgif5g6pdjzcw60hzzj0i1llxvajf3nlx115axmpa3y4iynd"))))
(build-system gnu-build-system)
(arguments
- `(#:modules
- ((srfi srfi-71)
- ,@%gnu-build-system-modules)
- #:phases
- (modify-phases %standard-phases
- (add-before 'bootstrap 'patch-version
- (lambda _
- (patch-shebang "build-aux/get-version")
- (with-output-to-file ".dist-version"
- (lambda () (display ,version)))))
- (add-after 'unpack 'set-perl-libdir
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (perl (assoc-ref inputs "perl"))
- (_ perl-version (package-name->name+version perl)))
- (setenv "PERL_LIBDIR"
- (string-append out
- "/lib/perl5/site_perl/"
- perl-version)))))
- (add-after 'install 'wrap-scripts
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (with-directory-excursion (string-append out "/bin")
- (for-each
- (lambda (file)
- (wrap-script file
- ;; Make sure all perl scripts in "bin" find the
- ;; required Perl modules at runtime.
- `("PERL5LIB" ":" prefix
- (,(string-append out
- "/lib/perl5/site_perl")
- ,(getenv "PERL5LIB")))
- ;; DPKG perl modules always expect dpkg to be installed.
- ;; Work around this by adding dpkg to the path of the
scripts.
- `("PATH" ":" prefix (,(string-append out "/bin")))))
- (list "dpkg-architecture"
- "dpkg-buildflags"
- "dpkg-buildpackage"
- "dpkg-checkbuilddeps"
- "dpkg-distaddfile"
- "dpkg-genbuildinfo"
- "dpkg-genchanges"
- "dpkg-gencontrol"
- "dpkg-gensymbols"
- "dpkg-mergechangelogs"
- "dpkg-name"
- "dpkg-parsechangelog"
- "dpkg-scanpackages"
- "dpkg-scansources"
- "dpkg-shlibdeps"
- "dpkg-source"
- "dpkg-vendor")))))))))
+ (list #:modules
+ `((srfi srfi-71)
+ ,@%gnu-build-system-modules)
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'bootstrap 'patch-version
+ (lambda _
+ (patch-shebang "build-aux/get-version")
+ (with-output-to-file ".dist-version"
+ (lambda () (display #$version)))))
+ (add-after 'unpack 'set-perl-libdir
+ (lambda _
+ (let* ((perl #$(this-package-input "perl"))
+ (_ perl-version (package-name->name+version perl)))
+ (setenv "PERL_LIBDIR"
+ (string-append #$output
+ "/lib/perl5/site_perl/"
+ perl-version)))))
+ (add-after 'install 'wrap-scripts
+ (lambda _
+ (with-directory-excursion (string-append #$output "/bin")
+ (for-each
+ (lambda (file)
+ (wrap-script file
+ ;; Make sure all perl scripts in "bin" find the
+ ;; required Perl modules at runtime.
+ `("PERL5LIB" ":" prefix
+ (,(string-append #$output
+ "/lib/perl5/site_perl")
+ ,(getenv "PERL5LIB")))
+ ;; DPKG perl modules expect dpkg to be installed.
+ ;; Work around it by adding dpkg to the script's
path.
+ `("PATH" ":" prefix (,(string-append #$output
+ "/bin")))))
+ (list "dpkg-architecture"
+ "dpkg-buildflags"
+ "dpkg-buildpackage"
+ "dpkg-checkbuilddeps"
+ "dpkg-distaddfile"
+ "dpkg-genbuildinfo"
+ "dpkg-genchanges"
+ "dpkg-gencontrol"
+ "dpkg-gensymbols"
+ "dpkg-mergechangelogs"
+ "dpkg-name"
+ "dpkg-parsechangelog"
+ "dpkg-scanpackages"
+ "dpkg-scansources"
+ "dpkg-shlibdeps"
+ "dpkg-source"
+ "dpkg-vendor"))))))))
(native-inputs
(list autoconf
automake
- branch master updated (14888e5b25 -> 3db685cb2e), guix-commits, 2023/07/07
- 02/14: gnu: wireless-regdb: Mark up acronyms in description., guix-commits, 2023/07/07
- 05/14: gnu: dpkg: Update to 1.21.22., guix-commits, 2023/07/07
- 06/14: gnu: dpkg: Use the (intended) input perl's version., guix-commits, 2023/07/07
- 04/14: gnu: wcslib: Download source over HTTPS., guix-commits, 2023/07/07
- 07/14: gnu: dpkg: Use G-expressions.,
guix-commits <=
- 08/14: gnu: lynx: Update to 2.9.0dev.12., guix-commits, 2023/07/07
- 01/14: gnu: wireless-regdb: Update to 2023.05.03., guix-commits, 2023/07/07
- 03/14: gnu: wcslib: Update to 8.1., guix-commits, 2023/07/07
- 12/14: gnu: crda: Update to 4.15., guix-commits, 2023/07/07
- 09/14: gnu: lynx: Use G-expressions., guix-commits, 2023/07/07
- 10/14: gnu: lynx: Mark up acronyms in description., guix-commits, 2023/07/07
- 11/14: gnu: smartmontools: Update to 7.3., guix-commits, 2023/07/07
- 13/14: gnu: crda: Use G-expressions., guix-commits, 2023/07/07
- 14/14: gnu: crda: Mark up acronyms in description., guix-commits, 2023/07/07