summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorketsubouchi <kenta.tsubouchi@allin-one.jp>2021-02-24 05:36:34 +0900
committerGitHub <noreply@github.com>2021-02-23 21:36:34 +0100
commit21349a4d25ea0e4c3022fde9fd244f1e3179ebfd (patch)
tree63b22421f8db6c3b4805aa031a8517a44fa84cca
parent76b1d97ca5a57ec504097df233f352462ebebc06 (diff)
downloadspack-21349a4d25ea0e4c3022fde9fd244f1e3179ebfd.tar.gz
spack-21349a4d25ea0e4c3022fde9fd244f1e3179ebfd.tar.bz2
spack-21349a4d25ea0e4c3022fde9fd244f1e3179ebfd.tar.xz
spack-21349a4d25ea0e4c3022fde9fd244f1e3179ebfd.zip
redland bindings: new package at v1.0.17.1 (#21838)
-rw-r--r--var/spack/repos/builtin/packages/redland-bindings/package.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/redland-bindings/package.py b/var/spack/repos/builtin/packages/redland-bindings/package.py
new file mode 100644
index 0000000000..e218f7afd9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/redland-bindings/package.py
@@ -0,0 +1,34 @@
+# Copyright 2013-2021 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 os
+
+
+class RedlandBindings(AutotoolsPackage):
+ """Redland Language Bindings for language APIs to Redland"""
+
+ homepage = "http://librdf.org/"
+ url = "http://download.librdf.org/source/redland-bindings-1.0.17.1.tar.gz"
+
+ version('1.0.17.1', sha256='ff72b587ab55f09daf81799cb3f9d263708fad5df7a5458f0c28566a2563b7f5')
+ version('1.0.16.1', sha256='065037ef61e9b78f642e75b9c2a42700eb1a87d903f2f9963d86591c7d916826')
+ version('1.0.14.1', sha256='a8cc365fccf292c56d53341ecae57fe8727e5002e048ca25f6251b5e595aec40')
+
+ depends_on('swig', type='build')
+ depends_on('redland')
+ depends_on('krb5')
+ depends_on('libssh')
+ extends('python')
+
+ def configure_args(self):
+ plib = self.spec['python'].prefix.lib
+ plib64 = self.spec['python'].prefix.lib64
+ mybase = self.prefix.lib
+ if os.path.isdir(plib64) and not os.path.isdir(plib):
+ mybase = self.prefix.lib64
+ pver = 'python{0}'.format(self.spec['python'].version.up_to(2))
+ myplib = join_path(mybase, pver, 'site-packages')
+ return ['--with-python', 'PYTHON_LIB={0}'.format(myplib)]