blob: 84f09c8eb8556db171a28201c52012c1ea65b6a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 2013-2023 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)
import platform
from spack.package import *
_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"
license("BSD-2-Clause")
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+exception+serialization+random+graph+container")
depends_on("pcre")
depends_on("ragel", type="build")
|