diff options
author | Desmond Orton <odesmond21@gmail.com> | 2021-06-04 03:15:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 10:15:28 +0200 |
commit | e28e6d2618d1e1e4f2e04a6747920b975ccb040a (patch) | |
tree | d5a6adf099c88f0807f3fe7a0b195e0860477650 | |
parent | d8fc38a467126454bb1c2c9e6e341667a9173963 (diff) | |
download | spack-e28e6d2618d1e1e4f2e04a6747920b975ccb040a.tar.gz spack-e28e6d2618d1e1e4f2e04a6747920b975ccb040a.tar.bz2 spack-e28e6d2618d1e1e4f2e04a6747920b975ccb040a.tar.xz spack-e28e6d2618d1e1e4f2e04a6747920b975ccb040a.zip |
gengeo: new package (#24126)
-rw-r--r-- | var/spack/repos/builtin/packages/gengeo/package.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gengeo/package.py b/var/spack/repos/builtin/packages/gengeo/package.py new file mode 100644 index 0000000000..8c3795d829 --- /dev/null +++ b/var/spack/repos/builtin/packages/gengeo/package.py @@ -0,0 +1,45 @@ +# Copyright 2013-2021 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 Gengeo(AutotoolsPackage): + """GenGeo is a library of tools for creating complex particle + geometries for use in ESyS-Particle simulations. GenGeo is a standalone + application with a Python API that creates geometry files suitable for + importing into ESyS-Particle simulations. The functionality of GenGeo far + exceeds the in-simulation geometry creation utilities + provided by ESyS-Particle itself.""" + + homepage = "https://launchpad.net/esys-particle/gengeo" + url = "https://launchpad.net/esys-particle/trunk/3.0-alpha/+download/gengeo-163.tar.gz" + + maintainers = ['dorton21'] + + version('163', sha256='9c896d430d8f315a45379d2b82e7d374f36259af66a745bfdee4c022a080d34d') + + extends('python') + + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + + depends_on('boost+python') + depends_on('openmpi') + + def autoreconf(self, spec, prefix): + autogen = Executable('./autogen.sh') + autogen() + + def configure_args(self): + args = [ + '--verbose', + '--with-boost=' + self.spec['boost'].prefix, + 'CCFLAGS=-fpermissive', + 'CXXFLAGS=-fpermissive', + ] + return args |