summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pmdk/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/pmdk/package.py')
-rw-r--r--var/spack/repos/builtin/packages/pmdk/package.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/pmdk/package.py b/var/spack/repos/builtin/packages/pmdk/package.py
index 2f8aca78e0..c8c836e4eb 100644
--- a/var/spack/repos/builtin/packages/pmdk/package.py
+++ b/var/spack/repos/builtin/packages/pmdk/package.py
@@ -1,10 +1,9 @@
-# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# 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 *
-import spack.architecture
class Pmdk(Package):
@@ -18,13 +17,15 @@ class Pmdk(Package):
git = "https://github.com/pmem/pmdk.git"
version('develop', branch='master')
+ version('1.8', sha256='a241ea76ef76d233cb92826b6823ed48091a2fb6963282a4fea848dbce68aa21')
version('1.7', sha256='865ce1b422bc83109cb4a63dcff8fd1077eea3617e668faf6a043208d8be03ca')
version('1.6', sha256='3b99e6c30709326a94d2e73a9247a8dfb58d0a394c5b7714e5c3d8a3ad2e2e9f')
version('1.5', sha256='6b069d7207febeb62440e89245e8b18fcdf40b6170d2ec2ef33c252ed16db2d4')
depends_on('ncurses', when='@1.6:')
# documentation requires doxygen and a bunch of other dependencies
- patch('0001-make-doc-building-explicit.patch')
+ patch('0001-make-doc-building-explicit.patch', when="@:1.7")
+ patch('pmem-1.8-disable-docs.patch', when='@1.8')
def install(self, spec, prefix):
make_args = [
@@ -34,9 +35,9 @@ class Pmdk(Package):
'BUILD_RPMEM=n',
]
- # pmdk is particular about the ARCH specification, must be
- # exactly "x86_64" for build to work
- if 'x86_64' in spack.architecture.sys_type():
+ # pmdk prior to 1.8 was particular about the ARCH specification, must
+ # be exactly "x86_64" for build to work
+ if spec.target.family == 'x86_64':
make_args += ['ARCH=x86_64']
make("install", *make_args)