blob: c06bbca39377c990a2dc9421f5633bf7aa1b7870 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils
DESCRIPTION="Blocking, shuffling and lossless compression library"
HOMEPAGE="http://www.blosc.org/"
SRC_URI="https://github.com/Blosc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/1"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="cpu_flags_x86_avx2 +lz4 +snappy static-libs test zlib zstd"
RDEPEND="
lz4? ( >=app-arch/lz4-1.7.5:= )
snappy? ( app-arch/snappy )
zlib? ( sys-libs/zlib )
zstd? ( app-arch/zstd )"
DEPEND="${RDEPEND}"
DOCS=( README.rst RELEASE_NOTES.rst THOUGHTS_FOR_2.0.txt ANNOUNCE.rst )
PATCHES=( "${FILESDIR}/${PN}-1.11.2-fix-build-system.patch" )
src_prepare() {
cmake-utils_src_prepare
# remove bundled libs
rm -rf internal-complibs || die
}
src_configure() {
local mycmakeargs=(
-DBUILD_STATIC=$(usex static-libs)
-DBUILD_TESTS=$(usex test)
-DBUILD_BENCHMARKS=OFF
-DDEACTIVATE_AVX2=$(usex !cpu_flags_x86_avx2)
-DDEACTIVATE_LZ4=$(usex !lz4)
-DDEACTIVATE_SNAPPY=$(usex !snappy)
-DDEACTIVATE_ZLIB=$(usex !zlib)
-DDEACTIVATE_ZSTD=$(usex !zstd)
-DPREFER_EXTERNAL_LZ4=ON
-DPREFER_EXTERNAL_SNAPPY=ON
-DPREFER_EXTERNAL_ZLIB=ON
-DPREFER_EXTERNAL_ZSTD=ON
)
cmake-utils_src_configure
}
|