commit:     ed0b08e35f37cd3e3ea427e2850617c05353d78e
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 17 18:07:05 2021 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Dec 17 18:11:33 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed0b08e3

dev-libs/isa-l: initial import

Required by erasure-coding features of net-libs/xrootd - or rather WILL
BE required, as at the moment the latter seems to have no option to use
a system-installed version.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 dev-libs/isa-l/Manifest                            |  1 +
 .../isa-l/files/isa-l-2.30.0_makefile-no-D.patch   | 16 +++++++++++
 dev-libs/isa-l/isa-l-2.30.0.ebuild                 | 33 ++++++++++++++++++++++
 dev-libs/isa-l/metadata.xml                        | 21 ++++++++++++++
 4 files changed, 71 insertions(+)

diff --git a/dev-libs/isa-l/Manifest b/dev-libs/isa-l/Manifest
new file mode 100644
index 000000000000..6f03ccf55882
--- /dev/null
+++ b/dev-libs/isa-l/Manifest
@@ -0,0 +1 @@
+DIST isa-l-2.30.0.tar.gz 649389 BLAKE2B 
3364733d61ce16c91891b6da63d2b4fb2bc004761c91f2076a9a6441adaea24af43b6d32caec011c06206e3811e8c9639f8ceaac89fe97800144c7f78c80c350
 SHA512 
d3ecfb7326097534b06a74b584100336509525ae7cadc6112d0c27e3d8704f3810e18f583d3cc33fa266bfec96db023607622b22ddbf17988ec4bf1bb3b3b9b2

diff --git a/dev-libs/isa-l/files/isa-l-2.30.0_makefile-no-D.patch 
b/dev-libs/isa-l/files/isa-l-2.30.0_makefile-no-D.patch
new file mode 100644
index 000000000000..98c37f3cc42f
--- /dev/null
+++ b/dev-libs/isa-l/files/isa-l-2.30.0_makefile-no-D.patch
@@ -0,0 +1,16 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -142,11 +142,11 @@
+ EXTRA_DIST += tools/yasm-filter.sh tools/nasm-filter.sh
+ EXTRA_DIST += tools/yasm-cet-filter.sh tools/nasm-cet-filter.sh
+ 
+-AM_CFLAGS = ${my_CFLAGS} ${INCLUDE} $(src_include) ${D}
++AM_CFLAGS = ${my_CFLAGS} ${INCLUDE} $(src_include) ${DIST_D}
+ if CPU_AARCH64
+ AM_CCASFLAGS = ${AM_CFLAGS}
+ else
+-AM_CCASFLAGS = ${yasm_args} ${INCLUDE} ${src_include} ${DEFS} ${D}
++AM_CCASFLAGS = ${yasm_args} ${INCLUDE} ${src_include} ${DEFS} ${DIST_D}
+ endif
+ 
+ .asm.s:

diff --git a/dev-libs/isa-l/isa-l-2.30.0.ebuild 
b/dev-libs/isa-l/isa-l-2.30.0.ebuild
new file mode 100644
index 000000000000..641f57997e4b
--- /dev/null
+++ b/dev-libs/isa-l/isa-l-2.30.0.ebuild
@@ -0,0 +1,33 @@
+# 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"
+
+#DEPEND=""
+#RDEPEND=""
+# TODO: yasm version to support avx512?
+BDEPEND="amd64? ( >=dev-lang/nasm-2.15 )"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.30.0_makefile-no-D.patch
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -delete || die
+}

diff --git a/dev-libs/isa-l/metadata.xml b/dev-libs/isa-l/metadata.xml
new file mode 100644
index 000000000000..79b2a15f343d
--- /dev/null
+++ b/dev-libs/isa-l/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>mare...@gentoo.org</email>
+               <name>Marek Szuba</name>
+       </maintainer>
+       <longdescription>
+       ISA-L is a collection of optimized low-level functions targeting 
storage applications. ISA-L includes:
+       * Erasure codes - Fast block Reed-Solomon type erasure codes for any 
encode/decode matrix in GF(2^8).
+       * CRC - Fast implementations of cyclic redundancy check. Six different 
polynomials supported.
+               * iscsi32, ieee32, t10dif, ecma64, iso64, jones64.
+       * Raid - calculate and operate on XOR and P+Q parity found in common 
RAID implementations.
+       * Compression - Fast deflate-compatible data compression.
+       * De-compression - Fast inflate-compatible data compression.
+       * igzip - A command line application like gzip, accelerated with ISA-L.
+       </longdescription>
+       <upstream>
+               <remote-id type="github">intel/isa-l</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to