1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6..8} )
8 inherit cmake flag-o-matic python-any-r1
10 DESCRIPTION="High-performance regular expression matching library"
11 SRC_URI="https://github.com/intel/hyperscan/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 HOMEPAGE="https://www.hyperscan.io/ https://github.com/intel/hyperscan"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="+cpu_flags_x86_ssse3 static-libs"
19 RDEPEND="dev-libs/boost"
26 REQUIRED_USE="cpu_flags_x86_ssse3"
30 append-cxxflags -Wno-redundant-move
36 -DBUILD_SHARED_LIBS=$(usex static-libs OFF ON)
37 -DBUILD_STATIC_AND_SHARED=$(usex static-libs ON OFF)
43 "${BUILD_DIR}"/bin/unit-hyperscan || die