summaryrefslogtreecommitdiff
path: root/manta-relax-dependency-checking.patch
diff options
context:
space:
mode:
authorRoel Janssen <roel@gnu.org>2021-04-21 13:58:58 +0200
committerRoel Janssen <roel@gnu.org>2021-04-21 14:06:01 +0200
commitef1fd806a8e80e04ebb308650d6bb9cc4325afd2 (patch)
treeb6243805060a96fe4f3506c506e507601be40bee /manta-relax-dependency-checking.patch
parent942254060ac9393e3cce1e044bca25acbef41e02 (diff)
bioinformatics: Add manta.
* guix-science/packages/bioinformatics.scm (manta-1.6.0): New variable. * manta-relax-dependency-checking.patch: New file.
Diffstat (limited to 'manta-relax-dependency-checking.patch')
-rw-r--r--manta-relax-dependency-checking.patch115
1 files changed, 115 insertions, 0 deletions
diff --git a/manta-relax-dependency-checking.patch b/manta-relax-dependency-checking.patch
new file mode 100644
index 0000000..6e46d5e
--- /dev/null
+++ b/manta-relax-dependency-checking.patch
@@ -0,0 +1,115 @@
1diff -urB manta-1.6.0-orig/CMakeLists.txt manta-1.6.0/CMakeLists.txt
2--- a/CMakeLists.txt 2019-06-24 22:02:16.000000000 +0200
3+++ b/CMakeLists.txt 2020-07-07 12:44:01.246483878 +0200
4@@ -53,7 +53,7 @@
5 #
6 # if true, build with very strict error checking (disabled in src release tarballs)
7 #
8-set(DEVELOPER_MODE true)
9+set(DEVELOPER_MODE false)
10
11 #
12 # set WIN specific cache values
13@@ -205,7 +205,8 @@
14 add_custom_target(${THIS_OPT} ALL)
15
16 # redist includes
17-include ("${THIS_MODULE_DIR}/boost.cmake")
18+set(Boost_LIBRARIES "-lboost_chrono -lboost_date_time -lboost_filesystem -lboost_program_options -lboost_regex -lboost_serialization -lboost_system -lboost_timer -lboost_unit_test_framework")
19+ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK)
20
21 if (NOT WIN32)
22 # global source QC -- don't allow non-ascii chars in source files:
23diff -urB manta-1.6.0-orig/redist/CMakeLists.txt manta-1.6.0/redist/CMakeLists.txt
24--- a/redist/CMakeLists.txt 2019-06-24 22:02:16.000000000 +0200
25+++ b/redist/CMakeLists.txt 2020-07-07 11:21:43.665094771 +0200
26@@ -71,87 +71,14 @@
27 #
28 # htslib
29 #
30-set(HTSLIB_PREFIX "htslib-1.9")
31-superset(HTSLIB_DIR "${CMAKE_CURRENT_BINARY_DIR}/${HTSLIB_PREFIX}")
32-superset(HTSLIB_LIBRARY "${HTSLIB_DIR}/libhts.a")
33-
34-## It is occasionally useful to extend debug/asan build options from manta all the way down through htslib,
35-## the flags below can be uncommented to do so.
36-##
37-## Addresss sanitizer build options for htslib/samtools
38-#set(HTSLIB_CFLAGS '-O0 -g -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls')
39-## Debug build optoins for htslib/samtools
40-#set(HTSLIB_CFLAGS '-O0 -g')
41-#set(HTSLIB_CONFIGOPT CFLAGS=${HTSLIB_CFLAGS} LDFLAGS=${HTSLIB_CFLAGS})
42-
43-add_custom_command(
44- OUTPUT ${HTSLIB_DIR}
45- COMMAND ${CMAKE_COMMAND} -E remove_directory "${HTSLIB_DIR}"
46- COMMAND ${CMAKE_COMMAND} -E tar xjf "${THIS_REDIST_DIR}/${HTSLIB_PREFIX}.tar.bz2"
47- COMMENT "Unpacking htslib library")
48-
49-set (HTSLIB_FINAL_TASK ${HTSLIB_DIR})
50-
51-if (NOT WIN32)
52- add_custom_command(
53- OUTPUT ${HTSLIB_LIBRARY}
54- COMMAND ./configure CC=${CMAKE_C_COMPILER} ${HTSLIB_CONFIGOPT} --disable-libcurl --disable-bz2 --disable-lzma >htslib.config.log 2>htslib.config.error.log || \(echo "Failed to configure htslib, see ${HTSLIB_DIR}/htslib.config.error.log for details." && exit 1\)
55- COMMAND $(MAKE) lib-static bgzip htsfile tabix >htslib.build.log 2>htslib.build.error.log || \(echo "Failed to build htslib, see ${HTSLIB_DIR}/htslib.build.error.log for details." && exit 1\)
56- WORKING_DIRECTORY ${HTSLIB_DIR}
57- DEPENDS ${HTSLIB_DIR}
58- COMMENT "Building htslib library")
59-
60- set (HTSLIB_FINAL_TASK ${HTSLIB_LIBRARY})
61-endif ()
62-
63-set(THIS_HTSLIB "${THIS_PROJECT_NAME}_htslib")
64-add_custom_target(${THIS_HTSLIB} DEPENDS "${HTSLIB_FINAL_TASK}")
65-
66-
67-if (NOT WIN32)
68- install(PROGRAMS "${HTSLIB_DIR}/bgzip" DESTINATION "${THIS_LIBEXECDIR}")
69- install(PROGRAMS "${HTSLIB_DIR}/htsfile" DESTINATION "${THIS_LIBEXECDIR}")
70- install(PROGRAMS "${HTSLIB_DIR}/tabix" DESTINATION "${THIS_LIBEXECDIR}")
71-endif ()
72+superset(HTSLIB_LIBRARY "-fPIC -lhts")
73
74 #
75 # samtools
76 #
77-set(SAMTOOLS_PREFIX "samtools-1.9")
78-set(SAMTOOLS_DIR "${CMAKE_CURRENT_BINARY_DIR}/${SAMTOOLS_PREFIX}")
79-set(SAMTOOLS_LIBRARY "${SAMTOOLS_DIR}/libbam.a")
80+set(SAMTOOLS_DIR "/usr/bin")
81 superset(SAMTOOLS_PROG "${SAMTOOLS_DIR}/samtools")
82
83-# final directory copy below would ideally be a soft-link, copy is for windows build
84-add_custom_command(
85- OUTPUT ${SAMTOOLS_DIR}
86- COMMAND ${CMAKE_COMMAND} -E remove_directory "${SAMTOOLS_DIR}"
87- COMMAND ${CMAKE_COMMAND} -E tar xjf "${THIS_REDIST_DIR}/${SAMTOOLS_PREFIX}.tar.bz2"
88- DEPENDS ${HTSLIB_FINAL_TASK}
89- COMMENT "Unpacking samtools package")
90-
91-set (SAMTOOLS_FINAL_TASK ${SAMTOOLS_DIR})
92-
93-if (NOT WIN32)
94- add_custom_command(
95- OUTPUT ${SAMTOOLS_PROG}
96- COMMAND ./configure CC=${CMAKE_C_COMPILER} ${HTSLIB_CONFIGOPT} --without-curses --with-htslib=${HTSLIB_DIR} >samtools.config.log 2>samtools.config.error.log || \(echo "Failed to configure samtools, see ${SAMTOOLS_DIR}/samtools.config.error.log for details." && exit 1\)
97- COMMAND $(MAKE) all >samtools.build.log 2>samtools.build.error.log || \(echo "Failed to build samtools, see ${SAMTOOLS_DIR}/samtools.build.error.log for details." && exit 1\)
98- DEPENDS ${HTSLIB_LIBRARY}
99- DEPENDS ${SAMTOOLS_DIR}
100- WORKING_DIRECTORY ${SAMTOOLS_DIR}
101- COMMENT "Building samtools package")
102-
103- set (SAMTOOLS_FINAL_TASK ${SAMTOOLS_PROG})
104-endif ()
105-
106-set(THIS_SAMTOOLS "${THIS_PROJECT_NAME}_samtools")
107-add_custom_target(${THIS_SAMTOOLS} DEPENDS "${SAMTOOLS_FINAL_TASK}")
108-
109-if (NOT WIN32)
110- install(PROGRAMS "${SAMTOOLS_PROG}" DESTINATION "${THIS_LIBEXECDIR}")
111-endif ()
112-
113 #
114 # pyflow
115 #