mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-libs/vectorscan: add 5.4.12
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST vectorscan-5.4.11.tar.gz 1895332 BLAKE2B a8f5a1230af0ddf7d9fb9299769ec1736d37ac3284f6a98b1e650af461206cf459eac35d13a47beb6683786c6529539b2d082edf426e7d4890ed11804c76268b SHA512 ed74e441c1106a90b344898320d20b74726db86af338dee8c908db941a88e73355ca87c6d64e212eb860bf76a96121021ebaabd48ce359b47634caaee9df3e5e
|
||||
DIST vectorscan-5.4.12.tar.gz 20849791 BLAKE2B 7d2a5934423ea5ef7153ab04544e9819d3c95644352780f6614ec2e896cbde4d92cffe6433eab86a55be26c2dd968d4d0ea7867d7c1251d4631af9da33d39f31 SHA512 b9e750cb53a109ebed6e472cccbd280434c4a8e6a9217acfd30c10cc88381712de2444d31794a1f0bebc0b5ca0def21c031234bc1706f4029d51d2830f0cb5ac
|
||||
|
||||
76
dev-libs/vectorscan/vectorscan-5.4.12.ebuild
Normal file
76
dev-libs/vectorscan/vectorscan-5.4.12.ebuild
Normal file
@@ -0,0 +1,76 @@
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake edo flag-o-matic
|
||||
|
||||
DESCRIPTION="A portable fork of the high-performance regular expression matching library"
|
||||
HOMEPAGE="
|
||||
https://www.vectorcamp.gr/vectorscan/
|
||||
https://github.com/VectorCamp/vectorscan
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/VectorCamp/vectorscan/archive/refs/tags/${PN}/${PV}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${P}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/5"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="cpu_flags_x86_avx2 cpu_flags_x86_sse4_2"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/boost:=
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
!dev-libs/hyperscan
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/ragel
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
REQUIRED_USE="
|
||||
x86? ( cpu_flags_x86_sse4_2 )
|
||||
amd64? ( cpu_flags_x86_sse4_2 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
local sedargs=(
|
||||
# Respect user -m flags (march/mtune)
|
||||
-e '/set(ARCH_CX*_FLAG/d'
|
||||
# Respect user -O flags
|
||||
-e '/set(OPT_CX*_FLAG/d'
|
||||
)
|
||||
sed -i "${sedargs[@]}" CMakeLists.txt cmake/cflags-x86.cmake || die
|
||||
sed -i '/-Werror/d' cmake/cflags-generic.cmake || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use cpu_flags_x86_avx2 && append-flags -mavx2
|
||||
use cpu_flags_x86_sse4_2 && append-flags -msse4.2
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_BENCHMARKS=OFF
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
|
||||
-DBUILD_AVX2=$(usex cpu_flags_x86_avx2)
|
||||
|
||||
-DFAT_RUNTIME=OFF
|
||||
-DUSE_CPU_NATIVE=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# The unit target cannot be used currently due to a bug in it,
|
||||
# see https://github.com/VectorCamp/vectorscan/issues/202
|
||||
#cmake_build unit
|
||||
edo "${BUILD_DIR}/bin/unit-hyperscan"
|
||||
}
|
||||
Reference in New Issue
Block a user