gnu: curl: Let patch-shebang handle /usr/bin/env.
* gnu/packages/curl.scm (curl): Drop manual rewriting of #!/usr/bin/env.
This commit is contained in:
		
							parent
							
								
									c3f9761771
								
							
						
					
					
						commit
						b5c18c78c2
					
				
					 1 changed files with 1 additions and 12 deletions
				
			
		| 
						 | 
					@ -55,18 +55,7 @@
 | 
				
			||||||
             ("pkg-config" ,pkg-config)
 | 
					             ("pkg-config" ,pkg-config)
 | 
				
			||||||
             ("zlib" ,zlib)))
 | 
					             ("zlib" ,zlib)))
 | 
				
			||||||
   (arguments
 | 
					   (arguments
 | 
				
			||||||
    `(#:configure-flags '("--with-gnutls" "--with-gssapi")
 | 
					    `(#:configure-flags '("--with-gnutls" "--with-gssapi")))
 | 
				
			||||||
      #:phases
 | 
					 | 
				
			||||||
       (alist-replace
 | 
					 | 
				
			||||||
        'unpack
 | 
					 | 
				
			||||||
        (lambda* (#:key #:allow-other-keys #:rest args)
 | 
					 | 
				
			||||||
         (let ((unpack (assoc-ref %standard-phases 'unpack)))
 | 
					 | 
				
			||||||
           (apply unpack args)
 | 
					 | 
				
			||||||
           ;; The following patch-shebang phase will replace perl
 | 
					 | 
				
			||||||
           ;; by the correct path.
 | 
					 | 
				
			||||||
           (substitute* "tests/runtests.pl"
 | 
					 | 
				
			||||||
                         (("#!/usr/bin/env perl") "#!/usr/bin/perl"))))
 | 
					 | 
				
			||||||
       %standard-phases)))
 | 
					 | 
				
			||||||
   (synopsis "curl, command line tool for transferring data with URL syntax")
 | 
					   (synopsis "curl, command line tool for transferring data with URL syntax")
 | 
				
			||||||
   (description
 | 
					   (description
 | 
				
			||||||
    "curl is a command line tool for transferring data with URL syntax,
 | 
					    "curl is a command line tool for transferring data with URL syntax,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue