* [PATCH] htsjdk: Use ant-build-system.
@ 2016-03-14 12:04 Ricardo Wurmus
2016-03-14 13:00 ` 宋文武
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2016-03-14 12:04 UTC (permalink / raw)
To: guix-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-htsjdk-Use-ant-build-system.patch --]
[-- Type: text/x-patch, Size: 2499 bytes --]
From 25285f8516a3129230357cf4edec2d47c8ab89c4 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Mon, 14 Mar 2016 13:02:48 +0100
Subject: [PATCH] gnu: htsjdk: Use ant-build-system.
* gnu/packages/bioinformatics.scm (htsjdk)[build-system]: Use
ant-build-system.
[arguments]: Adapt for ant-build-system.
---
gnu/packages/bioinformatics.scm | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index ed2b634..5dedf10 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -26,6 +26,7 @@
#:use-module (guix utils)
#:use-module (guix download)
#:use-module (guix git-download)
+ #:use-module (guix build-system ant)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
#:use-module (guix build-system perl)
@@ -2052,24 +2053,17 @@ from high-throughput sequencing assays.")
(snippet '(substitute* "build.xml"
(("failifexecutionfails=\"true\"")
"failifexecutionfails=\"false\"")))))
- (build-system gnu-build-system)
+ (build-system ant-build-system)
(arguments
- `(#:modules ((srfi srfi-1)
- (guix build gnu-build-system)
- (guix build utils))
- #:phases (alist-replace
- 'build
- (lambda _
- (setenv "JAVA_HOME" (assoc-ref %build-inputs "jdk"))
- (zero? (system* "ant" "all"
- (string-append "-Ddist="
- (assoc-ref %outputs "out")
- "/share/java/htsjdk/"))))
- (fold alist-delete %standard-phases
- '(configure install check)))))
- (native-inputs
- `(("ant" ,ant)
- ("jdk" ,icedtea "jdk")))
+ `(#:tests? #f ; test require Internet access
+ #:make-flags
+ (list (string-append "-Ddist=" (assoc-ref %outputs "out")
+ "/share/java/htsjdk/"))
+ #:build-target "all"
+ #:phases
+ (modify-phases %standard-phases
+ ;; The build phase also installs the jars
+ (delete 'install))))
(home-page "http://samtools.github.io/htsjdk/")
(synopsis "Java API for high-throughput sequencing data (HTS) formats")
(description
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] htsjdk: Use ant-build-system.
2016-03-14 12:04 [PATCH] htsjdk: Use ant-build-system Ricardo Wurmus
@ 2016-03-14 13:00 ` 宋文武
2016-03-14 13:30 ` Ricardo Wurmus
0 siblings, 1 reply; 3+ messages in thread
From: 宋文武 @ 2016-03-14 13:00 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:
> From 25285f8516a3129230357cf4edec2d47c8ab89c4 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
> Date: Mon, 14 Mar 2016 13:02:48 +0100
> Subject: [PATCH] gnu: htsjdk: Use ant-build-system.
>
> * gnu/packages/bioinformatics.scm (htsjdk)[build-system]: Use
> ant-build-system.
> [arguments]: Adapt for ant-build-system.
Cool! Please push (if it works) :-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] htsjdk: Use ant-build-system.
2016-03-14 13:00 ` 宋文武
@ 2016-03-14 13:30 ` Ricardo Wurmus
0 siblings, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2016-03-14 13:30 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
宋文武 <iyzsong@member.fsf.org> writes:
> Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:
>
>> From 25285f8516a3129230357cf4edec2d47c8ab89c4 Mon Sep 17 00:00:00 2001
>> From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
>> Date: Mon, 14 Mar 2016 13:02:48 +0100
>> Subject: [PATCH] gnu: htsjdk: Use ant-build-system.
>>
>> * gnu/packages/bioinformatics.scm (htsjdk)[build-system]: Use
>> ant-build-system.
>> [arguments]: Adapt for ant-build-system.
> Cool! Please push (if it works) :-)
It does in fact work :) Pushed as 10b4a96.
~~ Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-14 13:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-14 12:04 [PATCH] htsjdk: Use ant-build-system Ricardo Wurmus
2016-03-14 13:00 ` 宋文武
2016-03-14 13:30 ` Ricardo Wurmus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).