View | Details | Raw Unified | Return to bug 279537 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/Makefile (+1 lines)
Lines 4934-4939 Link Here
4934
    SUBDIR += py-ipyparallel
4934
    SUBDIR += py-ipyparallel
4935
    SUBDIR += py-ipython_genutils
4935
    SUBDIR += py-ipython_genutils
4936
    SUBDIR += py-ipywidgets
4936
    SUBDIR += py-ipywidgets
4937
    SUBDIR += py-isal
4937
    SUBDIR += py-iso8601
4938
    SUBDIR += py-iso8601
4938
    SUBDIR += py-isodate
4939
    SUBDIR += py-isodate
4939
    SUBDIR += py-isoduration
4940
    SUBDIR += py-isoduration
(-)b/devel/py-isal/Makefile (+22 lines)
Added Link Here
1
PORTNAME=	isal
2
PORTVERSION=	1.6.1
3
CATEGORIES=	devel python
4
MASTER_SITES=	PYPI
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
7
MAINTAINER=	osidorkin@FreeBSD.org
8
COMMENT=	Bindings for the ISA-L library for compression and decompression
9
WWW=		https://github.com/pycompression/python-isal
10
11
LICENSE=	PSFL
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
BUILD_DEPENDS=	nasm:devel/nasm \
15
		${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
17
LIB_DEPENDS=	libisal.so:devel/isa-l
18
19
USES=		gmake python:3.9+
20
USE_PYTHON=	autoplist pep517
21
22
.include <bsd.port.mk>
(-)b/devel/py-isal/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1717569266
2
SHA256 (isal-1.6.1.tar.gz) = 7b64b75d260b544beea3f59cb25a6f520c04768818ef4ac316ee9a1f2ebf18f5
3
SIZE (isal-1.6.1.tar.gz) = 774325
(-)b/devel/py-isal/files/patch-setup.py (+21 lines)
Added Link Here
1
--- setup.py.orig	2024-03-11 12:49:34 UTC
2
+++ setup.py
3
@@ -21,7 +21,8 @@ SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or
4
 ISA_L_SOURCE = os.path.join("src", "isal", "isa-l")
5
 
6
 SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or
7
-                  sys.platform.startswith("darwin"))
8
+                  sys.platform.startswith("darwin") or
9
+                  sys.platform.startswith("freebsd"))
10
 SYSTEM_IS_WINDOWS = sys.platform.startswith("win")
11
 
12
 # Since pip builds in a temp directory by default, setting a fixed file in
13
@@ -113,7 +114,7 @@ def build_isa_l():
14
             cflags_param = "CFLAGS_aarch64"
15
         else:
16
             cflags_param = "CFLAGS_"
17
-        subprocess.run(["make", "-j", str(cpu_count), "-f", "Makefile.unx",
18
+        subprocess.run(["gmake", "-j", str(cpu_count), "-f", "Makefile.unx",
19
                         "isa-l.h", "bin/isa-l.a",
20
                         f"{cflags_param}={build_env.get('CFLAGS', '')}"],
21
                        **run_args)
(-)b/devel/py-isal/files/patch-src_isal_isa-l_make.inc (+11 lines)
Added Link Here
1
--- src/isal/isa-l/make.inc.orig	2024-03-11 12:49:36 UTC
2
+++ src/isal/isa-l/make.inc
3
@@ -48,7 +48,7 @@ endif
4
   arch = aarch64
5
 endif
6
 
7
-CC  = gcc
8
+#CC  = gcc
9
 AS  = nasm
10
 AWK = awk
11
 
(-)b/devel/py-isal/pkg-descr (-1 / +20 lines)
Added Link Here
0
- 
1
This package provides Python bindings for the ISA-L library.
2
The Intel(R) Intelligent Storage Acceleration Library (ISA-L) implements
3
several key algorithms in assembly language. This includes a variety of
4
functions to provide zlib/gzip-compatible compression.
5
6
python-isal provides the bindings by offering four modules:
7
- isal_zlib: A drop-in replacement for the zlib module that uses ISA-L to
8
  accelerate its performance.
9
- igzip: A drop-in replacement for the gzip module that uses isal_zlib instead
10
  of zlib to perform its compression and checksum tasks, which improves
11
  performance.
12
- igzip_threaded offers an open function which returns buffered read or write
13
  streams that can be used to read and write large files while escaping the GIL
14
  using one or multiple threads. This functionality only works for streaming,
15
  seeking is not supported.
16
- igzip_lib: Provides compression functions which have full access to the API of
17
  ISA-L's compression functions.
18
19
isal_zlib and igzip are almost fully compatible with zlib and gzip from the
20
Python standard library with some minor differences.

Return to bug 279537