summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-08-30 00:51:41 +0800
committerGitHub <noreply@github.com>2020-08-29 11:51:41 -0500
commit8b212c78458d7cd4efcf255141057df0a3b2781f (patch)
tree898ebc37765c271a78f07d706e0fc7862f7e4861 /var
parent2204ba18b582515b5a452b0c9e00a96f81049e79 (diff)
downloadspack-8b212c78458d7cd4efcf255141057df0a3b2781f.tar.gz
spack-8b212c78458d7cd4efcf255141057df0a3b2781f.tar.bz2
spack-8b212c78458d7cd4efcf255141057df0a3b2781f.tar.xz
spack-8b212c78458d7cd4efcf255141057df0a3b2781f.zip
Add new package: leptonica (#18306)
* Add new package: leptonica * Update var/spack/repos/builtin/packages/leptonica/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/leptonica/package.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/leptonica/package.py b/var/spack/repos/builtin/packages/leptonica/package.py
new file mode 100644
index 0000000000..21e7b5583f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/leptonica/package.py
@@ -0,0 +1,24 @@
+# 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 *
+
+
+class Leptonica(CMakePackage):
+ """Leptonica is an open source library containing software that is
+ broadly useful for image processing and image analysis applications."""
+
+ homepage = "http://www.leptonica.org/"
+ url = "https://github.com/DanBloomberg/leptonica/archive/1.80.0.tar.gz"
+
+ version('1.80.0', sha256='3952b974ec057d24267aae48c54bca68ead8275604bf084a73a4b953ff79196e')
+ version('1.79.0', sha256='bf9716f91a4844c2682a07ef21eaf68b6f1077af1f63f27c438394fd66218e17')
+ version('1.78.0', sha256='f8ac4d93cc76b524c2c81d27850bfc342e68b91368aa7a1f7d69e34ce13adbb4')
+
+ depends_on('zlib')
+
+ def cmake_args(self):
+ args = ['-DCMAKE_C_FLAGS=' + self.compiler.cc_pic_flag]
+ return args