Page MenuHomeFreeBSD

D13724.id37964.diff
No OneTemporary

D13724.id37964.diff

Index: head/devel/Makefile
===================================================================
--- head/devel/Makefile
+++ head/devel/Makefile
@@ -4568,6 +4568,7 @@
SUBDIR += py-libzfs
SUBDIR += py-linecache2
SUBDIR += py-llfuse
+ SUBDIR += py-llvmcpy
SUBDIR += py-llvmlite
SUBDIR += py-lock_file
SUBDIR += py-lockfile
Index: head/devel/py-llvmcpy/Makefile
===================================================================
--- head/devel/py-llvmcpy/Makefile
+++ head/devel/py-llvmcpy/Makefile
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME= llvmcpy
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.1.1-8
+DISTVERSIONSUFFIX= -g6635c3a
+CATEGORIES= devel python
+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_GITHUB= yes
+GH_ACCOUNT= revng
+USE_PYTHON= distutils autoplist
+NO_ARCH= yes
+
+# 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: head/devel/py-llvmcpy/distinfo
===================================================================
--- head/devel/py-llvmcpy/distinfo
+++ head/devel/py-llvmcpy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1515093939
+SHA256 (revng-llvmcpy-v0.1.1-8-g6635c3a_GH0.tar.gz) = ed93211eebcabc6182869a9db756e8730d4f4c27fffc9dca6ab0908ed65fcd74
+SIZE (revng-llvmcpy-v0.1.1-8-g6635c3a_GH0.tar.gz) = 11471
Index: head/devel/py-llvmcpy/pkg-descr
===================================================================
--- head/devel/py-llvmcpy/pkg-descr
+++ head/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, 6:29 PM (9 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34055323
Default Alt Text
D13724.id37964.diff (2 KB)

Event Timeline