Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -4566,6 +4566,7 @@ SUBDIR += py-libzfs SUBDIR += py-linecache2 SUBDIR += py-llfuse + SUBDIR += py-llvmcpy SUBDIR += py-llvmlite SUBDIR += py-lock_file SUBDIR += py-lockfile Index: devel/py-llvmcpy/Makefile =================================================================== --- /dev/null +++ devel/py-llvmcpy/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= llvmcpy +DISTVERSION= 0.1.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python bindings for LLVM auto-generated from the LLVM-C API + +LICENSE= MIT + +RUN_DEPENDS= llvm-config${LLVM_VERSION}:devel/llvm${LLVM_VERSION} \ + ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist + +# LLVM_CONFIG environment variable overrides this: ex. LLVM_CONFIG=llvm-config40 changes to llvm40 +LLVM_VERSION= 39 # README says: It has been tested with LLVM 3.4, 3.8 and 3.9 + +post-patch: + @${REINPLACE_CMD} -e 's|"llvm-config"|"llvm-config${LLVM_VERSION}"|' ${WRKSRC}/llvmcpy/llvm.py + +.include Index: devel/py-llvmcpy/distinfo =================================================================== --- /dev/null +++ devel/py-llvmcpy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1514829669 +SHA256 (llvmcpy-0.1.1.tar.gz) = 593d79701fc85761e2cb186c450da9884f6c54b0ee896a3e8defd92b05810b4c +SIZE (llvmcpy-0.1.1.tar.gz) = 10195 Index: devel/py-llvmcpy/pkg-descr =================================================================== --- /dev/null +++ devel/py-llvmcpy/pkg-descr @@ -0,0 +1,7 @@ +The main goal of llvmcpy is to provide Python bindings for the LLVM project +that are fast and require the lowest possible maintainance effort. To achive +this, we use CFFI to parse the (slightly adapted) header files for the LLVM-C +API and automatically generate a set of classes and functions to interact with +them in a Pythonic way. + +WWW: https://github.com/revng/llvmcpy