aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authordbn <dbn@FreeBSD.org>2016-03-14 12:04:51 +0800
committerdbn <dbn@FreeBSD.org>2016-03-14 12:04:51 +0800
commit9ce6bde28eb044dc3c20f17accd6e056cb449c9a (patch)
tree46c037814f27f371e73eeccc1a3ab371cdfccf83 /lang
parent30c025e592208f479a50d25a1bc679d7191e14e5 (diff)
downloadfreebsd-ports-gnome-9ce6bde28eb044dc3c20f17accd6e056cb449c9a.tar.gz
freebsd-ports-gnome-9ce6bde28eb044dc3c20f17accd6e056cb449c9a.tar.zst
freebsd-ports-gnome-9ce6bde28eb044dc3c20f17accd6e056cb449c9a.zip
lang/pypy: unbreak build when pypy isn't installed.
When pypy isn't installed then the port needs to use python to translate pypy, however all options are not specified since two of the three (the pypy related options) are not valid. Overcome this by a bit of re-ordering and abusing OPTIONS_SLAVE in the later case. Reported by: Andrzej Tobola <ato@iem.pw.edu.pl>
Diffstat (limited to 'lang')
-rw-r--r--lang/pypy/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/lang/pypy/Makefile b/lang/pypy/Makefile
index 66aa63794861..fbae428c49bb 100644
--- a/lang/pypy/Makefile
+++ b/lang/pypy/Makefile
@@ -19,15 +19,18 @@ TEST_DEPENDS= ${PREFIX}/${PYPY_DIR}/lib_pypy/_gdbm_cffi.pypy-${PYPY_CFFI_VER}.so
ONLY_FOR_ARCHS= i386 amd64 armv6 powerpc64
ONLY_FOR_ARCHS_REASON= PyPy JIT only supported on these architectures
+OPTIONS_SINGLE= TRANS
+OPTIONS_SINGLE_TRANS= PYTHON
PYTHON_DESC= Use Python-2.7 to translate (slowest)
PYPY_DESC= Use PyPy to translate (fastest, highest memory usage)
PYPY_MINMEM_DESC= Use PyPy to translate (lowest memory usage)
TRANS_DESC= Translation method
LOCALBASE?= /usr/local
.if exists(${LOCALBASE}/bin/pypy)
-OPTIONS_SINGLE= TRANS
-OPTIONS_SINGLE_TRANS= PYTHON PYPY PYPY_MINMEM
-OPTIONS_DEFAULT+= PYPY_MINMEM
+OPTIONS_DEFAULT= PYPY_MINMEM
+OPTIONS_SINGLE_TRANS+= PYPY PYPY_MINMEM
+.else
+OPTIONS_SLAVE= PYTHON
.endif
CONFLICTS_INSTALL= pypy3-[0-9]*