biology/kallisto: Update to 0.48.0 Long awaited bug fix release Also unbundled htslib Changes: https://github.com/pachterlab/kallisto/tagsdiff -r1.3 -r1.4 pkgsrc/biology/kallisto/Makefile
(bacon)
@@ -1,38 +1,39 @@ | @@ -1,38 +1,39 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2020/07/23 19:22:00 bacon Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2022/02/27 01:57:27 bacon Exp $ | |
2 | 2 | |||
3 | DISTNAME= kallisto-0.46.1 | 3 | DISTNAME= kallisto-0.48.0 | |
4 | CATEGORIES= biology | 4 | CATEGORIES= biology | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=pachterlab/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=pachterlab/} | |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | 6 | GITHUB_TAG= v${PKGVERSION_NOREV} | |
7 | 7 | |||
8 | MAINTAINER= bacon@NetBSD.org | 8 | MAINTAINER= bacon@NetBSD.org | |
9 | HOMEPAGE= https://pachterlab.github.io/kallisto/ | 9 | HOMEPAGE= https://pachterlab.github.io/kallisto/ | |
10 | COMMENT= Quantify abundances of transcripts from RNA-Seq data | 10 | COMMENT= Quantify abundances of transcripts from RNA-Seq data | |
11 | LICENSE= 2-clause-bsd | 11 | LICENSE= 2-clause-bsd | |
12 | 12 | |||
13 | USE_TOOLS+= autoconf gmake pax | 13 | USE_TOOLS+= autoconf gmake pax | |
14 | USE_LANGUAGES= c c++ | 14 | USE_LANGUAGES= c c++ | |
15 | USE_CMAKE= yes | 15 | USE_CMAKE= yes | |
16 | 16 | |||
17 | SUBST_CLASSES+= test | 17 | SUBST_CLASSES+= test | |
18 | SUBST_STAGE.test= pre-configure | 18 | SUBST_STAGE.test= pre-configure | |
19 | SUBST_FILES.test= kallisto-test | 19 | SUBST_FILES.test= kallisto-test | |
20 | SUBST_SED.test= -e 's|/usr/local/share/kallisto|${DATADIR}|g' | 20 | SUBST_SED.test= -e 's|/usr/local/share/kallisto|${DATADIR}|g' | |
21 | 21 | |||
22 | CMAKE_ARGS+= -DUSE_HDF5:BOOL=ON | 22 | CMAKE_ARGS+= -DUSE_HDF5:BOOL=ON | |
23 | MAKE_JOBS_SAFE= no # Doesn't finished bundled htslib first | |||
24 | INSTALLATION_DIRS+= ${DATADIR} | 23 | INSTALLATION_DIRS+= ${DATADIR} | |
25 | 24 | |||
26 | DATADIR= ${PREFIX}/share/kallisto | 25 | DATADIR= ${PREFIX}/share/kallisto | |
27 | 26 | |||
28 | post-extract: | 27 | post-extract: | |
29 | ${CP} ${FILESDIR}/kallisto-test ${WRKSRC} | 28 | ${CP} ${FILESDIR}/kallisto-test ${WRKSRC} | |
29 | ${RM} -rf ${WRKSRC}/ext/htslib | |||
30 | 30 | |||
31 | post-install: | 31 | post-install: | |
32 | ${INSTALL_SCRIPT} ${WRKSRC}/kallisto-test ${DESTDIR}${PREFIX}/bin | 32 | ${INSTALL_SCRIPT} ${WRKSRC}/kallisto-test ${DESTDIR}${PREFIX}/bin | |
33 | cd ${WRKSRC} && pax -rw test ${DESTDIR}${DATADIR} | 33 | cd ${WRKSRC} && pax -rw test ${DESTDIR}${DATADIR} | |
34 | 34 | |||
35 | .include "../../devel/hdf5/buildlink3.mk" | 35 | .include "../../devel/hdf5/buildlink3.mk" | |
36 | .include "../../archivers/libaec/buildlink3.mk" | 36 | .include "../../archivers/libaec/buildlink3.mk" | |
37 | .include "../../devel/zlib/buildlink3.mk" | 37 | .include "../../devel/zlib/buildlink3.mk" | |
38 | .include "../../biology/htslib/buildlink3.mk" | |||
38 | .include "../../mk/bsd.pkg.mk" | 39 | .include "../../mk/bsd.pkg.mk" |
@@ -1,10 +1,12 @@ | @@ -1,10 +1,12 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2020/07/23 19:22:00 bacon Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2022/02/27 01:57:27 bacon Exp $ | |
2 | bin/kallisto | 2 | bin/kallisto | |
3 | bin/kallisto-test | 3 | bin/kallisto-test | |
4 | share/kallisto/test/README.md | 4 | share/kallisto/test/README.md | |
5 | share/kallisto/test/Snakefile | 5 | share/kallisto/test/Snakefile | |
6 | share/kallisto/test/chrom.txt | 6 | share/kallisto/test/chrom.txt | |
7 | share/kallisto/test/reads_1.fastq.gz | 7 | share/kallisto/test/reads_1.fastq.gz | |
8 | share/kallisto/test/reads_2.fastq.gz | 8 | share/kallisto/test/reads_2.fastq.gz | |
9 | share/kallisto/test/sc_reads_1.fastq.gz | |||
10 | share/kallisto/test/sc_reads_2.fastq.gz | |||
9 | share/kallisto/test/transcripts.fasta.gz | 11 | share/kallisto/test/transcripts.fasta.gz | |
10 | share/kallisto/test/transcripts.gtf.gz | 12 | share/kallisto/test/transcripts.gtf.gz |
@@ -1,5 +1,8 @@ | @@ -1,5 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.4 2021/10/26 10:03:40 nia Exp $ | 1 | $NetBSD: distinfo,v 1.5 2022/02/27 01:57:27 bacon Exp $ | |
2 | 2 | |||
3 | BLAKE2s (kallisto-0.46.1.tar.gz) = 8468937c3735b7bd476db90557b0fd590b65de46b6bc80a58387702b6c34d86a | 3 | BLAKE2s (kallisto-0.48.0.tar.gz) = c31cdd71591d4784e5b48560dd2c8ed19f8baa77317f0c05441a75f7deb39d64 | |
4 | SHA512 (kallisto-0.46.1.tar.gz) = 53a4db8fd5e0585693d8cd683651b4bdcc84c724a19e80a6162f1844fd491eb2d4e3180be2d9aabea7d49c9cbe0a05250f41da7d1de89d5d6cb6a8806f1afb7d | 4 | SHA512 (kallisto-0.48.0.tar.gz) = 6325660c18c98b591bfa0f293f55f13fa45b58acf86dead3b0c9cd88942c9d3dfa548cf0b8f05fb89697845b7047627b8fcdfba4237a5876463311a6f7127feb | |
5 | Size (kallisto-0.46.1.tar.gz) = 2254560 bytes | 5 | Size (kallisto-0.48.0.tar.gz) = 2706838 bytes | |
6 | SHA1 (patch-CMakeLists.txt) = 9c96f53ec2e280b7f778ae04b002783559730df7 | |||
7 | SHA1 (patch-src_CMakeLists.txt) = dde489a9299207d189d3f94b875bb1929c958897 | |||
8 | SHA1 (patch-src_kseq.h) = c35bca57fb85367e8646a4b771449da7dbfbb439 |
$NetBSD: patch-CMakeLists.txt,v 1.3 2022/02/27 01:57:27 bacon Exp $
# Unbundle htslib
--- CMakeLists.txt.orig 2022-02-26 16:36:13.527572702 +0000
+++ CMakeLists.txt
@@ -43,15 +43,6 @@ ENDIF(LINK MATCHES static)
include(ExternalProject)
-ExternalProject_Add(htslib
- PREFIX ${PROJECT_SOURCE_DIR}/ext/htslib
- SOURCE_DIR ${PROJECT_SOURCE_DIR}/ext/htslib
- BUILD_IN_SOURCE 1
- CONFIGURE_COMMAND autoheader && autoconf && ${PROJECT_SOURCE_DIR}/ext/htslib/configure
- --prefix=${PREFIX} --disable-bz2 --disable-lzma --disable-libcurl
- BUILD_COMMAND make lib-static
- INSTALL_COMMAND ""
-)
include_directories(${htslib_PREFIX}/src/htslib)
$NetBSD: patch-src_CMakeLists.txt,v 1.3 2022/02/27 01:57:27 bacon Exp $
# Unbundle htslib
--- src/CMakeLists.txt.orig 2022-02-26 16:35:26.912550601 +0000
+++ src/CMakeLists.txt
@@ -3,15 +3,13 @@ file(GLOB headers *.h *.hpp)
list(REMOVE_ITEM sources main.cpp)
-include_directories(../ext/htslib)
-
add_library(kallisto_core ${sources} ${headers})
target_include_directories(kallisto_core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
add_executable(kallisto main.cpp)
find_package( Threads REQUIRED )
-target_link_libraries(kallisto kallisto_core pthread ${CMAKE_CURRENT_SOURCE_DIR}/../ext/htslib/libhts.a)
+target_link_libraries(kallisto kallisto_core pthread hts)
if(LINK MATCHES static)
set(BUILD_SHARED_LIBS OFF)
@@ -62,4 +60,4 @@ else()
endif(LINK MATCHES static)
-install(TARGETS kallisto DESTINATION "${CMAKE_INSTALL_BINDIR}")
\ No newline at end of file
+install(TARGETS kallisto DESTINATION "${CMAKE_INSTALL_BINDIR}")
$NetBSD: patch-src_kseq.h,v 1.1 2022/02/27 01:57:27 bacon Exp $
# Unbundle htslib
--- src/kseq.h.orig 2022-02-26 16:37:08.929391121 +0000
+++ src/kseq.h
@@ -27,6 +27,8 @@ SOFTWARE.
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
+// Prevent redefinition of kstring_t below
+#include <htslib/kstring.h>
#define KS_SEP_SPACE 0 // isspace(): \t, \n, \v, \f, \r
#define KS_SEP_TAB 1 // isspace() && !' '