Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 644024
Collapse All | Expand All

(-)a/app-arch/lz4/lz4-1.8.0.ebuild (-1 / +9 lines)
Lines 24-33 Link Here
24
# however, it is extremely unlikely that this 'const' would actually
24
# however, it is extremely unlikely that this 'const' would actually
25
# be relied on
25
# be relied on
26
SLOT="0/r131"
26
SLOT="0/r131"
27
IUSE="static-libs"
27
IUSE="static-libs xxhash"
28
28
29
CMAKE_USE_DIR=${S}/contrib/cmake_unofficial
29
CMAKE_USE_DIR=${S}/contrib/cmake_unofficial
30
30
31
src_prepare() {
32
	if use xxhash; then
33
		sed -e 's|"${LZ4_LIB_SOURCE_DIR}/lz4hc.h"|"${LZ4_LIB_SOURCE_DIR}/lz4hc.h"\n    "${LZ4_LIB_SOURCE_DIR}/xxhash.h"|g' \
34
			-i ${CMAKE_USE_DIR}/CMakeLists.txt
35
	fi
36
	eapply_user
37
}
38
31
multilib_src_configure() {
39
multilib_src_configure() {
32
	local mycmakeargs=(
40
	local mycmakeargs=(
33
		-DBUILD_STATIC_LIBS=$(usex static-libs)
41
		-DBUILD_STATIC_LIBS=$(usex static-libs)

Return to bug 644024