From 03c7155befcb7bb7cc0b3276abad3c5a81d7ba12 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Fri, 17 Dec 2021 23:15:35 +0000 Subject: dev-libs/isa-l: add cpu_flags_x86_avx512f support For the time being users wishing for isa-l to take advantage of this instruction set must build it using nasm; everyone else can choose between nasm and yasm. Signed-off-by: Marek Szuba --- dev-libs/isa-l/isa-l-2.30.0-r1.ebuild | 43 +++++++++++++++++++++++++++++++++++ dev-libs/isa-l/isa-l-2.30.0.ebuild | 40 -------------------------------- 2 files changed, 43 insertions(+), 40 deletions(-) create mode 100644 dev-libs/isa-l/isa-l-2.30.0-r1.ebuild delete mode 100644 dev-libs/isa-l/isa-l-2.30.0.ebuild (limited to 'dev-libs/isa-l') diff --git a/dev-libs/isa-l/isa-l-2.30.0-r1.ebuild b/dev-libs/isa-l/isa-l-2.30.0-r1.ebuild new file mode 100644 index 000000000000..1bd7d4afdd80 --- /dev/null +++ b/dev-libs/isa-l/isa-l-2.30.0-r1.ebuild @@ -0,0 +1,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" +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 +} diff --git a/dev-libs/isa-l/isa-l-2.30.0.ebuild b/dev-libs/isa-l/isa-l-2.30.0.ebuild deleted file mode 100644 index 1cb5aeb2a2c7..000000000000 --- a/dev-libs/isa-l/isa-l-2.30.0.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# 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" - -BDEPEND="amd64? ( - || ( - >=dev-lang/nasm-2.13 - >=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 -} -- cgit v1.2.3-65-gdbad