summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-07-04 00:27:32 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-07-04 00:27:32 -0700
commit890df7153aa528fdd98ee11b850498c6f81f0279 (patch)
treea7d44fe7ed05d8db73de8463449cb2cd21d042d7 /var
parent2143c38ab870bfff716b9f9a6692dd669171a44c (diff)
parent6327877a6f9d2c30e4d644ec145a6f3f323ead81 (diff)
downloadspack-890df7153aa528fdd98ee11b850498c6f81f0279.tar.gz
spack-890df7153aa528fdd98ee11b850498c6f81f0279.tar.bz2
spack-890df7153aa528fdd98ee11b850498c6f81f0279.tar.xz
spack-890df7153aa528fdd98ee11b850498c6f81f0279.zip
Merge branch 'efischer/160311-StagedPackage' of https://github.com/citibeth/spack into citibeth-efischer/160311-StagedPackage
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ibmisc/package.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ibmisc/package.py b/var/spack/repos/builtin/packages/ibmisc/package.py
new file mode 100644
index 0000000000..8e6cf429a7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ibmisc/package.py
@@ -0,0 +1,46 @@
+from spack import *
+
+class Ibmisc(CMakePackage):
+ """Misc. reusable utilities used by IceBin."""
+
+ homepage = "https://github.com/citibeth/ibmisc"
+ url = "https://github.com/citibeth/ibmisc/tarball/123"
+
+ version('0.1.0', '12f2a32432a11db48e00217df18e59fa')
+
+ variant('everytrace', default=False, description='Report errors through Everytrace')
+ variant('proj', default=True, description='Compile utilities for PROJ.4 library')
+ variant('blitz', default=True, description='Compile utilities for Blitz library')
+ variant('netcdf', default=True, description='Compile utilities for NetCDF library')
+ variant('boost', default=True, description='Compile utilities for Boost library')
+ variant('udunits2', default=True, description='Compile utilities for UDUNITS2 library')
+ variant('googletest', default=True, description='Compile utilities for Google Test library')
+ variant('python', default=True, description='Compile utilities for use with Python/Cython')
+
+ extends('python')
+
+ depends_on('eigen')
+ depends_on('everytrace', when='+everytrace')
+ depends_on('proj', when='+proj')
+ depends_on('blitz', when='+blitz')
+ depends_on('netcdf-cxx4', when='+netcdf')
+ depends_on('udunits2', when='+udunits2')
+ depends_on('googletest', when='+googletest')
+ depends_on('py-cython', when='+python')
+ depends_on('py-numpy', when='+python')
+ depends_on('boost', when='+boost')
+
+ # Build dependencies
+ depends_on('cmake')
+ depends_on('doxygen')
+
+ def configure_args(self):
+ spec = self.spec
+ return [
+ '-DUSE_EVERYTRACE=%s' % ('YES' if '+everytrace' in spec else 'NO'),
+ '-DUSE_PROJ4=%s' % ('YES' if '+proj' in spec else 'NO'),
+ '-DUSE_BLITZ=%s' % ('YES' if '+blitz' in spec else 'NO'),
+ '-DUSE_NETCDF=%s' % ('YES' if '+netcdf' in spec else 'NO'),
+ '-DUSE_BOOST=%s' % ('YES' if '+boost' in spec else 'NO'),
+ '-DUSE_UDUNITS2=%s' % ('YES' if '+udunits2' in spec else 'NO'),
+ '-DUSE_GTEST=%s' % ('YES' if '+googletest' in spec else 'NO')]