diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-05 19:33:46 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-05 19:40:18 +0300 |
commit | 7b5f5bec1046b618a945eb0ead4d4e4b44cb3bd9 (patch) | |
tree | 2e4e1e88eb7873f62d3e4f050034db86a6670a66 /dev-libs/crc32c | |
parent | dev-libs/crc32c: set myself as a maintainer (diff) | |
download | gentoo-7b5f5bec1046b618a945eb0ead4d4e4b44cb3bd9.tar.gz gentoo-7b5f5bec1046b618a945eb0ead4d4e4b44cb3bd9.tar.bz2 gentoo-7b5f5bec1046b618a945eb0ead4d4e4b44cb3bd9.zip |
dev-libs/crc32c: move to cmake.eclass, fix Werror
Closes: https://bugs.gentoo.org/744658
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-libs/crc32c')
-rw-r--r-- | dev-libs/crc32c/crc32c-1.0.6.ebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-libs/crc32c/crc32c-1.0.6.ebuild b/dev-libs/crc32c/crc32c-1.0.6.ebuild index 73fcf18bbb89..baf1e8683e97 100644 --- a/dev-libs/crc32c/crc32c-1.0.6.ebuild +++ b/dev-libs/crc32c/crc32c-1.0.6.ebuild @@ -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 } |