summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2016-01-22 13:25:45 -0800
committerPeter Scheibel <scheibel1@llnl.gov>2016-01-22 13:25:45 -0800
commit9f99ee61c733e8fee8ae4058fb9198288af40fc6 (patch)
treeeea806e0b2f9651a44797eb89d1dc944da897b78
parent4a55b97d11739a0ee6ca5ddcbdf35826ca292469 (diff)
downloadspack-9f99ee61c733e8fee8ae4058fb9198288af40fc6.tar.gz
spack-9f99ee61c733e8fee8ae4058fb9198288af40fc6.tar.bz2
spack-9f99ee61c733e8fee8ae4058fb9198288af40fc6.tar.xz
spack-9f99ee61c733e8fee8ae4058fb9198288af40fc6.zip
1. added default install libs (atomic, test, locale, program_options)
2. clarify comment for default_noinstall_libs 3. renamed regex_icu variant to icu_support (both the locale and regex libs can use it) 4. explicitly set b2 install ICU_PATH when regex_icu is activated
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index 467e9a61c6..1403ea4411 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -45,24 +45,28 @@ class Boost(Package):
version('1.34.1', '2d938467e8a448a2c9763e0a9f8ca7e5')
version('1.34.0', 'ed5b9291ffad776f8757a916e1726ad0')
- default_install_libs = set(['chrono',
+ default_install_libs = set(['atomic',
+ 'chrono',
'date_time',
'filesystem',
'graph',
'iostreams',
+ 'locale',
'log',
'math',
+ 'program_options',
'random',
'regex',
'serialization',
'signals',
'system',
+ 'test',
'thread',
'wave'])
- # These are not installed by default because they pull in many dependencies
- # and/or because there is a great deal of customization possible (and it
- # would be difficult or tedious to choose sensible defaults here).
+ # mpi/python are not installed by default because they pull in many
+ # dependencies and/or because there is a great deal of customization
+ # possible (and it would be difficult to choose sensible defaults)
default_noinstall_libs = set(['mpi', 'python'])
all_libs = default_install_libs | default_noinstall_libs
@@ -75,9 +79,9 @@ class Boost(Package):
variant('shared', default=True, description="Additionally build shared libraries")
variant('multithreaded', default=True, description="Build multi-threaded versions of libraries")
variant('singlethreaded', default=True, description="Build single-threaded versions of libraries")
- variant('regex_icu', default=False, description="Include regex ICU support (by default false even if regex library is compiled)")
+ variant('icu_support', default=False, description="Include ICU support (for regex/locale libraries)")
- depends_on('icu', when='+regex_icu')
+ depends_on('icu', when='+icu_support')
depends_on('python', when='+python')
depends_on('mpi', when='+mpi')
depends_on('bzip2', when='+iostreams')
@@ -134,6 +138,9 @@ class Boost(Package):
else:
options.append('variant=release')
+ if '+icu_support' in spec:
+ options.extend(['-s', 'ICU_PATH=%s' % spec['icu'].prefix])
+
if '+iostreams' in spec:
options.extend([
'-s', 'BZIP2_INCLUDE=%s' % spec['bzip2'].prefix.include,