Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2018 10:37:33 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459030 - in head/devel: . py-llvmcpy
Message-ID:  <201801151037.w0FAbXVb088695@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Jan 15 10:37:33 2018
New Revision: 459030
URL: https://svnweb.freebsd.org/changeset/ports/459030

Log:
  New port: devel/py-llvmcpy: Python bindings for LLVM auto-generated from the LLVM-C API
  
  This module allows you to use llvm from Python.
  You can use most modern llvm versions, selecting them during runtime.
  It uses py-cffi to generate ELF binaries during runtime.
  
  Submitted by:	myself
  Approved by:	tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D13724

Added:
  head/devel/py-llvmcpy/
  head/devel/py-llvmcpy/Makefile   (contents, props changed)
  head/devel/py-llvmcpy/distinfo   (contents, props changed)
  head/devel/py-llvmcpy/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Jan 15 10:20:22 2018	(r459029)
+++ head/devel/Makefile	Mon Jan 15 10:37:33 2018	(r459030)
@@ -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

Added: head/devel/py-llvmcpy/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-llvmcpy/Makefile	Mon Jan 15 10:37:33 2018	(r459030)
@@ -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>

Added: head/devel/py-llvmcpy/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-llvmcpy/distinfo	Mon Jan 15 10:37:33 2018	(r459030)
@@ -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

Added: head/devel/py-llvmcpy/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-llvmcpy/pkg-descr	Mon Jan 15 10:37:33 2018	(r459030)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801151037.w0FAbXVb088695>