git: 47ff75a1891e - main - devel/py-llvmlite: Update 0.34.0 -> 0.39.1

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 20 Sep 2022 00:59:11 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=47ff75a1891ec037b1a5502fa8decd602d40a377

commit 47ff75a1891ec037b1a5502fa8decd602d40a377
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-09-20 00:56:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-09-20 00:59:07 +0000

    devel/py-llvmlite: Update 0.34.0 -> 0.39.1
    
    PR:             266502
    Approved by:    dave@dal.ca
---
 devel/py-llvmlite/Makefile                         |  9 ++++++---
 devel/py-llvmlite/distinfo                         |  6 +++---
 devel/py-llvmlite/files/patch-ffi-Makefile.freebsd | 21 ++++++++++++++++-----
 3 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/devel/py-llvmlite/Makefile b/devel/py-llvmlite/Makefile
index 9ce80671b554..f1c37417fa90 100644
--- a/devel/py-llvmlite/Makefile
+++ b/devel/py-llvmlite/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	llvmlite
-DISTVERSION=	0.34.0
+DISTVERSION=	0.39.1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,12 +15,15 @@ BUILD_DEPENDS=	llvm-config${LLVM_VER}:devel/llvm${LLVM_VER}
 RUN_DEPENDS=	llvm-config${LLVM_VER}:devel/llvm${LLVM_VER}
 
 USES=		compiler:c++11-lib python:3.6+ fortran
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	distutils autoplist pytest
+
 CXXFLAGS=	-fPIC
 
 MAKE_ENV=	LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_VER}
 
-LLVM_VER=	${LLVM_DEFAULT}
+LLVM_VER=	11 # see the compatibility table https://github.com/numba/llvmlite#compatibility
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/llvmlite/binding/libllvmlite*.so
diff --git a/devel/py-llvmlite/distinfo b/devel/py-llvmlite/distinfo
index af974dba6630..2e0a97a64487 100644
--- a/devel/py-llvmlite/distinfo
+++ b/devel/py-llvmlite/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1604792195
-SHA256 (llvmlite-0.34.0.tar.gz) = f03ee0d19bca8f2fe922bb424a909d05c28411983b0c2bc58b020032a0d11f63
-SIZE (llvmlite-0.34.0.tar.gz) = 107740
+TIMESTAMP = 1663429323
+SHA256 (llvmlite-0.39.1.tar.gz) = b43abd7c82e805261c425d50335be9a6c4f84264e34d6d6e475207300005d572
+SIZE (llvmlite-0.39.1.tar.gz) = 132819
diff --git a/devel/py-llvmlite/files/patch-ffi-Makefile.freebsd b/devel/py-llvmlite/files/patch-ffi-Makefile.freebsd
index 569c99386512..abd443e4a286 100644
--- a/devel/py-llvmlite/files/patch-ffi-Makefile.freebsd
+++ b/devel/py-llvmlite/files/patch-ffi-Makefile.freebsd
@@ -1,13 +1,24 @@
---- ffi/Makefile.freebsd.orig	2020-01-03 17:02:39 UTC
+--- ffi/Makefile.freebsd.orig	2022-09-01 13:47:22 UTC
 +++ ffi/Makefile.freebsd
-@@ -1,7 +1,7 @@
+@@ -1,17 +1,17 @@
  
 -CXX = clang++ -std=c++11 -stdlib=libc++
--CXXFLAGS = $(LLVM_CXXFLAGS)
--LDFLAGS = $(LLVM_LDFLAGS)
-+CXX ?= clang++
++CXX ?= clang++ -std=c++11 -stdlib=libc++
+ 
+ # -flto and --exclude-libs allow us to remove those parts of LLVM we don't use
+ CXX_FLTO_FLAGS ?= -flto
+ LD_FLTO_FLAGS ?= -flto -Wl,--exclude-libs=ALL
+ 
+-CXXFLAGS := $(CPPFLAGS) $(CXXFLAGS) $(LLVM_CXXFLAGS) $(CXX_FLTO_FLAGS)
+-LDFLAGS := $(LDFLAGS) $(LLVM_LDFLAGS) $(LD_FLTO_FLAGS)
 +CXXFLAGS := $(CPPFLAGS) $(CXXFLAGS) $(LLVM_CXXFLAGS)
 +LDFLAGS := $(LDFLAGS) $(LLVM_LDFLAGS)
  LIBS = $(LLVM_LIBS)
  INCLUDE = core.h
  SRC = assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp \
+ 	executionengine.cpp transforms.cpp passmanagers.cpp targets.cpp dylib.cpp \
+-	linker.cpp object_file.cpp
++	linker.cpp object_file.cpp custom_passes.cpp
+ OUTPUT = libllvmlite.so
+ 
+ all: $(OUTPUT)