Skip to content

Commit

Permalink
adding easyconfigs: DRAGMAP-1.3.0-GCC-13.2.0.eb and patches: dragmap-…
Browse files Browse the repository at this point in the history
…1.3.0-include.patch
  • Loading branch information
sassy committed Nov 12, 2024
1 parent 98b6e18 commit 1116c66
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
39 changes: 39 additions & 0 deletions easybuild/easyconfigs/d/DRAGMAP/DRAGMAP-1.3.0-GCC-13.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# #include <cstdint> added to deal with 'uint64_t' problem, sed command removed
# Author: J. Sassmannshausen (Imperial College London/UK)

easyblock = 'ConfigureMake'

name = 'DRAGMAP'
version = '1.3.0'

homepage = 'https://github.com/Illumina/DRAGMAP'
description = 'Dragmap is the Dragen mapper/aligner Open Source Software.'

toolchain = {'name': 'GCC', 'version': '13.2.0'}

source_urls = ['https://github.com/Illumina/DRAGMAP/archive/refs/tags/']
sources = ['%(version)s.tar.gz']
patches = ['%(namelower)s-%(version)s-include.patch']
checksums = [
{'1.3.0.tar.gz': 'baf546c2f53b13e2bce4c937201e38459f3ce2f1069722ca670d8726a4bae224'},
{'dragmap-1.3.0-include.patch': '60c364696dd98c70023696a42419a4251bcc737535e44217c9ce03bdc8084338'},
]

dependencies = {
('Boost', '1.83.0'),
('googletest', '1.14.0'),
}

skipsteps = ['configure']
buildopts = 'CC="$CC" CXX="$CXX"'
preinstallopts = 'mkdir %(installdir)s/bin &&'
installopts = 'DESTDIR=%(installdir)s'

sanity_check_paths = {
'files': ['bin/dragen-os'],
'dirs': []
}

sanity_check_commands = ['dragen-os --help']

moduleclass = 'bio'
39 changes: 39 additions & 0 deletions easybuild/easyconfigs/d/DRAGMAP/dragmap-1.3.0-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
This adds #include <cstdint> to deal with 'uint64_t' does not name a type problem.
Taken from here: https://github.com/AirenSoft/OvenMediaEngine/issues/1271
Author: J. Sassmannshausen (Imperial College London/UK)
diff --git a/DRAGMAP-1.3.0.orig/src/include/sequences/Read.hpp b/DRAGMAP-1.3.0/src/include/sequences/Read.hpp
index 460c1cb..8d20cd6 100644
--- a/DRAGMAP-1.3.0.orig/src/include/sequences/Read.hpp
+++ b/DRAGMAP-1.3.0/src/include/sequences/Read.hpp
@@ -18,6 +18,7 @@
#include <iostream>
#include <string>
#include <vector>
+#include <cstdint>

namespace dragenos {
namespace sequences {
diff --git a/DRAGMAP-1.3.0.orig/src/lib/sequences/tests/unit/CrcHasherMocks.hpp b/DRAGMAP-1.3.0/src/lib/sequences/tests/unit/CrcHasherMocks.hpp
index 1866be7..ca495cc 100644
--- a/DRAGMAP-1.3.0.orig/src/lib/sequences/tests/unit/CrcHasherMocks.hpp
+++ b/DRAGMAP-1.3.0/src/lib/sequences/tests/unit/CrcHasherMocks.hpp
@@ -3,6 +3,7 @@
#include <array>
#include <cassert>
#include <cstdlib>
+#include <cstdint>
#include <string>

namespace dragenos {
diff --git a/DRAGMAP-1.3.0.orig/stubs/dragen/src/host/dragen_api/read_group_list.hpp b/DRAGMAP-1.3.0/stubs/dragen/src/host/dragen_api/read_group_list.hpp
index eefb9ae..623a77f 100644
--- a/DRAGMAP-1.3.0.orig/stubs/dragen/src/host/dragen_api/read_group_list.hpp
+++ b/DRAGMAP-1.3.0/stubs/dragen/src/host/dragen_api/read_group_list.hpp
@@ -14,6 +14,7 @@
#define __READ_GROUP_LIST_HPP__

#include "dragen_exception.hpp"
+#include <cstdint>
class ReadGroupList {
public:
const std::string &getReadGroupName(const uint16_t idx) const {

0 comments on commit 1116c66

Please sign in to comment.