Changeset View
Changeset View
Standalone View
Standalone View
devel/py-llvmcpy/Makefile
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $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 <bsd.port.mk> | |||||
tcberner: Did you see:
```
llvmcpy/llvm.py:llvm_config = env("LLVM_CONFIG","llvm-config39")
```
so, how… | |||||
Done Inline Actionsah, is this during run, not build time... tcberner: ah, is this during run, not build time... | |||||
Done Inline ActionsYes, this is a runtime environment variable, not the build time. This package doesn't touch llvm during build. yuri: Yes, this is a runtime environment variable, not the build time.
So it wouldn't work.
This… |
Did you see:
so, how about something like
instead of this ugly sed?