gnu: perl: Split configure phase.
* gnu/packages/perl.scm (perl)[arguments]: Split 'configure' phase into 'setup-configure' and 'configure' phases.
This commit is contained in:
		
							parent
							
								
									b5b5105c3d
								
							
						
					
					
						commit
						9f2989b6cc
					
				
					 1 changed files with 13 additions and 11 deletions
				
			
		|  | @ -62,22 +62,24 @@ | ||||||
|      '(#:tests? #f |      '(#:tests? #f | ||||||
|        #:phases |        #:phases | ||||||
|        (modify-phases %standard-phases |        (modify-phases %standard-phases | ||||||
|  |          (add-before 'configure 'setup-configure | ||||||
|  |            (lambda _ | ||||||
|  |              ;; Use the right path for `pwd'. | ||||||
|  |              (substitute* "dist/PathTools/Cwd.pm" | ||||||
|  |                (("/bin/pwd") | ||||||
|  |                 (which "pwd"))) | ||||||
|  | 
 | ||||||
|  |              ;; Build in GNU89 mode to tolerate C++-style comment in libc's | ||||||
|  |              ;; <bits/string3.h>. | ||||||
|  |              (substitute* "cflags.SH" | ||||||
|  |                (("-std=c89") | ||||||
|  |                 "-std=gnu89")) | ||||||
|  |              #t)) | ||||||
|          (replace |          (replace | ||||||
|           'configure |           'configure | ||||||
|           (lambda* (#:key inputs outputs #:allow-other-keys) |           (lambda* (#:key inputs outputs #:allow-other-keys) | ||||||
|             (let ((out  (assoc-ref outputs "out")) |             (let ((out  (assoc-ref outputs "out")) | ||||||
|                   (libc (assoc-ref inputs "libc"))) |                   (libc (assoc-ref inputs "libc"))) | ||||||
|               ;; Use the right path for `pwd'. |  | ||||||
|               (substitute* "dist/PathTools/Cwd.pm" |  | ||||||
|                 (("/bin/pwd") |  | ||||||
|                  (which "pwd"))) |  | ||||||
| 
 |  | ||||||
|               ;; Build in GNU89 mode to tolerate C++-style comment in libc's |  | ||||||
|               ;; <bits/string3.h>. |  | ||||||
|               (substitute* "cflags.SH" |  | ||||||
|                 (("-std=c89") |  | ||||||
|                  "-std=gnu89")) |  | ||||||
| 
 |  | ||||||
|               (zero? |               (zero? | ||||||
|                (system* "./Configure" |                (system* "./Configure" | ||||||
|                         (string-append "-Dprefix=" out) |                         (string-append "-Dprefix=" out) | ||||||
|  |  | ||||||
		Reference in a new issue