gnu: bzip2: Add static output.
* gnu/packages/compression.scm (bzip2)[arguments]: Add phase for moving static library. [outputs]: New field.
This commit is contained in:
		
							parent
							
								
									5212c52ce5
								
							
						
					
					
						commit
						45719c1dfb
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -293,6 +293,14 @@ file; as a result, it is often used in conjunction with \"tar\", resulting in
 | 
				
			||||||
                       (symlink so-file base)
 | 
					                       (symlink so-file base)
 | 
				
			||||||
                       (loop so-file (cdr numbers))))))
 | 
					                       (loop so-file (cdr numbers))))))
 | 
				
			||||||
               #t)))
 | 
					               #t)))
 | 
				
			||||||
 | 
					         (add-after 'install-shared-lib 'move-static-lib
 | 
				
			||||||
 | 
					           (lambda* (#:key outputs #:allow-other-keys)
 | 
				
			||||||
 | 
					             (let ((out (assoc-ref outputs "out"))
 | 
				
			||||||
 | 
					                   (static (assoc-ref outputs "static")))
 | 
				
			||||||
 | 
					               (with-directory-excursion (string-append out "/lib")
 | 
				
			||||||
 | 
					                 (install-file "libbz2.a" (string-append static "/lib"))
 | 
				
			||||||
 | 
					                 (delete-file "libbz2.a")
 | 
				
			||||||
 | 
					                 #t))))
 | 
				
			||||||
         (add-after 'install-shared-lib 'patch-scripts
 | 
					         (add-after 'install-shared-lib 'patch-scripts
 | 
				
			||||||
           (lambda* (#:key outputs inputs #:allow-other-keys)
 | 
					           (lambda* (#:key outputs inputs #:allow-other-keys)
 | 
				
			||||||
             (let* ((out (assoc-ref outputs "out")))
 | 
					             (let* ((out (assoc-ref outputs "out")))
 | 
				
			||||||
| 
						 | 
					@ -307,6 +315,7 @@ file; as a result, it is often used in conjunction with \"tar\", resulting in
 | 
				
			||||||
       ,@(if (%current-target-system)
 | 
					       ,@(if (%current-target-system)
 | 
				
			||||||
             '(#:tests? #f)
 | 
					             '(#:tests? #f)
 | 
				
			||||||
             '())))
 | 
					             '())))
 | 
				
			||||||
 | 
					    (outputs '("out" "static"))
 | 
				
			||||||
    (synopsis "High-quality data compression program")
 | 
					    (synopsis "High-quality data compression program")
 | 
				
			||||||
    (description
 | 
					    (description
 | 
				
			||||||
     "bzip2 is a freely available, patent free (see below), high-quality data
 | 
					     "bzip2 is a freely available, patent free (see below), high-quality data
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue