Page MenuHomeFreeBSD

D13724.id37360.diff
No OneTemporary

D13724.id37360.diff

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,29 @@
+# $FreeBSD$
+
+PORTNAME= llvmcpy
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.1.1
+CATEGORIES= devel python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Python bindings for LLVM auto-generated from the LLVM-C API
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= llvm-config${LLVM_VERSION}:devel/llvm${LLVM_VERSION} \
+ ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${FLAVOR}
+
+USES= python
+USE_GITHUB= yes
+GH_ACCOUNT= revng
+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 <bsd.port.mk>
Index: devel/py-llvmcpy/distinfo
===================================================================
--- /dev/null
+++ devel/py-llvmcpy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1514827842
+SHA256 (revng-llvmcpy-v0.1.1_GH0.tar.gz) = de1eac5ebee89afee53c82a9b67146001a021bf96e326bb69efda06b0bb493a8
+SIZE (revng-llvmcpy-v0.1.1_GH0.tar.gz) = 10040
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

File Metadata

Mime Type
text/plain
Expires
Thu, Jun 18, 8:48 PM (10 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34057079
Default Alt Text
D13724.id37360.diff (2 KB)

Event Timeline