blob: 793f5856db3f9f44b4621468cfa08b764779d0f5 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Intelligent Storage Acceleration Library"
HOMEPAGE="https://github.com/intel/isa-l"
SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
IUSE="cpu_flags_x86_avx512f"
# AVX512 support in yasm is still work in progress
BDEPEND="amd64? (
cpu_flags_x86_avx512f? ( >=dev-lang/nasm-2.13 )
!cpu_flags_x86_avx512f? ( || (
>=dev-lang/nasm-2.11.01
>=dev-lang/yasm-1.2.0
) )
)"
PATCHES=(
"${FILESDIR}"/${PN}-2.30.0_makefile-no-D.patch
)
src_prepare() {
default
# isa-l does not support arbitrary assemblers on amd64 (and presumably x86),
# it must be either nasm or yasm.
use amd64 && unset AS
eautoreconf
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
|