summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2016-05-29 15:26:34 -0500
committerGlenn Johnson <glenn-johnson@uiowa.edu>2016-06-16 23:08:54 -0500
commitfe256870b47d8b0381c918e54a45c46229506bad (patch)
tree1fd706c60e1d8f99518120b3ac0e4749b0fb78e6
parentcb3505769b57e9f7c06f42faf8b88dfb40db7ec9 (diff)
downloadspack-fe256870b47d8b0381c918e54a45c46229506bad.tar.gz
spack-fe256870b47d8b0381c918e54a45c46229506bad.tar.bz2
spack-fe256870b47d8b0381c918e54a45c46229506bad.tar.xz
spack-fe256870b47d8b0381c918e54a45c46229506bad.zip
Add variant for UTF support to pcre
This will build PCRE with UTF support by default. That seems to be reasonable for most environments.
-rw-r--r--var/spack/repos/builtin/packages/pcre/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/pcre/package.py b/var/spack/repos/builtin/packages/pcre/package.py
index 8e0f83110e..53b23a203d 100644
--- a/var/spack/repos/builtin/packages/pcre/package.py
+++ b/var/spack/repos/builtin/packages/pcre/package.py
@@ -29,6 +29,7 @@ class Pcre(Package):
"""The PCRE package contains Perl Compatible Regular Expression
libraries. These are useful for implementing regular expression
pattern matching using the same syntax and semantics as Perl 5."""
+
homepage = "http://www.pcre.org"""
url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.bz2"
@@ -37,7 +38,14 @@ class Pcre(Package):
patch("intel.patch")
+ variant('utf', default=True,
+ description='Enable support for UTF-8/16/32, incompatible with EBCDIC.')
+
def install(self, spec, prefix):
- configure("--prefix=%s" % prefix)
+ configure_args = ['--prefix=%s' % prefix]
+ if '+utf' in spec:
+ configure_args.append('--enable-utf')
+
+ configure(*configure_args)
make()
make("install")