all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Diane Trout <diane@ghic.org>
To: guix-devel@gnu.org
Subject: Bioinformatics package: Bless
Date: Thu, 05 Nov 2015 11:49:54 -0800	[thread overview]
Message-ID: <2238503.mBpvBuW9qZ@myrada> (raw)

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

Hi,

One of our users asked me to install a package "bless" that required a newer 
version of MPI than Debian provides, so I thought I'd try to build a guix 
package as Guix actually has openmpi 1.8 packaged.

The software's home page is:
http://sourceforge.net/p/bless-ec/wiki/Home/

The source tarball has the GPL-3 LICENSE file, however it does also contain 
convenience copies of other source, and in my packaging I only spliced out one 
-- the pigz dependency.

Diane

[-- Attachment #2: bless.scm --]
[-- Type: text/x-scheme, Size: 2777 bytes --]

(define-module (gnu packages bioinformatics)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system cmake)
  #:use-module (guix build-system trivial)
  #:use-module (gnu packages)
  #:use-module (gnu packages base)
  #:use-module (gnu packages boost)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages mpi)
  #:use-module (gnu packages perl)
  #:use-module (srfi srfi-1))

(define-public bless
  (package
    (name "bless")
    (version "v1p02")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://sourceforge/bless-ec/bless."
                                  version ".tgz"))
              (file-name (string-append name "." version ".tgz"))
              (sha256
               (base32
		"0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
	      ))
    (build-system gnu-build-system)
    (native-inputs `(("perl" ,perl)
                     ("zlib" ,zlib)))
    (inputs `(("openmpi" ,openmpi)
	      ("pigz" ,pigz)))
    (arguments
     '(#:tests? #f ;no "check" target
       #:phases
       (alist-cons-after 'unpack 'unpack-tarballs
	  (lambda* (#:key inputs outputs #:allow-other-keys)
             (substitute* "Makefile"
	       (("-I ./zlib/install/include")
	         (string-append "-I " (assoc-ref inputs "zlib") "/include"))
               (("./zlib/install/lib/libz.a")
		(string-append (assoc-ref inputs "zlib") "/lib/libz.a"))
	       ((".(ZLIB) ") "")
	       (("cd pigz/pigz-2.3.3; make") "")
	       )
	     ;;(substitute* "define.hpp"
             ;;  (("pigz/pigz-2.3.3") (string-append (assoc-ref inputs "pigz")))
             ;;  (("kmc/bin") ".")
	     (substitute* "parse_args.cpp"
	       (("kmc_binary = .*")
		 (string-append "kmc_binary = \"" (assoc-ref outputs "out") "/bin/kmc\";"))
	       (("pigz_binary = .*")
		(string-append "pigz_binary = \"" (assoc-ref inputs "pigz") "/bin/pigz\";"))
	     )
 	     #t)
        (alist-replace
         'install
         (lambda* (#:key outputs #:allow-other-keys)
           (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
             (for-each (lambda (file)
                         (install-file file bin))
		       '("bless" "kmc/bin/kmc")
                       )))
	  
       (alist-delete 'configure %standard-phases)))))
    (home-page "http://sourceforge.net/projects/bless-ec/wiki/Home/")
    (synopsis "Bloom-filter-based Error Correction Tool for NGS reads")
    (description
     "Developed by ESCAD Group, Computational Comparative Genomics
Lab, and IMACT Group in university of Illinois at Urbana-Champaign")
    (license license:gpl3+))
  )

             reply	other threads:[~2015-11-05 19:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05 19:49 Diane Trout [this message]
2015-11-06 14:28 ` [PATCH] Add BLESS (was: Re: Bioinformatics package: Bless) Ricardo Wurmus
2015-11-06 15:12   ` [PATCH] Add BLESS Ludovic Courtès
2015-11-06 17:22     ` Ricardo Wurmus
2015-11-06 16:01   ` [PATCH] Add BLESS (was: Re: Bioinformatics package: Bless) Diane Trout
2015-11-06 19:14   ` [PATCH] Add BLESS Alex Kost
2015-11-06 20:03     ` Ricardo Wurmus
2015-11-06 21:16       ` Ludovic Courtès

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2238503.mBpvBuW9qZ@myrada \
    --to=diane@ghic.org \
    --cc=guix-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.