From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 5/5] gnu: libextractor: Move .a files to output "static". Date: Thu, 9 Feb 2017 13:37:04 +0000 Message-ID: <20170209133704.4654-6-contact.ng0@cryptolab.net> References: <87h945iva7.fsf@openmailbox.org> <20170209133704.4654-1-contact.ng0@cryptolab.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbotL-0001fJ-Nw for guix-devel@gnu.org; Thu, 09 Feb 2017 08:36:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbotK-0005Zs-T6 for guix-devel@gnu.org; Thu, 09 Feb 2017 08:36:07 -0500 Received: from aibo.runbox.com ([91.220.196.211]:36598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbotK-0005ZF-MK for guix-devel@gnu.org; Thu, 09 Feb 2017 08:36:06 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cbotJ-00057R-EI for guix-devel@gnu.org; Thu, 09 Feb 2017 14:36:05 +0100 In-Reply-To: <20170209133704.4654-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * gnu/packages/gnunet.scm (libextractor): Move .a files to "static" output. [arguments](phases): New phase for moving .a files to output "static". --- gnu/packages/gnunet.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnunet.scm b/gnu/packages/gnunet.scm index f7da12ad5..a4514a7f4 100644 --- a/gnu/packages/gnunet.scm +++ b/gnu/packages/gnunet.scm @@ -115,13 +115,30 @@ ("zlib" ,zlib))) (native-inputs `(("pkg-config" ,pkg-config))) + (outputs '("out" + "static")) ; 396 KiB .a files (arguments `(#:configure-flags (list (string-append "--with-ltdl=" (assoc-ref %build-inputs "libltdl")) (string-append "--with-tidy=" (assoc-ref %build-inputs "tidy-html"))) - #:parallel-tests? #f)) + #:parallel-tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'install 'move-static-libraries + (lambda* (#:key outputs #:allow-other-keys) + ;; Move static libraries to the "static" output. + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib")) + (static (assoc-ref outputs "static")) + (slib (string-append static "/lib"))) + (mkdir-p slib) + (for-each (lambda (file) + (install-file file slib) + (delete-file file)) + (find-files lib "\\.a$")) + #t)))))) (synopsis "Library to extract meta-data from media files") (description "GNU libextractor is a library for extracting metadata from files. It -- 2.11.1