summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2020-03-27 22:16:48 +0900
committerGitHub <noreply@github.com>2020-03-27 08:16:48 -0500
commit7df7b65cecd793ad867288191940714c16aad0b0 (patch)
tree3e565dee382611723609f943743b948e71967f00
parent420b5dd4b96135f219cd15c67c929fe0109e75b1 (diff)
downloadspack-7df7b65cecd793ad867288191940714c16aad0b0.tar.gz
spack-7df7b65cecd793ad867288191940714c16aad0b0.tar.bz2
spack-7df7b65cecd793ad867288191940714c16aad0b0.tar.xz
spack-7df7b65cecd793ad867288191940714c16aad0b0.zip
ppOpen-AT: New package (#15649)
* ppOpen-AT: New package * use install instead of install-after. * use install_tree. * forget remove mkdir.
-rw-r--r--var/spack/repos/builtin/packages/ppopen-at/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ppopen-at/package.py b/var/spack/repos/builtin/packages/ppopen-at/package.py
new file mode 100644
index 0000000000..92a8c302de
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ppopen-at/package.py
@@ -0,0 +1,28 @@
+# 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 *
+import os
+
+
+class PpopenAt(MakefilePackage):
+ """ppOpen-AT is a part of the ppOpenHPC"""
+
+ homepage = "http://ppopenhpc.cc.u-tokyo.ac.jp/ppopenhpc/"
+ url = "file://{0}/ppohAT_1.0.0.tar.gz".format(os.getcwd())
+
+ version('1.0.0', sha256='2b5664839762c941e0b2dd7c15416e2dcfd5d909558cf7e4347a79ce535f3887')
+
+ def edit(self, spec, prefix):
+ makefile_in = FileFilter('Makefile.in')
+ makefile_in.filter('gcc', spack_cxx)
+ makefile_in.filter('~/ppohAT_1.0.0', prefix)
+ makefile_in.filter('mkdir', 'mkdir -p')
+
+ def install(self, spec, prefix):
+ make('install')
+ install_tree('examples', prefix.examples)
+ install_tree('doc', prefix.doc)