revocap-refiner: updated package (#17192)
This commit is contained in:
parent
9067378c24
commit
0493e133c5
@ -8,17 +8,15 @@
|
|||||||
|
|
||||||
class RevocapRefiner(MakefilePackage):
|
class RevocapRefiner(MakefilePackage):
|
||||||
"""The University of Tokyo, CISS Project:
|
"""The University of Tokyo, CISS Project:
|
||||||
Geometric processing, mesh processing, mesh generation"""
|
Library for refining of model meshes"""
|
||||||
|
|
||||||
homepage = "https://github.com/FrontISTR/REVOCAP_Refiner"
|
homepage = "https://www.frontistr.com"
|
||||||
git = "https://github.com/FrontISTR/REVOCAP_Refiner.git"
|
url = "https://www.frontistr.com/download/link.php?REVOCAP_Refiner-1.1.04.tar.gz"
|
||||||
|
# git = "https://gitlab.com/FrontISTR-Commons/REVOCAP_Refiner.git"
|
||||||
|
|
||||||
version('master', branch='master')
|
maintainers = ['k-tokunaga', 'kgoto', 'tuna' 'inagaki.kazuhisa']
|
||||||
|
|
||||||
depends_on('ruby', type='build')
|
version('1.1.04', sha256='bf3d959f4c1ab08a7e99cd7e02e710c758af28d71500f4814eed8b4eb3fb2d13')
|
||||||
depends_on('mpi')
|
|
||||||
depends_on('doxygen', type='build')
|
|
||||||
depends_on('swig', type='build')
|
|
||||||
|
|
||||||
parallel = False
|
parallel = False
|
||||||
|
|
||||||
@ -28,35 +26,32 @@ class RevocapRefiner(MakefilePackage):
|
|||||||
patch('delete_getIndices.patch')
|
patch('delete_getIndices.patch')
|
||||||
|
|
||||||
def edit(self, spec, prefix):
|
def edit(self, spec, prefix):
|
||||||
cflags = ['-O']
|
cflags = ['-O3']
|
||||||
cxxflags = ['-O', self.compiler.cxx_pic_flag]
|
cxxflags = ['-O3', self.compiler.cxx_pic_flag]
|
||||||
fflags = ['']
|
ldflags = ['']
|
||||||
ldshare = ['']
|
ldshare = ['']
|
||||||
libs = ['-lstdc++']
|
libs = ['']
|
||||||
if spec.satisfies('%gcc'):
|
|
||||||
ldshare.append('g++ -shared -s')
|
|
||||||
|
|
||||||
m = FileFilter('MakefileConfig.in')
|
m = FileFilter('MakefileConfig.in')
|
||||||
m.filter(r'CC\s=.*$', 'CC={0}'.format(spec['mpi'].mpicc))
|
m.filter(r'ARCH\s*=.*$', 'ARCH=')
|
||||||
m.filter(r'CFLAGS\s=.*$', 'CFLAGS={0}'.format(' '.join(cflags)))
|
m.filter(r'CC\s*=.*$', 'CC={0}'.format(spack_cc))
|
||||||
m.filter(r'CXX\s*=.*$', 'CXX={0}'.format(spec['mpi'].mpicxx))
|
m.filter(r'CFLAGS\s*=.*$', 'CFLAGS={0}'.format(' '.join(cflags)))
|
||||||
|
m.filter(r'CXX\s*=.*$', 'CXX={0}'.format(spack_cxx))
|
||||||
m.filter(r'CXXFLAGS\s*=.*$',
|
m.filter(r'CXXFLAGS\s*=.*$',
|
||||||
'CXXFLAGS={0}'.format(' '.join(cxxflags)))
|
'CXXFLAGS={0}'.format(' '.join(cxxflags)))
|
||||||
m.filter(r'AR\s*=.*$', 'AR=ar')
|
m.filter(r'AR\s*=.*$', 'AR=ar')
|
||||||
m.filter(r'ARFLAGS\s*=.*$', 'ARFLAGS=rsv')
|
m.filter(r'ARFLAGS\s*=.*$', 'ARFLAGS=rsv')
|
||||||
m.filter(r'LD\s*=.*$', 'LD={0}'.format(spack_fc))
|
m.filter(r'LD\s*=.*$', 'LD={0}'.format(spack_fc))
|
||||||
m.filter(r'LDFLAGS\s*=.*$',
|
m.filter(r'LDFLAGS\s*=.*$',
|
||||||
'LDFLAGS={0}'.format(' '.join(fflags)))
|
'LDFLAGS={0}'.format(' '.join(ldflags)))
|
||||||
m.filter(r'LDSHARE\s*=.*$',
|
m.filter(r'LDSHARE\s*=.*$',
|
||||||
'LDSHARE={0}'.format(' '.join(ldshare)))
|
'LDSHARE={0}'.format(' '.join(ldshare)))
|
||||||
m.filter(r'LIBS\s*=.*$', 'LIBS={0}'.format(' '.join(libs)))
|
m.filter(r'LIBS\s*=.*$', 'LIBS={0}'.format(' '.join(libs)))
|
||||||
m.filter(r'LIBPATH\s*=.*$', 'LIBPATH= ')
|
m.filter(r'LIBPATH\s*=.*$', 'LIBPATH= ')
|
||||||
m.filter(r'RM\s*=.*$', 'RM=rm -f')
|
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'TAR\s*=.*$', 'TAR=tar')
|
||||||
m.filter(r'SWIG\s*=.*$', 'SWIG=swig')
|
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
|
make()
|
||||||
install_tree('bin', prefix.bin)
|
install_tree('bin', prefix.bin)
|
||||||
install_tree('lib', prefix.lib)
|
install_tree('lib', prefix.lib)
|
||||||
install_tree('Refiner', prefix.include.refine)
|
install_tree('Refiner', prefix.include)
|
||||||
|
Loading…
Reference in New Issue
Block a user