spack/var/spack/repos/builtin/packages/wcs/package.py
Robert Blake 872ab21103
Add new package: wcs (#16958)
* Adding a package for wcs.

* Turning on sbml for wcs.

* The cpp flag needs to be available for wcs.

* Wcs needs SBML to properly define the namespace.

* Flake8 fixes.

* Fixing the help string with the description.

* Changing cpp to use the new variant syntax.

* Fixing flake8 errors.

* Forgot to delete one last fixme comment.

* Spack "develop" needs to link to repo "devel"

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Robert Blake <rob.c.blake.3@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2020-06-09 16:13:54 -05:00

34 lines
1.0 KiB
Python

# 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 Wcs(CMakePackage):
"""Simulates whole cell models using discrete event simulation."""
homepage = "https://github.com/LLNL/wcs.git"
git = "https://github.com/LLNL/wcs.git"
maintainers = ['rblake-llnl']
version('master', branch='master')
version('develop', branch='devel')
depends_on('boost+graph+filesystem+regex+system')
depends_on('sbml@5.18.0:+cpp')
depends_on('cmake@3.12:', type='build')
depends_on('cereal', type='build')
def cmake_args(self):
spec = self.spec
args = [
"-DBOOST_ROOT:PATH=" + spec['boost'].prefix,
"-DCEREAL_ROOT:PATH=" + spec['cereal'].prefix,
"-DSBML_ROOT:PATH=" + spec['sbml'].prefix,
"-DWCS_WITH_SBML:BOOL=ON",
"-DWCS_WITH_EXPRTK:BOOL=ON",
]
return args