gnu: dpkg: Use G-expressions.
* gnu/packages/debian.scm (dpkg)[arguments]: Rewrite as G-expressions.
This commit is contained in:
		
							parent
							
								
									1122217f27
								
							
						
					
					
						commit
						ec96833aab
					
				
					 1 changed files with 51 additions and 52 deletions
				
			
		| 
						 | 
				
			
			@ -349,41 +349,40 @@ distributions such as Debian and Trisquel.")
 | 
			
		|||
         (base32 "0b5czgif5g6pdjzcw60hzzj0i1llxvajf3nlx115axmpa3y4iynd"))))
 | 
			
		||||
    (build-system gnu-build-system)
 | 
			
		||||
    (arguments
 | 
			
		||||
     `(#:modules
 | 
			
		||||
       ((srfi srfi-71)
 | 
			
		||||
     (list #:modules
 | 
			
		||||
           `((srfi srfi-71)
 | 
			
		||||
             ,@%gnu-build-system-modules)
 | 
			
		||||
           #:phases
 | 
			
		||||
       (modify-phases %standard-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)))))
 | 
			
		||||
                     (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"))
 | 
			
		||||
                 (lambda _
 | 
			
		||||
                   (let* ((perl #$(this-package-input "perl"))
 | 
			
		||||
                          (_ perl-version (package-name->name+version perl)))
 | 
			
		||||
                     (setenv "PERL_LIBDIR"
 | 
			
		||||
                       (string-append out
 | 
			
		||||
                             (string-append #$output
 | 
			
		||||
                                            "/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")
 | 
			
		||||
                 (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 out
 | 
			
		||||
                            (,(string-append #$output
 | 
			
		||||
                                             "/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")))))
 | 
			
		||||
                          ;; 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"
 | 
			
		||||
| 
						 | 
				
			
			@ -400,7 +399,7 @@ distributions such as Debian and Trisquel.")
 | 
			
		|||
                            "dpkg-scansources"
 | 
			
		||||
                            "dpkg-shlibdeps"
 | 
			
		||||
                            "dpkg-source"
 | 
			
		||||
                         "dpkg-vendor")))))))))
 | 
			
		||||
                            "dpkg-vendor"))))))))
 | 
			
		||||
    (native-inputs
 | 
			
		||||
     (list autoconf
 | 
			
		||||
           automake
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue