aboutsummaryrefslogtreecommitdiff
path: root/lang/pypy/bsd.pypy.mk
diff options
context:
space:
mode:
authorDavid Naylor <dbn@FreeBSD.org>2017-05-04 19:08:36 +0000
committerDavid Naylor <dbn@FreeBSD.org>2017-05-04 19:08:36 +0000
commit40ddb37186425dbae1cfae1f0ace7e1aac087917 (patch)
tree9571c0843771b09f0b1af1fc49f917ca23fa92b2 /lang/pypy/bsd.pypy.mk
parent5bca99676692c1ecd822fded23452a01ce72b501 (diff)
downloadports-40ddb37186425dbae1cfae1f0ace7e1aac087917.tar.gz
ports-40ddb37186425dbae1cfae1f0ace7e1aac087917.zip
bsd.pypy.cffi.mk: unbreak building of cffi ports
To fix conflicting of pypy and pypy3 the PYPY_DIR value was set using ${PORTNAME}, however the same codepath is used for cffi ports who's ${PORTNAME} is not pypy or pypy3. Fix this by using an intermediate PYTHON_IMPL variable that is conditionally set to ${PORTNAME} and explicitly set to 'pypy' for cffi ports. Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=440114
Diffstat (limited to 'lang/pypy/bsd.pypy.mk')
-rw-r--r--lang/pypy/bsd.pypy.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/pypy/bsd.pypy.mk b/lang/pypy/bsd.pypy.mk
index e4b67bf11306..6ea33636c9cf 100644
--- a/lang/pypy/bsd.pypy.mk
+++ b/lang/pypy/bsd.pypy.mk
@@ -7,6 +7,7 @@ LICENSE_COMB= multi
USES+= compiler:c11
-PYPY_DIR= ${PORTNAME}-${PORTVERSION:C|([0-9])\.([0-9]).*|\1.\2|}
+PYTHON_IMPL?= ${PORTNAME}
+PYPY_DIR= ${PYTHON_IMPL}-${PORTVERSION:C|([0-9])\.([0-9]).*|\1.\2|}
PYPY_CFFI_VER?= pypy-41
PLIST_SUB+= PYPY_DIR=${PYPY_DIR} PYPY_CFFI_VER=${PYPY_CFFI_VER}