summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-denpo <57649496+h-denpo@users.noreply.github.com>2020-05-07 22:44:23 +0900
committerGitHub <noreply@github.com>2020-05-07 08:44:23 -0500
commit4b65efa8aef4149689a48e9df11c54a367f9af89 (patch)
tree7261ed516493a736ce7bb89d518bc701e63212ba
parent762e74e1e3d68b1f4d62b3c13ef3341be236e18e (diff)
downloadspack-4b65efa8aef4149689a48e9df11c54a367f9af89.tar.gz
spack-4b65efa8aef4149689a48e9df11c54a367f9af89.tar.bz2
spack-4b65efa8aef4149689a48e9df11c54a367f9af89.tar.xz
spack-4b65efa8aef4149689a48e9df11c54a367f9af89.zip
ADD New package revocap-refiner (#16499)
* ADD New package revocap-refiner """The University of Tokyo, CISS Project: Geometric processing, mesh processing, mesh generation""" * Modify homepage = "https://github.com/FrontISTR/REVOCAP_Refiner" Modify version('master', branch='master') Modify depends_on('swig', type='build') Modify install_tree('Refiner', prefix.include.refine) Delete mkdirp(prefix.include)
-rw-r--r--var/spack/repos/builtin/packages/revocap-refiner/package.py57
1 files changed, 57 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/revocap-refiner/package.py b/var/spack/repos/builtin/packages/revocap-refiner/package.py
new file mode 100644
index 0000000000..ca130ef737
--- /dev/null
+++ b/var/spack/repos/builtin/packages/revocap-refiner/package.py
@@ -0,0 +1,57 @@
+# 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 RevocapRefiner(MakefilePackage):
+ """The University of Tokyo, CISS Project:
+ Geometric processing, mesh processing, mesh generation"""
+
+ homepage = "https://github.com/FrontISTR/REVOCAP_Refiner"
+ git = "https://github.com/FrontISTR/REVOCAP_Refiner.git"
+
+ version('master', branch='master')
+
+ depends_on('ruby', type='build')
+ depends_on('mpi')
+ depends_on('doxygen', type='build')
+ depends_on('swig', type='build')
+
+ parallel = False
+
+ def edit(self, spec, prefix):
+ cflags = ['-O']
+ cxxflags = ['-O', self.compiler.pic_flag]
+ fflags = ['']
+ ldshare = ['']
+ libs = ['-lstdc++']
+ if spec.satisfies('%gcc'):
+ ldshare.append('g++ -shared -s')
+
+ m = FileFilter('MakefileConfig.in')
+ m.filter(r'CC\s=.*$', 'CC={0}'.format(spec['mpi'].mpicc))
+ m.filter(r'CFLAGS\s=.*$', 'CFLAGS={0}'.format(' '.join(cflags)))
+ m.filter(r'CXX\s*=.*$', 'CXX={0}'.format(spec['mpi'].mpicxx))
+ m.filter(r'CXXFLAGS\s*=.*$',
+ 'CXXFLAGS={0}'.format(' '.join(cxxflags)))
+ m.filter(r'AR\s*=.*$', 'AR=ar')
+ m.filter(r'ARFLAGS\s*=.*$', 'ARFLAGS=rsv')
+ m.filter(r'LD\s*=.*$', 'LD={0}'.format(spack_fc))
+ m.filter(r'LDFLAGS\s*=.*$',
+ 'LDFLAGS={0}'.format(' '.join(fflags)))
+ m.filter(r'LDSHARE\s*=.*$',
+ 'LDSHARE={0}'.format(' '.join(ldshare)))
+ m.filter(r'LIBS\s*=.*$', 'LIBS={0}'.format(' '.join(libs)))
+ m.filter(r'LIBPATH\s*=.*$', 'LIBPATH= ')
+ m.filter(r'RM\s*=.*$', 'RM=rm -f')
+ m.filter(r'DOXYGEN\s*=.*$', 'DOXYGEN=doxygen')
+ m.filter(r'TAR\s*=.*$', 'TAR=tar')
+ m.filter(r'SWIG\s*=.*$', 'SWIG=swig')
+
+ def install(self, spec, prefix):
+ install_tree('bin', prefix.bin)
+ install_tree('lib', prefix.lib)
+ install_tree('Refiner', prefix.include.refine)