Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2026 13:02:59 +0000
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 74a30c4d5357 - main - devel/py-llvmlite: Improve port
Message-ID:  <69b40b03.24dac.670ad195@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by makc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=74a30c4d5357d931d0af9e7dfd2316e4771d3fd2

commit 74a30c4d5357d931d0af9e7dfd2316e4771d3fd2
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2026-03-13 13:02:32 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2026-03-13 13:02:32 +0000

    devel/py-llvmlite: Improve port
    
    - Switch to pep517
    - Add patch to fix build with setuptools>=81
    
    PR:     270358
---
 devel/py-llvmlite/Makefile                       |  6 ++++--
 devel/py-llvmlite/files/patch-ffi_CMakeLists.txt |  2 +-
 devel/py-llvmlite/files/patch-setup.py           | 11 +++++++++++
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/devel/py-llvmlite/Makefile b/devel/py-llvmlite/Makefile
index 14bc4cf3525a..db49c24c611b 100644
--- a/devel/py-llvmlite/Makefile
+++ b/devel/py-llvmlite/Makefile
@@ -11,11 +11,13 @@ WWW=		https://github.com/numba/llvmlite
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	gmake:devel/gmake
+BUILD_DEPENDS=	gmake:devel/gmake \
+		${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 
 # llvm compatibility table https://github.com/numba/llvmlite#compatibility
 USES=		cmake:indirect fortran llvm:20,lib python
-USE_PYTHON=	distutils autoplist pytest # many tests fail, see https://github.com/numba/llvmlite/issues/1015
+USE_PYTHON=	autoplist pep517 pytest # many tests fail, see https://github.com/numba/llvmlite/issues/1015
 
 MAKE_ENV=	LLVM_CONFIG=${LLVM_CONFIG} \
 		LLVMLITE_SHARED=ON \
diff --git a/devel/py-llvmlite/files/patch-ffi_CMakeLists.txt b/devel/py-llvmlite/files/patch-ffi_CMakeLists.txt
index c3d7c41dc685..f3f27629d8bb 100644
--- a/devel/py-llvmlite/files/patch-ffi_CMakeLists.txt
+++ b/devel/py-llvmlite/files/patch-ffi_CMakeLists.txt
@@ -5,7 +5,7 @@
  set(CMAKE_C_VISIBILITY_PRESET "hidden")
  
 -find_package(LLVM REQUIRED CONFIG)
-+find_package(LLVM REQUIRED CONFIG HINTS %%LLVM_PREFIX%%)
++find_package(LLVM REQUIRED CONFIG HINTS /usr/local/llvm20)
  
  message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
  message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
diff --git a/devel/py-llvmlite/files/patch-setup.py b/devel/py-llvmlite/files/patch-setup.py
new file mode 100644
index 000000000000..bccf6e0a5989
--- /dev/null
+++ b/devel/py-llvmlite/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2026-03-13 12:44:44 UTC
++++ setup.py
+@@ -64,7 +64,7 @@ def build_library_files(dry_run):
+     plt = sys.platform
+     if 'linux' in plt or 'bsd' in plt or 'darwin' in plt or 'gnu' in plt:
+         os.environ['CXXFLAGS'] = os.environ.get('CXXFLAGS', '') + ' -fPIC'
+-    spawn(cmd, dry_run=dry_run)
++    spawn(cmd)
+ 
+ 
+ class LlvmliteBuild(build):


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69b40b03.24dac.670ad195>