diff options
-rw-r--r-- | var/spack/repos/builtin/packages/pmdk/0001-make-doc-building-explicit.patch | 34 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/pmdk/package.py | 41 |
2 files changed, 75 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pmdk/0001-make-doc-building-explicit.patch b/var/spack/repos/builtin/packages/pmdk/0001-make-doc-building-explicit.patch new file mode 100644 index 0000000000..664fecf499 --- /dev/null +++ b/var/spack/repos/builtin/packages/pmdk/0001-make-doc-building-explicit.patch @@ -0,0 +1,34 @@ +From 750e9d9dac52af483dc556be80f1f69bc522e5be Mon Sep 17 00:00:00 2001 +From: Rob Latham <robl@mcs.anl.gov> +Date: Tue, 8 May 2018 15:48:49 -0500 +Subject: [PATCH] make doc building explicit + +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 7f2417d9..b29672b3 100644 +--- a/Makefile ++++ b/Makefile +@@ -93,7 +93,7 @@ clean: + + clobber: + $(MAKE) -C src $@ +- $(MAKE) -C doc $@ ++ #$(MAKE) -C doc $@ + $(MAKE) -C utils $@ + $(RM) -r $(RPM_BUILDDIR) $(DPKG_BUILDDIR) rpm dpkg + +@@ -142,7 +142,7 @@ rpm dpkg: pkg-clean source + + install uninstall: + $(MAKE) -C src $@ +- $(MAKE) -C doc $@ ++ #$(MAKE) -C doc $@ + + .PHONY: all clean clobber test check cstyle check-license install uninstall\ + source rpm dpkg pkg-clean pcheck check-remote format doc $(SUBDIRS) +-- +2.17.0 + diff --git a/var/spack/repos/builtin/packages/pmdk/package.py b/var/spack/repos/builtin/packages/pmdk/package.py new file mode 100644 index 0000000000..9896e9862c --- /dev/null +++ b/var/spack/repos/builtin/packages/pmdk/package.py @@ -0,0 +1,41 @@ +# Copyright 2013-2019 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): + """The Persistent Memory Development Kit (PMDK), formerly known as NVML, + is a library for using memory-mapped persistence, optimized specifically + for persistent memory + """ + + homepage = "http://pmem.io/pmdk/" + url = "https://github.com/pmem/pmdk/archive/1.5.tar.gz" + git = "https://github.com/pmem/pmdk.git" + + version('develop', branch='master') + version('1.5', sha256='6b069d7207febeb62440e89245e8b18fcdf40b6170d2ec2ef33c252ed16db2d4') + + depends_on('ncurses', when='@1.5:') + + # documentation requires doxygen and a bunch of other dependencies + patch('0001-make-doc-building-explicit.patch') + + def install(self, spec, prefix): + make_args = [ + 'prefix=%s' % prefix, + 'NDCTL_ENABLE=n', + 'EXTRA_CFLAGS=-Wno-error', + '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(): + make_args += ['ARCH=x86_64'] + + make("install", *make_args) |