@@ -0,0 +1,2128 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other%0A# Spack Project Developers. See the top-level COPYRIGHT file for details.%0A#%0A# SPDX-License-Identifier: (Apache-2.0 OR MIT)%0A%0Afrom spack import *%0A%0A%0Aclass RevocapRefiner(MakefilePackage):%0A    %22%22%22The University of Tokyo, CISS Project:%0A        Geometric processing, mesh processing, mesh generation%22%22%22%0A%0A    homepage = %22https://github.com/FrontISTR/REVOCAP_Refiner%22%0A    git      = %22https://github.com/FrontISTR/REVOCAP_Refiner.git%22%0A%0A    version('master', branch='master')%0A%0A    depends_on('ruby', type='build')%0A    depends_on('mpi')%0A    depends_on('doxygen', type='build')%0A    depends_on('swig', type='build')%0A%0A    parallel = False%0A%0A    def edit(self, spec, prefix):%0A        cflags = %5B'-O'%5D%0A        cxxflags = %5B'-O',  self.compiler.pic_flag%5D%0A        fflags = %5B''%5D%0A        ldshare = %5B''%5D%0A        libs = %5B'-lstdc++'%5D%0A        if spec.satisfies('%25gcc'):%0A            ldshare.append('g++ -shared -s')%0A%0A        m = FileFilter('MakefileConfig.in')%0A        m.filter(r'CC%5Cs=.*$', 'CC=%7B0%7D'.format(spec%5B'mpi'%5D.mpicc))%0A        m.filter(r'CFLAGS%5Cs=.*$', 'CFLAGS=%7B0%7D'.format(' '.join(cflags)))%0A        m.filter(r'CXX%5Cs*=.*$',  'CXX=%7B0%7D'.format(spec%5B'mpi'%5D.mpicxx))%0A        m.filter(r'CXXFLAGS%5Cs*=.*$',%0A                 'CXXFLAGS=%7B0%7D'.format(' '.join(cxxflags)))%0A        m.filter(r'AR%5Cs*=.*$', 'AR=ar')%0A        m.filter(r'ARFLAGS%5Cs*=.*$', 'ARFLAGS=rsv')%0A        m.filter(r'LD%5Cs*=.*$', 'LD=%7B0%7D'.format(spack_fc))%0A        m.filter(r'LDFLAGS%5Cs*=.*$',%0A                 'LDFLAGS=%7B0%7D'.format(' '.join(fflags)))%0A        m.filter(r'LDSHARE%5Cs*=.*$',%0A                 'LDSHARE=%7B0%7D'.format(' '.join(ldshare)))%0A        m.filter(r'LIBS%5Cs*=.*$', 'LIBS=%7B0%7D'.format(' '.join(libs)))%0A        m.filter(r'LIBPATH%5Cs*=.*$', 'LIBPATH= ')%0A        m.filter(r'RM%5Cs*=.*$', 'RM=rm -f')%0A        m.filter(r'DOXYGEN%5Cs*=.*$', 'DOXYGEN=doxygen')%0A        m.filter(r'TAR%5Cs*=.*$', 'TAR=tar')%0A        m.filter(r'SWIG%5Cs*=.*$', 'SWIG=swig')%0A%0A    def install(self, spec, prefix):%0A        install_tree('bin', prefix.bin)%0A        install_tree('lib', prefix.lib)%0A        install_tree('Refiner',  prefix.include.refine)%0A

ADD New package revocap-refiner (#16499)