Changeset View
Changeset View
Standalone View
Standalone View
lang/pypy/bsd.pypy.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
.if !defined(LICENSE) | .if !defined(LICENSE) | ||||
LICENSE= MIT PSFL | LICENSE= MIT PSFL | ||||
LICENSE_COMB= multi | LICENSE_COMB= multi | ||||
.endif | .endif | ||||
USES+= compiler:c11 | USES+= compiler:c11 | ||||
PYTHON_IMPL?= ${PORTNAME} | PYTHON_IMPL?= ${PORTNAME} | ||||
PYPY_DIR= ${PYTHON_IMPL}-${DISTVERSION:C|([0-9])\.([0-9]+).*|\1.\2|} | PYPY_DIR= ${PYTHON_IMPL}-${DISTVERSION:C|([0-9])\.([0-9]+).*|\1.\2|} | ||||
PLIST_SUB+= PYPY_DIR=${PYPY_DIR} PYPY_CFFI_VER=${PYPY_CFFI_VER} | PLIST_SUB+= PYPY_DIR=${PYPY_DIR} PYPY_CFFI_VER=${PYPY_CFFI_VER} | ||||
.if ${PYTHON_IMPL} == pypy | .if ${PYTHON_IMPL} == pypy | ||||
DISTVERSION= 6.0.0 | DISTVERSION= 6.0.0 | ||||
PORTREVISION= 1 | |||||
PYPY_CFFI_VER= ${PYTHON_IMPL}-41 | PYPY_CFFI_VER= ${PYTHON_IMPL}-41 | ||||
.else # ${PYTHON_IMPL} == pypy3 | .else # ${PYTHON_IMPL} == pypy3 | ||||
DISTVERSION= 6.0.0 | DISTVERSION= 6.0.0 | ||||
PORTREVISION= 1 | |||||
PYPY_CFFI_VER= ${PYTHON_IMPL}-${DISTVERSION:S|.||:C|\..*||}-${OPSYS:tl}${OSREL:C|\..*||} | PYPY_CFFI_VER= ${PYTHON_IMPL}-${DISTVERSION:S|.||:C|\..*||}-${OPSYS:tl}${OSREL:C|\..*||} | ||||
.endif | .endif | ||||
dbn: Since `PORTREVISION` and `DISTVERSION` are the same for both instances of pypy maybe move them… | |||||
Not Done Inline ActionsTrue. However since they always release two different tarballs for pypy and pypy3, there is always a chance that they have different versions. And what if we need bump PORTREVISION for one package, but not for another? farrokhi: True. However since they always release two different tarballs for pypy and pypy3, there is… |
Since PORTREVISION and DISTVERSION are the same for both instances of pypy maybe move them outside the block (or maybe just DISTVERSION?