dev-libs/crc32c: move to cmake.eclass, fix Werror

Closes: https://bugs.gentoo.org/744658
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2021-09-05 19:40:18 +03:00
parent e416a15279
commit 7b5f5bec10
+7 -3
View File
@@ -3,7 +3,7 @@
EAPI=7
inherit cmake-utils
inherit cmake
DESCRIPTION="CRC32C implementation with support for CPU-specific acceleration instructions"
HOMEPAGE="https://github.com/google/crc32c"
@@ -12,10 +12,14 @@ SRC_URI="https://github.com/google/crc32c/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~riscv x86"
IUSE=""
DOCS=( README.md )
src_prepare() {
sed -e '/-Werror/d' -i CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DCRC32C_BUILD_TESTS=OFF
@@ -23,5 +27,5 @@ src_configure() {
-DCRC32C_USE_GLOG=OFF
)
cmake-utils_src_configure
cmake_src_configure
}