diff options
author | Hironori-Yamaji <52182908+Hironori-Yamaji@users.noreply.github.com> | 2019-08-23 08:05:22 +0900 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-08-22 16:05:22 -0700 |
commit | 3607aa486ff36d5f50d3d2d1d8c331d410286b31 (patch) | |
tree | 949b28e2262f646d0dc568744ff0a147279afa9e | |
parent | 7b2470236ea046baffc66af567beba29e1e280ce (diff) | |
download | spack-3607aa486ff36d5f50d3d2d1d8c331d410286b31.tar.gz spack-3607aa486ff36d5f50d3d2d1d8c331d410286b31.tar.bz2 spack-3607aa486ff36d5f50d3d2d1d8c331d410286b31.tar.xz spack-3607aa486ff36d5f50d3d2d1d8c331d410286b31.zip |
New package: EEM (#12321)
-rw-r--r-- | var/spack/repos/builtin/packages/eem/add_include.patch | 22 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/eem/package.py | 40 |
2 files changed, 62 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/eem/add_include.patch b/var/spack/repos/builtin/packages/eem/add_include.patch new file mode 100644 index 0000000000..de66803dc6 --- /dev/null +++ b/var/spack/repos/builtin/packages/eem/add_include.patch @@ -0,0 +1,22 @@ +diff -ruN eemParallel_1.0.1.org/src/utility/Date.cpp eemParallel_1.0.1/src/utility/Date.cpp +--- eemParallel_1.0.1.org/src/utility/Date.cpp 2014-07-20 21:48:22.000000000 +0900 ++++ eemParallel_1.0.1/src/utility/Date.cpp 2019-08-08 09:58:18.768020679 +0900 +@@ -7,6 +7,7 @@ + #include <sys/types.h> + #include <iostream> + #include <sstream> ++#include <ctime> + #endif + + #ifdef VC +diff -ruN eemParallel_1.0.1.org/src/utility/MyFunc.cpp eemParallel_1.0.1/src/utility/MyFunc.cpp +--- eemParallel_1.0.1.org/src/utility/MyFunc.cpp 2014-07-20 21:48:22.000000000 +0900 ++++ eemParallel_1.0.1/src/utility/MyFunc.cpp 2019-08-08 09:57:58.945943754 +0900 +@@ -11,6 +11,7 @@ + #include <iomanip>
+ #include <cmath>
+ #include <cassert>
++#include <random>
+
+ #include "HypergeometricDistributionImpl.h"
+
diff --git a/var/spack/repos/builtin/packages/eem/package.py b/var/spack/repos/builtin/packages/eem/package.py new file mode 100644 index 0000000000..a14b215a39 --- /dev/null +++ b/var/spack/repos/builtin/packages/eem/package.py @@ -0,0 +1,40 @@ +# Copyright 2013-2019 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 Eem(MakefilePackage): + """EEM is a program to extract the gene group and expression modules + that are co-expressed in the mRNA expression data.""" + + homepage = "http://www.scls.riken.jp/scruise/software/eem.html" + url = "http://www.scls.riken.jp/wp-content/uploads/2014/07/eemParallel_1.0.1.tar.gz" + + version('1.0.1', sha256='f617ea7350fce3b2581c814f70bda4427cbab83aac54a2dcadb36e8193f300bb') + + variant('K', default=False, description='Build for K computer') + + phases = ['edit', 'install'] + + depends_on('mpi') + + build_directory = 'src' + + patch('add_include.patch') + + def edit(self, spec, prefix): + settings = FileFilter('./src/local_settings.mk') + + settings.filter('$(HOME)/local', prefix, string=True) + settings.filter('mpicxx', self.spec['mpi'].mpicxx, string=True) + + if '+K' in self.spec: + settings.filter('CXXFLAGS= -Wall -Wno-sign-compare -g', + 'CXXFLAGS=', string=True) + settings.filter('CXXFLAGS+= -std=c++11 -DHAVE_UNORDERED_MAP', + 'CXXFLAGS+= -DHAVE_UNORDERED_MAP', string=True) + settings.filter('CXXFLAGS+= -DHAVE_SHUFFLE', + '#CXXFLAGS+= -DHAVE_SHUFFLE', string=True) |