mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 11:04:10 -04:00
dev-cpp/highway: add versioned ebuild, EAPI 8
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
@@ -18,18 +18,20 @@ fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
IUSE="test"
|
||||
|
||||
DEPEND=""
|
||||
DEPEND="test? ( dev-cpp/gtest )"
|
||||
|
||||
BDEPEND=""
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
PATCHES=( "${FILESDIR}/${PN}-shared-libraries.patch" )
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TESTING=OFF
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
-DHWY_WARNINGS_ARE_ERRORS=OFF
|
||||
)
|
||||
|
||||
use test && mycmakeargs+=( "-DHWY_SYSTEM_GTEST=ON" )
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user