FreeBSD Bugzilla – Attachment 251239 Details for
Bug 279537
[New port] devel/py-isal: Python bindings for the ISA-L library for compression and decompression
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add new devel/py-isal-1.6.1 port (via git am)
0001-devel-py-isal-New-port-Python-bindings-for-the-ISA-L.patch (text/plain), 5.28 KB, created by
Oleg Sidorkin
on 2024-06-05 18:07:50 UTC
(
hide
)
Description:
Patch to add new devel/py-isal-1.6.1 port (via git am)
Filename:
MIME Type:
Creator:
Oleg Sidorkin
Created:
2024-06-05 18:07:50 UTC
Size:
5.28 KB
patch
obsolete
>From 0e5064e0801c7167de0f73589812880cb3425c63 Mon Sep 17 00:00:00 2001 >From: Oleg Sidorkin <osidorkin@gmail.com> >Date: Wed, 5 Jun 2024 10:23:56 +0300 >Subject: [PATCH] devel/py-isal: New port: Python bindings for the ISA-L > library for compression and decompression > >--- > devel/Makefile | 1 + > devel/py-isal/Makefile | 22 +++++++++++++++++++ > devel/py-isal/distinfo | 3 +++ > devel/py-isal/files/patch-setup.py | 21 ++++++++++++++++++ > .../files/patch-src_isal_isa-l_make.inc | 11 ++++++++++ > devel/py-isal/pkg-descr | 20 +++++++++++++++++ > 6 files changed, 78 insertions(+) > create mode 100644 devel/py-isal/Makefile > create mode 100644 devel/py-isal/distinfo > create mode 100644 devel/py-isal/files/patch-setup.py > create mode 100644 devel/py-isal/files/patch-src_isal_isa-l_make.inc > create mode 100644 devel/py-isal/pkg-descr > >diff --git a/devel/Makefile b/devel/Makefile >index 04b646c78173..06d38a9d4626 100644 >--- a/devel/Makefile >+++ b/devel/Makefile >@@ -4934,6 +4934,7 @@ > SUBDIR += py-ipyparallel > SUBDIR += py-ipython_genutils > SUBDIR += py-ipywidgets >+ sUBDIR += py-isal > SUBDIR += py-iso8601 > SUBDIR += py-isodate > SUBDIR += py-isoduration >diff --git a/devel/py-isal/Makefile b/devel/py-isal/Makefile >new file mode 100644 >index 000000000000..6a4b84e9d0dc >--- /dev/null >+++ b/devel/py-isal/Makefile >@@ -0,0 +1,22 @@ >+PORTNAME= isal >+PORTVERSION= 1.6.1 >+CATEGORIES= devel python >+MASTER_SITES= PYPI >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= osidorkin@FreeBSD.org >+COMMENT= Bindings for the ISA-L library for compression and decompression >+WWW= https://github.com/pycompression/python-isal >+ >+LICENSE= PSFL >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+BUILD_DEPENDS= nasm:devel/nasm \ >+ ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} >+LIB_DEPENDS= libisal.so:devel/isa-l >+ >+USES= gmake python:3.9+ >+USE_PYTHON= autoplist pep517 >+ >+.include <bsd.port.mk> >diff --git a/devel/py-isal/distinfo b/devel/py-isal/distinfo >new file mode 100644 >index 000000000000..15262f536558 >--- /dev/null >+++ b/devel/py-isal/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1717569266 >+SHA256 (isal-1.6.1.tar.gz) = 7b64b75d260b544beea3f59cb25a6f520c04768818ef4ac316ee9a1f2ebf18f5 >+SIZE (isal-1.6.1.tar.gz) = 774325 >diff --git a/devel/py-isal/files/patch-setup.py b/devel/py-isal/files/patch-setup.py >new file mode 100644 >index 000000000000..e27947bd3346 >--- /dev/null >+++ b/devel/py-isal/files/patch-setup.py >@@ -0,0 +1,21 @@ >+--- setup.py.orig 2024-03-11 12:49:34 UTC >++++ setup.py >+@@ -21,7 +21,8 @@ SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or >+ ISA_L_SOURCE = os.path.join("src", "isal", "isa-l") >+ >+ SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or >+- sys.platform.startswith("darwin")) >++ sys.platform.startswith("darwin") or >++ sys.platform.startswith("freebsd")) >+ SYSTEM_IS_WINDOWS = sys.platform.startswith("win") >+ >+ # Since pip builds in a temp directory by default, setting a fixed file in >+@@ -113,7 +114,7 @@ def build_isa_l(): >+ cflags_param = "CFLAGS_aarch64" >+ else: >+ cflags_param = "CFLAGS_" >+- subprocess.run(["make", "-j", str(cpu_count), "-f", "Makefile.unx", >++ subprocess.run(["gmake", "-j", str(cpu_count), "-f", "Makefile.unx", >+ "isa-l.h", "bin/isa-l.a", >+ f"{cflags_param}={build_env.get('CFLAGS', '')}"], >+ **run_args) >diff --git a/devel/py-isal/files/patch-src_isal_isa-l_make.inc b/devel/py-isal/files/patch-src_isal_isa-l_make.inc >new file mode 100644 >index 000000000000..50b7602a3082 >--- /dev/null >+++ b/devel/py-isal/files/patch-src_isal_isa-l_make.inc >@@ -0,0 +1,11 @@ >+--- src/isal/isa-l/make.inc.orig 2024-03-11 12:49:36 UTC >++++ src/isal/isa-l/make.inc >+@@ -48,7 +48,7 @@ endif >+ arch = aarch64 >+ endif >+ >+-CC = gcc >++#CC = gcc >+ AS = nasm >+ AWK = awk >+ >diff --git a/devel/py-isal/pkg-descr b/devel/py-isal/pkg-descr >new file mode 100644 >index 000000000000..f7fe975edaf1 >--- /dev/null >+++ b/devel/py-isal/pkg-descr >@@ -0,0 +1,20 @@ >+This package provides Python bindings for the ISA-L library. >+The Intel(R) Intelligent Storage Acceleration Library (ISA-L) implements >+several key algorithms in assembly language. This includes a variety of >+functions to provide zlib/gzip-compatible compression. >+ >+python-isal provides the bindings by offering four modules: >+- isal_zlib: A drop-in replacement for the zlib module that uses ISA-L to >+ accelerate its performance. >+- igzip: A drop-in replacement for the gzip module that uses isal_zlib instead >+ of zlib to perform its compression and checksum tasks, which improves >+ performance. >+- igzip_threaded offers an open function which returns buffered read or write >+ streams that can be used to read and write large files while escaping the GIL >+ using one or multiple threads. This functionality only works for streaming, >+ seeking is not supported. >+- igzip_lib: Provides compression functions which have full access to the API of >+ ISA-L's compression functions. >+ >+isal_zlib and igzip are almost fully compatible with zlib and gzip from the >+Python standard library with some minor differences. >-- >2.45.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279537
:
251232
|
251239
|
251265