aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-09-20 00:56:08 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-09-20 00:59:07 +0000
commit47ff75a1891ec037b1a5502fa8decd602d40a377 (patch)
tree1eddd34213e1045a5f8193f14682db96afbd151c
parente41c3e8b085a85e2b91d8046005b12066b79d8b7 (diff)
downloadports-47ff75a1891ec037b1a5502fa8decd602d40a377.tar.gz
ports-47ff75a1891ec037b1a5502fa8decd602d40a377.zip
devel/py-llvmlite: Update 0.34.0 -> 0.39.1
PR: 266502 Approved by: dave@dal.ca
-rw-r--r--devel/py-llvmlite/Makefile9
-rw-r--r--devel/py-llvmlite/distinfo6
-rw-r--r--devel/py-llvmlite/files/patch-ffi-Makefile.freebsd21
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)