summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-09-05 19:33:46 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2021-09-05 19:40:18 +0300
commit7b5f5bec1046b618a945eb0ead4d4e4b44cb3bd9 (patch)
tree2e4e1e88eb7873f62d3e4f050034db86a6670a66 /dev-libs/crc32c
parentdev-libs/crc32c: set myself as a maintainer (diff)
downloadgentoo-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.ebuild10
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
}