me
/
guix
Archived
1
0
Fork 0

gnu: blast+: Update to 2.6.0.

* gnu/packages/bioinformatics.scm (blast+): Update to 2.6.0.
[origin]: Remove bundled pcre.  Add patch.
[arguments]: Replace paths in run_with_lock.c.  Configure with pcre.
[inputs]: Add pcre, perl, python.
* gnu/packages/patches/blast+-fix-makefile.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
master
Ben Woodcroft 2017-07-03 23:00:14 +10:00
parent f2fa86cc82
commit 4732e6ee84
No known key found for this signature in database
GPG Key ID: 2A6AD9F4AAC20DF6
3 changed files with 32 additions and 9 deletions

View File

@ -522,6 +522,7 @@ dist_patch_DATA = \
%D%/packages/patches/binutils-ld-new-dtags.patch \ %D%/packages/patches/binutils-ld-new-dtags.patch \
%D%/packages/patches/binutils-loongson-workaround.patch \ %D%/packages/patches/binutils-loongson-workaround.patch \
%D%/packages/patches/binutils-mips-bash-bug.patch \ %D%/packages/patches/binutils-mips-bash-bug.patch \
%D%/packages/patches/blast+-fix-makefile.patch \
%D%/packages/patches/byobu-writable-status.patch \ %D%/packages/patches/byobu-writable-status.patch \
%D%/packages/patches/cairo-CVE-2016-9082.patch \ %D%/packages/patches/cairo-CVE-2016-9082.patch \
%D%/packages/patches/calibre-drop-unrar.patch \ %D%/packages/patches/calibre-drop-unrar.patch \

View File

@ -956,7 +956,7 @@ package provides command line tools using the Bio++ library.")
(define-public blast+ (define-public blast+
(package (package
(name "blast+") (name "blast+")
(version "2.4.0") (version "2.6.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@ -964,13 +964,15 @@ package provides command line tools using the Bio++ library.")
version "/ncbi-blast-" version "+-src.tar.gz")) version "/ncbi-blast-" version "+-src.tar.gz"))
(sha256 (sha256
(base32 (base32
"14n9jik6vhiwjd3m7bach4xj1pzfn0szbsbyfxybd9l9cc43b6mb")) "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
(patches (search-patches "blast+-fix-makefile.patch"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(begin
;; Remove bundled bzip2 and zlib ;; Remove bundled bzip2, zlib and pcre.
(delete-file-recursively "c++/src/util/compress/bzip2") (delete-file-recursively "c++/src/util/compress/bzip2")
(delete-file-recursively "c++/src/util/compress/zlib") (delete-file-recursively "c++/src/util/compress/zlib")
(delete-file-recursively "c++/src/util/regexp")
(substitute* "c++/src/util/compress/Makefile.in" (substitute* "c++/src/util/compress/Makefile.in"
(("bzip2 zlib api") "api")) (("bzip2 zlib api") "api"))
;; Remove useless msbuild directory ;; Remove useless msbuild directory
@ -979,9 +981,8 @@ package provides command line tools using the Bio++ library.")
#t)))) #t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(;; There are three(!) tests for this massive library, and all fail with `(;; There are two(!) tests for this massive library, and both fail with
;; "unparsable timing stats". ;; "unparsable timing stats".
;; ERR [127] -- [util/regexp] test_pcre.sh (unparsable timing stats)
;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats) ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats) ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
#:tests? #f #:tests? #f
@ -1014,6 +1015,7 @@ package provides command line tools using the Bio++ library.")
;; Rewrite hardcoded paths to various tools ;; Rewrite hardcoded paths to various tools
(substitute* (append '("src/build-system/configure.ac" (substitute* (append '("src/build-system/configure.ac"
"src/build-system/configure" "src/build-system/configure"
"src/build-system/helpers/run_with_lock.c"
"scripts/common/impl/if_diff.sh" "scripts/common/impl/if_diff.sh"
"scripts/common/impl/run_with_lock.sh" "scripts/common/impl/run_with_lock.sh"
"src/build-system/Makefile.configurables.real" "src/build-system/Makefile.configurables.real"
@ -1062,17 +1064,22 @@ package provides command line tools using the Bio++ library.")
(assoc-ref inputs "bzip2")) (assoc-ref inputs "bzip2"))
(string-append "--with-z=" (string-append "--with-z="
(assoc-ref inputs "zlib")) (assoc-ref inputs "zlib"))
(string-append "--with-pcre="
(assoc-ref inputs "pcre"))
;; Each library is built twice by default, once ;; Each library is built twice by default, once
;; with "-static" in its name, and again ;; with "-static" in its name, and again
;; without. ;; without.
"--without-static" "--without-static"
"--with-dll")))))))) "--with-dll"))))))))
(outputs '("out" ; 19 MB (outputs '("out" ; 21 MB
"lib" ; 203 MB "lib" ; 226 MB
"include")) ; 32 MB "include")) ; 33 MB
(inputs (inputs
`(("bzip2" ,bzip2) `(("bzip2" ,bzip2)
("zlib" ,zlib))) ("zlib" ,zlib)
("pcre" ,pcre)
("perl" ,perl)
("python" ,python-wrapper)))
(native-inputs (native-inputs
`(("cpio" ,cpio))) `(("cpio" ,cpio)))
(home-page "http://blast.ncbi.nlm.nih.gov") (home-page "http://blast.ncbi.nlm.nih.gov")

View File

@ -0,0 +1,15 @@
Without this patch, the 'make install' attempts to 'install' a directory, which causes an error.
diff --git a/c++/src/build-system/Makefile.in.top b/c++/src/build-system/Makefile.in.top
index 1abe44f..d6000b3 100644
--- a/c++/src/build-system/Makefile.in.top
+++ b/c++/src/build-system/Makefile.in.top
@@ -51,7 +51,7 @@ install-toolkit:
done
cd $(includedir0) && find * -name CVS -prune -o -print |\
cpio -pd $(pincludedir)
- $(INSTALL) -m 644 $(incdir)/* $(pincludedir)
+ cp -R $(incdir)/* $(pincludedir)
## set up appropriate build and status directories somewhere under $(libdir)?
install-gbench: