gnu: express-beta-diversity: Update to 1.0.8.

* gnu/packages/bioinformatics.scm (express-beta-diversity): Update to 1.0.8.
[source]: Fetch from git.
[arguments]: Use INVOKE; remove "exit-source" build phase; simplify.
This commit is contained in:
Ricardo Wurmus 2018-10-21 21:26:35 +02:00
parent c96ca68f31
commit 38622ccd14
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 13 additions and 18 deletions

View File

@ -2481,17 +2481,16 @@ ChIP-Seq, and analysis of metagenomic data.")
(define-public express-beta-diversity (define-public express-beta-diversity
(package (package
(name "express-beta-diversity") (name "express-beta-diversity")
(version "1.0.7") (version "1.0.8")
(source (origin (source (origin
(method url-fetch) (method git-fetch)
(uri (uri (git-reference
(string-append (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
"https://github.com/dparks1134/ExpressBetaDiversity/archive/v" (commit (string-append "v" version))))
version ".tar.gz")) (file-name (git-file-name name version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1djvdlmqvjf6h0zq7w36y8cl5cli6rgj86x65znl48agnwmzxfxr")))) "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -2499,16 +2498,12 @@ ChIP-Seq, and analysis of metagenomic data.")
(delete 'configure) (delete 'configure)
(add-before 'build 'enter-source (lambda _ (chdir "source") #t)) (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
(replace 'check (replace 'check
(lambda _ (zero? (system* "../bin/ExpressBetaDiversity" (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
"-u"))))
(add-after 'check 'exit-source (lambda _ (chdir "..") #t))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((bin (string-append (assoc-ref outputs "out") (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
"/bin"))) (install-file "../scripts/convertToEBD.py" bin)
(mkdir-p bin) (install-file "../bin/ExpressBetaDiversity" bin)
(install-file "scripts/convertToEBD.py" bin)
(install-file "bin/ExpressBetaDiversity" bin)
#t)))))) #t))))))
(inputs (inputs
`(("python" ,python-2))) `(("python" ,python-2)))