summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libreproc/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/libreproc/package.py')
-rw-r--r--var/spack/repos/builtin/packages/libreproc/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libreproc/package.py b/var/spack/repos/builtin/packages/libreproc/package.py
new file mode 100644
index 0000000000..093f84d004
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libreproc/package.py
@@ -0,0 +1,30 @@
+# Copyright 2013-2022 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.package import *
+
+
+class Libreproc(CMakePackage):
+ """A cross-platform process library"""
+
+ homepage = "https://github.com/DaanDeMeyer/reproc/"
+ url = "https://github.com/DaanDeMeyer/reproc/archive/v14.2.4.tar.gz"
+
+ maintainers = ["charmoniumQ"]
+
+ version("14.2.4", sha256="55c780f7faa5c8cabd83ebbb84b68e5e0e09732de70a129f6b3c801e905415dd")
+
+ variant("cxx", default=False, description="Build reproc C++ bindings")
+ variant("shared", default=True, description="Build shared libraries")
+
+ depends_on("cmake@3.14:", type="build")
+ depends_on("zlib+shared", type="link", when="+shared")
+ depends_on("zlib~shared", type="link", when="~shared")
+
+ def cmake_args(self):
+ return [
+ self.define_from_variant("REPROC++", "cxx"),
+ self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
+ ]