dev-libs/crc32c - 1.1.2 (gentoo)

Search

Install

Install this version:

emerge -a =dev-libs/crc32c-1.1.2

Package Information

Description:
CRC32C implementation with support for CPU-specific acceleration instructions
Homepage:
https://github.com/google/crc32c
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
1.1.2 8 amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86 0
View Raw Ebuild
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="CRC32C implementation with support for CPU-specific acceleration instructions"
HOMEPAGE="https://github.com/google/crc32c"
SRC_URI="https://github.com/google/crc32c/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
IUSE="test"
RESTRICT="!test? ( test )"

BDEPEND="test? ( dev-cpp/gtest )"

PATCHES=(
	"${FILESDIR}/${PN}-1.1.1-system-testdeps.patch"
)

DOCS=( README.md )

src_prepare() {
	sed -e '/-Werror/d' \
		-e '/-march=armv8/d' \
		-i CMakeLists.txt || die
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DCMAKE_CXX_STANDARD=14 # C++14 or later required for >=gtest-1.13.0
		-DCRC32C_BUILD_TESTS=$(usex test)
		-DCRC32C_BUILD_BENCHMARKS=OFF
		-DCRC32C_USE_GLOG=OFF
	)

	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/crc32c | euse -E <flag> -p dev-libs/crc32c | euse -D <flag> -p dev-libs/crc32c

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

test? ( dev-cpp/gtest )

Manifest for 1.1.2

Type File Size Source URLs
DIST crc32c-1.1.2.tar.gz 29819 bytes https://github.com/google/crc32c/archive/1.1.2.tar.gz