Add new package: smartdenovo (#16310)

This commit is contained in:
darmac 2020-04-27 22:55:35 +08:00 committed by GitHub
parent fe46919e19
commit 81b5475f8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,29 @@
diff --git a/Makefile b/Makefile
index 0802f65..3816b6e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,9 @@ VERSION=1.0.0
MINOR_VER=20140314
CC=gcc
ifdef DEBUG
-CFLAGS=-g3 -W -Wall -O0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -mpopcnt -mssse3
+CFLAGS=-g3 -W -Wall -O0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
else
-CFLAGS=-W -Wall -O4 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -mpopcnt -mssse3
+CFLAGS=-W -Wall -O4 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
endif
INSTALLDIR=/usr/local/bin
GLIBS=-lm -lpthread
diff --git a/ksw.c b/ksw.c
index 15dd0f2..22641ed 100644
--- a/ksw.c
+++ b/ksw.c
@@ -25,7 +25,7 @@
#include <stdlib.h>
#include <stdint.h>
-#include <emmintrin.h>
+#include "SSE2NEON.h"
#include "ksw.h"
#ifdef USE_MALLOC_WRAPPERS

View File

@ -0,0 +1,30 @@
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Smartdenovo(MakefilePackage):
"""SMARTdenovo is a de novo assembler for PacBio and Oxford Nanopore
(ONT) data."""
homepage = "https://github.com/ruanjue/smartdenovo"
git = "https://github.com/ruanjue/smartdenovo.git"
version('master', branch='master')
depends_on('sse2neon', when='target=aarch64:')
patch('aarch64.patch', when='target=aarch64:',
sha256='7dd4bca28aafb0680cc1823aa58ac9000819993538e92628554666c4b3acc470')
def install(self, spec, prefix):
install_files = [
'pairaln', 'wtpre', 'wtcyc', 'wtmer', 'wtzmo', 'wtobt',
'wtclp', 'wtext', 'wtgbo', 'wtlay', 'wtcns', 'wtmsa'
]
mkdirp(prefix.bin)
for f in install_files:
install(f, prefix.bin)