Skip to content

Commit

Permalink
dev-libs/crc32c: move to cmake.eclass, fix Werror
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/744658
Signed-off-by: Arthur Zamarin <[email protected]>
  • Loading branch information
arthurzam committed Sep 5, 2021
1 parent e416a15 commit 7b5f5be
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dev-libs/crc32c/crc32c-1.0.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -12,16 +12,20 @@ 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
-DCRC32C_BUILD_BENCHMARKS=OFF
-DCRC32C_USE_GLOG=OFF
)

cmake-utils_src_configure
cmake_src_configure
}

0 comments on commit 7b5f5be

Please sign in to comment.