unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bioinformatics package: Bless
@ 2015-11-05 19:49 Diane Trout
  2015-11-06 14:28 ` [PATCH] Add BLESS (was: Re: Bioinformatics package: Bless) Ricardo Wurmus
  0 siblings, 1 reply; 8+ messages in thread
From: Diane Trout @ 2015-11-05 19:49 UTC (permalink / raw)
  To: guix-devel

[-- 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+))
  )

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-11-06 21:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05 19:49 Bioinformatics package: Bless Diane Trout
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

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).