diff options
-rw-r--r-- | var/spack/repos/builtin/packages/hyperscan/package.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hyperscan/package.py b/var/spack/repos/builtin/packages/hyperscan/package.py new file mode 100644 index 0000000000..1fd057c7c6 --- /dev/null +++ b/var/spack/repos/builtin/packages/hyperscan/package.py @@ -0,0 +1,31 @@ +# 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 platform + +_versions = { + 'v5.2.1': { + 'Linux-aarch64': ('d2ac1669154ec27b794b64d026ad09caecee6e5e17fd35107595a7517711d2b9', 'https://github.com/kunpengcompute/hyperscan/archive/v5.2.1.aarch64.tar.gz'), + 'Linux-x86_64': ('fd879e4ee5ecdd125e3a79ef040886978ae8f1203832d5a3f050c48f17eec867', 'https://github.com/intel/hyperscan/archive/v5.2.1.tar.gz') + } +} + + +class Hyperscan(CMakePackage): + """High-performance regular expression matching library.""" + + homepage = "https://www.hyperscan.io/" + url = "https://github.com/intel/hyperscan/archive/v5.2.1.tar.gz" + + for ver, packages in _versions.items(): + key = "{0}-{1}".format(platform.system(), platform.machine()) + pkg = packages.get(key) + if pkg: + version(ver, sha256=pkg[0], url=pkg[1]) + + depends_on('boost') + depends_on('pcre') + depends_on('ragel', type='build') |