diff options
author | healther <healther@users.noreply.github.com> | 2017-02-21 00:14:44 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-02-20 17:14:44 -0600 |
commit | 8ebd49c96239e64f963b7df9e8f33d7544b60780 (patch) | |
tree | bc0397de13cd9d0d8c90c917810f464ca20b37c1 | |
parent | c8cfe317c200fbb255a885dff5b76ce5336a17f7 (diff) | |
download | spack-8ebd49c96239e64f963b7df9e8f33d7544b60780.tar.gz spack-8ebd49c96239e64f963b7df9e8f33d7544b60780.tar.bz2 spack-8ebd49c96239e64f963b7df9e8f33d7544b60780.tar.xz spack-8ebd49c96239e64f963b7df9e8f33d7544b60780.zip |
add symlink variant (needed for AFS) (#3147)
* add symlink variant (needed for AFS)
* fix flake8
* added missing return statement
-rw-r--r-- | var/spack/repos/builtin/packages/ncurses/package.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ncurses/package.py b/var/spack/repos/builtin/packages/ncurses/package.py index 79b5e88ceb..3d4a0838c5 100644 --- a/var/spack/repos/builtin/packages/ncurses/package.py +++ b/var/spack/repos/builtin/packages/ncurses/package.py @@ -41,8 +41,11 @@ class Ncurses(AutotoolsPackage): patch('patch_gcc_5.txt', when='@6.0%gcc@5.0:') patch('sed_pgi.patch', when='@:6.0') + variant('symlinks', default=False, + description='Enables symlinks. Needed on AFS filesystem.') + def configure_args(self): - return [ + opts = [ 'CFLAGS={0}'.format(self.compiler.pic_flag), 'CXXFLAGS={0}'.format(self.compiler.pic_flag), '--with-shared', @@ -54,3 +57,6 @@ class Ncurses(AutotoolsPackage): '--enable-pc-files', '--with-pkg-config-libdir={0}/lib/pkgconfig'.format(self.prefix) ] + if '+symlinks' in self.spec: + opts += ["--enable-symlinks"] + return opts |