aboutsummaryrefslogtreecommitdiff
path: root/security/py-RestrictedPython
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2011-10-11 07:09:36 +0000
committerWen Heping <wen@FreeBSD.org>2011-10-11 07:09:36 +0000
commit23e3e827c99394b0d0dd6ce868d6f0537f0688ae (patch)
treea85a592c61c209f71276f9c24e2eb2bda2ca78ab /security/py-RestrictedPython
parentb29b600c0b8f2445a5ad410b990e8d88f807f957 (diff)
downloadports-23e3e827c99394b0d0dd6ce868d6f0537f0688ae.tar.gz
ports-23e3e827c99394b0d0dd6ce868d6f0537f0688ae.zip
Notes
Diffstat (limited to 'security/py-RestrictedPython')
-rw-r--r--security/py-RestrictedPython/Makefile13
-rw-r--r--security/py-RestrictedPython/pkg-plist8
2 files changed, 15 insertions, 6 deletions
diff --git a/security/py-RestrictedPython/Makefile b/security/py-RestrictedPython/Makefile
index e189d393e0f6..afa0b62a9c1f 100644
--- a/security/py-RestrictedPython/Makefile
+++ b/security/py-RestrictedPython/Makefile
@@ -7,6 +7,7 @@
PORTNAME= RestrictedPython
PORTVERSION= 3.6.0
+PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,8 +18,16 @@ COMMENT= Restricted execution environment for Python
LICENSE= ZPL21
-USE_PYTHON= yes
+USE_PYTHON= 2.6-2.7
USE_PYDISTUTILS=easy_install
USE_ZIP= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 270
+PLIST_SUB+= PYTHON27=""
+.else
+PLIST_SUB+= PYTHON27="@comment "
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/py-RestrictedPython/pkg-plist b/security/py-RestrictedPython/pkg-plist
index 0713359aeb4c..91077e01ed7f 100644
--- a/security/py-RestrictedPython/pkg-plist
+++ b/security/py-RestrictedPython/pkg-plist
@@ -52,8 +52,8 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/before_and_after26.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/before_and_after26.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/before_and_after27.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/before_and_after27.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/before_and_after27.pyo
+%%PYTHON27%%%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/before_and_after27.pyc
+%%PYTHON27%%%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/before_and_after27.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/class.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/class.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/class.pyo
@@ -70,8 +70,8 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/security_in_syntax26.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/security_in_syntax26.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/security_in_syntax27.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/security_in_syntax27.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/security_in_syntax27.pyo
+%%PYTHON27%%%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/security_in_syntax27.pyc
+%%PYTHON27%%%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/security_in_syntax27.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/testCompile.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/testCompile.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/RestrictedPython/tests/testCompile.pyo