1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit cmake python-r1 flag-o-matic
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="${PYTHON_DEPS}
25 REQUIRED_USE="cpu_flags_x86_ssse3 ${PYTHON_REQUIRED_USE}"
29 append-cxxflags -Wno-redundant-move
35 -DBUILD_SHARED_LIBS=$(usex static-libs OFF ON)
36 -DBUILD_STATIC_AND_SHARED=$(usex static-libs ON OFF)