From: Roel Janssen <roel@gnu.org>
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] Add vcflib.
Date: Tue, 26 Apr 2016 19:51:00 +0200 [thread overview]
Message-ID: <878u00xnqz.fsf@gnu.org> (raw)
In-Reply-To: <87a8kgxnsg.fsf@gnu.org>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-intervaltree-v2.patch --]
[-- Type: text/x-patch, Size: 2195 bytes --]
From 98ed1adae91aca2c118779f5333dc21446f1c720 Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
Date: Tue, 26 Apr 2016 19:48:31 +0200
Subject: [PATCH] gnu: Add intervaltree.
* gnu/packages/bioinformatics.scm (intervaltree): New variable.
---
gnu/packages/bioinformatics.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 620439f..9ad6c38 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -885,6 +885,38 @@ well as many of the command line options.")
multiple sequence alignments.")
(license license:expat)))
+(define-public intervaltree
+ (let ((commit "dbb4c513d1ad3baac516fc1484c995daf9b42838"))
+ (package
+ (name "intervaltree")
+ (version (string-append "0-1." (string-take commit 7)))
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/ekg/intervaltree/archive/"
+ commit ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "19prwpn2wxsrijp5svfqvfcxl5nj7zdhm3jycd5kqhl9nifpmcks"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'configure) ; There is no configure phase.
+ (replace 'check
+ (lambda _
+ (zero? (system* "./interval_tree_test"))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((include (string-append (assoc-ref outputs "out")
+ "/include/intervaltree")))
+ (install-file "IntervalTree.h" include)))))))
+ (home-page "https://github.com/ekg/intervaltree/")
+ (synopsis "Minimal C++ interval tree implementation")
+ (description "This library provides a basic implementation of an interval
+tree using C++ templates, allowing the insertion of arbitrary types into the
+tree.")
+ (license license:expat))))
+
(define-public python-pysam
(package
(name "python-pysam")
--
2.7.4
[-- Attachment #2: Type: text/plain, Size: 2839 bytes --]
This time, it is attached :).
Roel Janssen writes:
> Ricardo Wurmus writes:
>
>> Roel Janssen <roel@gnu.org> writes:
>>> From 3ed14719121a952fca48a8ad3426588ebb58a130 Mon Sep 17 00:00:00 2001
>>> From: Roel Janssen <roel@gnu.org>
>>> Date: Tue, 22 Mar 2016 15:57:33 +0100
>>> Subject: [PATCH 7/8] gnu: Add intervaltree.
>>
>>> * gnu/packages/bioinformatics.scm (intervaltree): New variable.
>>> ---
>>> gnu/packages/bioinformatics.scm | 32 ++++++++++++++++++++++++++++++++
>>> 1 file changed, 32 insertions(+)
>>
>>> diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
>>> index 9cbde46..5a0eb16 100644
>>> --- a/gnu/packages/bioinformatics.scm
>>> +++ b/gnu/packages/bioinformatics.scm
>>> @@ -4985,3 +4985,35 @@ automatically handles index file generation and use.")
>>> ;; this program is a submodule, is licensed MIT, which is the same as
>>> ;; the Expat license.
>>> (license (list license:gpl2 license:expat)))))
>>> +
>>> +(define-public intervaltree
>>> + (let ((commit "dbb4c513d1ad3baac516fc1484c995daf9b42838"))
>>> + (package
>>> + (name "intervaltree")
>>> + (version (string-append "0-1." (string-take commit 7)))
>>> + (source (origin
>>> + (method url-fetch)
>>> + (uri (string-append
>>> + "https://github.com/ekg/intervaltree/archive/" commit ".tar.gz"))
>>> + (file-name (string-append name "-" version ".tar.gz"))
>>> + (sha256
>>> + (base32 "19prwpn2wxsrijp5svfqvfcxl5nj7zdhm3jycd5kqhl9nifpmcks"))))
>>> + (build-system gnu-build-system)
>>> + (arguments
>>> + `(#:phases
>>> + (modify-phases %standard-phases
>>> + (delete 'configure) ; There is no configure phase.
>>> + (replace 'check
>>> + (lambda _
>>> + (zero? (system* "./interval_tree_test"))))
>>
>> The indentation looks wrong here. Could you please double-check that
>> you’re not using tabs?
>
> I don't know what went wrong there, sorry. Attached a new patch that
> should be better.
>
>>> + (replace 'install
>>> + (lambda* (#:key outputs #:allow-other-keys)
>>> + (let ((include (string-append (assoc-ref outputs "out")
>>> + "/include/intervaltree")))
>>> + (install-file "IntervalTree.h" include)))))))
>>> + (home-page "https://github.com/ekg/intervaltree/")
>>> + (synopsis "Minimal C++ interval tree implementation")
>>> + (description "This library provides a basic implementation of an interval
>>> +tree using C++ templates, allowing the insertion of arbitrary types into the
>>> +tree.")
>>> + (license license:expat))))
>>
>> The rest looks good to me.
>
> Thanks a lot for reviewing my patches!
>
> Kind regards,
> Roel Janssen
next prev parent reply other threads:[~2016-04-26 17:51 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-22 15:24 [PATCH] Add vcflib Roel Janssen
2016-03-23 13:49 ` Ricardo Wurmus
2016-04-20 12:39 ` Roel Janssen
2016-04-20 12:46 ` Ricardo Wurmus
2016-04-22 7:24 ` Roel Janssen
2016-04-26 14:47 ` Ricardo Wurmus
2016-04-26 17:31 ` Roel Janssen
2017-01-16 21:59 ` Ricardo Wurmus
2016-04-20 12:49 ` Ricardo Wurmus
2016-04-26 21:50 ` Roel Janssen
2017-01-16 22:04 ` Ricardo Wurmus
2016-04-20 12:53 ` Ricardo Wurmus
2016-04-22 7:40 ` Roel Janssen
2016-04-26 14:47 ` Ricardo Wurmus
2016-04-26 17:37 ` Roel Janssen
2017-01-16 21:56 ` Ricardo Wurmus
2016-04-20 12:56 ` Ricardo Wurmus
2016-04-20 12:58 ` Ricardo Wurmus
2016-04-22 8:04 ` Roel Janssen
2016-04-22 11:27 ` Ricardo Wurmus
2016-04-25 9:20 ` Roel Janssen
2016-04-26 14:42 ` Ricardo Wurmus
2016-04-20 13:06 ` Ricardo Wurmus
2016-04-20 13:08 ` Ricardo Wurmus
2016-04-26 17:50 ` Roel Janssen
2016-04-26 17:51 ` Roel Janssen [this message]
2017-01-16 21:54 ` Ricardo Wurmus
2017-01-17 21:57 ` Roel Janssen
2017-01-18 8:24 ` Ricardo Wurmus
2016-04-20 13:18 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878u00xnqz.fsf@gnu.org \
--to=roel@gnu.org \
--cc=guix-devel@gnu.org \
--cc=ricardo.wurmus@mdc-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).