From 35d965949e495ca74e36a4c40e7e9056f0f87aef Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Wed, 3 Jan 2001 13:56:52 +0000 Subject: [PATCH] Add py-mxProxy 0.2.0, python module that provides a generic proxy wrapper type. PR: 22542 Submitted by: Johann Visagie --- devel/Makefile | 1 + devel/py-mxProxy/Makefile | 54 ++++++++++++++++++++++++++++++++++++ devel/py-mxProxy/distinfo | 1 + devel/py-mxProxy/pkg-comment | 1 + devel/py-mxProxy/pkg-descr | 13 +++++++++ devel/py-mxProxy/pkg-plist | 16 +++++++++++ 6 files changed, 86 insertions(+) create mode 100644 devel/py-mxProxy/Makefile create mode 100644 devel/py-mxProxy/distinfo create mode 100644 devel/py-mxProxy/pkg-comment create mode 100644 devel/py-mxProxy/pkg-descr create mode 100644 devel/py-mxProxy/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 65d9edd730f6..c51ad64ec54b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -300,6 +300,7 @@ SUBDIR += py-kjbuckets SUBDIR += py-kqueue SUBDIR += py-mxDateTime + SUBDIR += py-mxProxy SUBDIR += py-mxStack SUBDIR += py-mxTools SUBDIR += qtarch diff --git a/devel/py-mxProxy/Makefile b/devel/py-mxProxy/Makefile new file mode 100644 index 000000000000..99756c5f1efd --- /dev/null +++ b/devel/py-mxProxy/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: py-mxProxy +# Date created: 2 November 2000 +# Whom: Johann Visagie +# +# $FreeBSD$ +# + +PORTNAME= mxProxy +PORTVERSION= 0.2.0 +CATEGORIES= devel python +MASTER_SITES= http://www.lemburg.com/files/python/ +PKGNAMEPREFIX= py- + +MAINTAINER= johann@egenetics.com + +USE_PYTHON= yes +USE_ZIP= yes +EXTRACT_BEFORE_ARGS= -aq +WRKSRC= ${WRKDIR}/${PORTNAME:S/^mx//} +CONFIGURE_WRKSRC= ${WRKSRC}/${PORTNAME} +BUILD_WRKSRC= ${CONFIGURE_WRKSRC} +CONFIGURE_ENV+= PYTHON=${PYTHON_CMD} +ALL_TARGET= sharedmods + +MODULEDIR= ${PYTHON_SITELIBDIR}/${PORTNAME:S/^mx//} +BINMODDIR= ${MODULEDIR}/${PORTNAME} +DOCDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +EXAMPLEDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} + +post-extract: + @ ${CP} ${PYTHON_LIBDIR}/config/Makefile.pre.in ${CONFIGURE_WRKSRC} + +do-configure: + @ (cd ${CONFIGURE_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${MAKE} -f \ + Makefile.pre.in boot) + +do-install: + @ ${MKDIR} ${MODULEDIR} + @ ${MKDIR} ${BINMODDIR} + @ ${INSTALL_DATA} ${WRKSRC}/*.py ${MODULEDIR} +.for file in __init__.py ${PORTNAME}.so + @ ${INSTALL_DATA} ${BUILD_WRKSRC}/${file} ${BINMODDIR} +.endfor + @ strip ${BINMODDIR}/*.so + @ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${MODULEDIR} + @ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${MODULEDIR} + @ ${MKDIR} ${EXAMPLEDIR} + @ ${INSTALL_DATA} ${WRKSRC}/Examples/* ${EXAMPLEDIR} +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${DOCDIR} + @ ${INSTALL_DATA} ${WRKSRC}/Doc/* ${DOCDIR} +.endif + +.include diff --git a/devel/py-mxProxy/distinfo b/devel/py-mxProxy/distinfo new file mode 100644 index 000000000000..c77f5ab8d43f --- /dev/null +++ b/devel/py-mxProxy/distinfo @@ -0,0 +1 @@ +MD5 (mxProxy-0.2.0.zip) = 88fb44f55d77728062aef6ec2fc73469 diff --git a/devel/py-mxProxy/pkg-comment b/devel/py-mxProxy/pkg-comment new file mode 100644 index 000000000000..798a7fece9ec --- /dev/null +++ b/devel/py-mxProxy/pkg-comment @@ -0,0 +1 @@ +Python module that provides a generic proxy wrapper type diff --git a/devel/py-mxProxy/pkg-descr b/devel/py-mxProxy/pkg-descr new file mode 100644 index 000000000000..acfb15e0b889 --- /dev/null +++ b/devel/py-mxProxy/pkg-descr @@ -0,0 +1,13 @@ +mxProxy is a Python extension package which provides a new type that can be +used to implement Bastion-like features without the need to use restricted +execution environments. + +The type's main features are secure data encapsulation (the hidden objects +are not accessible from Python since they are stored in internal C +structures), customizable attribute lookup methods and a cleanup protocol +that helps in breaking circular references prior to object deletion. + +Author: Marc-Andre Lemburg +WWW: http://starship.python.net/~lemburg/mxProxy.html + +-- Johann Visagie diff --git a/devel/py-mxProxy/pkg-plist b/devel/py-mxProxy/pkg-plist new file mode 100644 index 000000000000..14b2fd4fc0c6 --- /dev/null +++ b/devel/py-mxProxy/pkg-plist @@ -0,0 +1,16 @@ +lib/%%PYTHON_VERSION%%/site-packages/Proxy/Proxy.py +lib/%%PYTHON_VERSION%%/site-packages/Proxy/Proxy.pyc +lib/%%PYTHON_VERSION%%/site-packages/Proxy/Proxy.pyo +lib/%%PYTHON_VERSION%%/site-packages/Proxy/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/Proxy/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/Proxy/__init__.pyo +lib/%%PYTHON_VERSION%%/site-packages/Proxy/mxProxy/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/Proxy/mxProxy/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/Proxy/mxProxy/__init__.pyo +lib/%%PYTHON_VERSION%%/site-packages/Proxy/mxProxy/mxProxy.so +share/doc/py-mxProxy/mxProxy.html +share/examples/py-mxProxy/prototype.py +@dirrm share/examples/py-mxProxy +@dirrm share/doc/py-mxProxy +@dirrm lib/%%PYTHON_VERSION%%/site-packages/Proxy/mxProxy +@dirrm lib/%%PYTHON_VERSION%%/site-packages/Proxy