From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3FA6015800F for ; Wed, 22 Feb 2023 16:16:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79FD8E07AE; Wed, 22 Feb 2023 16:16:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6040EE07AE for ; Wed, 22 Feb 2023 16:16:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C36C335D75 for ; Wed, 22 Feb 2023 16:16:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 140047D0 for ; Wed, 22 Feb 2023 16:16:53 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1677082402.8c478a16109cc83fca3bf86f412e539d105d387d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/hyperscan/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/hyperscan/Manifest dev-libs/hyperscan/hyperscan-5.4.1.ebuild X-VCS-Directories: dev-libs/hyperscan/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8c478a16109cc83fca3bf86f412e539d105d387d X-VCS-Branch: master Date: Wed, 22 Feb 2023 16:16:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a5f2058e-b405-4c03-9270-1a9a87fee6ff X-Archives-Hash: 30738c48f7996543ee85f7b1b2748a2a commit: 8c478a16109cc83fca3bf86f412e539d105d387d Author: Petr Vaněk atlas cz> AuthorDate: Wed Feb 22 10:39:56 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Feb 22 16:13:22 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c478a16 dev-libs/hyperscan: add 5.4.1 - EAPI bump to 8 - drop static-libs use flag - remove unneeded CMAKE_BUILD_TYPE variable Signed-off-by: Petr Vaněk atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/29720 Signed-off-by: Sam James gentoo.org> dev-libs/hyperscan/Manifest | 1 + dev-libs/hyperscan/hyperscan-5.4.1.ebuild | 57 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/dev-libs/hyperscan/Manifest b/dev-libs/hyperscan/Manifest index 583b450ea304..b573ca9efb54 100644 --- a/dev-libs/hyperscan/Manifest +++ b/dev-libs/hyperscan/Manifest @@ -1 +1,2 @@ DIST hyperscan-5.4.0.tar.gz 1844963 BLAKE2B 1a5af88655854b4c1ec58e6663b6c9c4b6fca0aa9d3e4daad3992daf911b8f359f48a95b65e4f05c71aa644e0271471d016fafaca05d547b838a9c52ea016e27 SHA512 cfec3f43b9e8b3fbb2e761927f3a173c1230f2688da710ec7708f2941ce6f550a1d3cb48b0b0e2ccf709807390117a7e40047cb99190bcc341f37eb3da13ae62 +DIST hyperscan-5.4.1.tar.gz 1848831 BLAKE2B 8be2a05de04a8f32c723e35be16923470ef7dbda830cf0a08c87bfcaff49564f9104f1b48b26a93a7fb157ac74e531841ea43db75bbfe3f836b98e748ccdfd45 SHA512 e9404946287e32604798dc8f9415efe8a47e464cf6e29e5c534ca6074f3674d2d38d4600787d3035ba2898a40e5048fbcd03e23f387ce43f81de4b6c63f70035 diff --git a/dev-libs/hyperscan/hyperscan-5.4.1.ebuild b/dev-libs/hyperscan/hyperscan-5.4.1.ebuild new file mode 100644 index 000000000000..4377ae025213 --- /dev/null +++ b/dev-libs/hyperscan/hyperscan-5.4.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit cmake flag-o-matic python-any-r1 + +DESCRIPTION="High-performance regular expression matching library" +SRC_URI="https://github.com/intel/hyperscan/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE=" + https://www.hyperscan.io/ + https://github.com/intel/hyperscan +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="cpu_flags_x86_avx2 cpu_flags_x86_ssse3" + +RDEPEND="dev-libs/boost:=" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + dev-util/ragel +" + +# We can't default this to on as it's against the expectation of +# how CPU_FLAGS_* work for users. +REQUIRED_USE="cpu_flags_x86_ssse3" + +src_prepare() { + # Respect user -O flags + sed -i '/set(OPT_CX*_FLAG/d' CMakeLists.txt || die + + # upstream workaround + append-cxxflags -Wno-redundant-move + cmake_src_prepare +} + +src_configure() { + use cpu_flags_x86_ssse3 && append-flags -mssse3 + use cpu_flags_x86_avx2 && append-flags -mavx2 + + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DBUILD_STATIC_AND_SHARED=OFF + -DBUILD_EXAMPLES=OFF + -DFAT_RUNTIME=false + ) + cmake_src_configure +} + +src_test() { + "${BUILD_DIR}"/bin/unit-hyperscan || die +}