summaryrefslogtreecommitdiff
path: root/lang/py-extclass/Makefile
diff options
context:
space:
mode:
authortsarna <tsarna>1999-12-30 21:37:02 +0000
committertsarna <tsarna>1999-12-30 21:37:02 +0000
commit152593de9987598bde2931bfdb3742ccc096b136 (patch)
tree91cb703e9969af15b61778b122b97e83dc416237 /lang/py-extclass/Makefile
parente611bd3f6d9688c25ebdf2a4958ca7f6ca1f7de5 (diff)
downloadpkgsrc-152593de9987598bde2931bfdb3742ccc096b136.tar.gz
Extension Classes for Python, pulled from Zope 2.1.1 as they (and
especially Acquisition) can be quite useful in their own right. EC fixes a wart in CPython: Python classes can't use C-implemented types as base classes. EC-based C classes can be subclassed by python, and in fact python classes can use pure mixin EC C classes so that you can have speed critical methods of a class in C and the rest in Python. EC also provides a mixin called Acquisition, which provides a kind of contextual inheritance. If an object can't find the data/method in itself or by looking up it's list of base classes, it will then try to acquire the thing up through its containers (or other context).
Diffstat (limited to 'lang/py-extclass/Makefile')
-rw-r--r--lang/py-extclass/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/lang/py-extclass/Makefile b/lang/py-extclass/Makefile
new file mode 100644
index 00000000000..d778b2d96b3
--- /dev/null
+++ b/lang/py-extclass/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/12/30 21:37:02 tsarna Exp $
+#
+
+DISTNAME= Zope-2.1.1-src
+PKGNAME= py-extclass-2.1.1
+CATEGORIES= www
+MASTER_SITES= http://www.zope.org/Products/Zope/2.1.1/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= tsarna@netbsd.org
+HOMEPAGE= http://www.digicool.com/releases/ExtensionClass
+
+DEPENDS+= python-1.5.2:../../lang/python
+
+ALL_TARGET= default
+PYTHON_LIBDIR= ${LOCALBASE}/lib/python1.5/site-packages
+PYTHON_CONFIGDIR= ${LOCALBASE}/lib/python1.5/config
+EXTRACT_ELEMENTS= Zope-2.1.1-src/lib/Components/ExtensionClass
+
+WRKSRC= ${WRKDIR}/Zope-2.1.1-src/lib/Components/ExtensionClass
+
+do-configure:
+ ( cd ${WRKSRC} ;\
+ ${CP} ${PYTHON_CONFIGDIR}/Makefile.pre.in . ;\
+ ${MAKE} -f Makefile.pre.in boot)
+
+post-build:
+ (cd ${WRKSRC}; ${LOCALBASE}/bin/python ${PREFIX}/lib/python1.5/compileall.py .)
+ (cd ${WRKSRC}; ${LOCALBASE}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py .)
+
+do-install:
+ (cd ${WRKSRC}; ${INSTALL_DATA} ExtensionClass.h \
+ ${LOCALBASE}/include/python1.5 ; \
+ ${INSTALL_SCRIPT} Xaq.py* ComputedAttribute.py* ${PYTHON_LIBDIR} ; \
+ ${INSTALL_PROGRAM} *.so ${PYTHON_LIBDIR} ; \
+ ${INSTALL_SCRIPT_DIR} ${PYTHON_LIBDIR}/extclass_test ; \
+ ${INSTALL_SCRIPT} test_*.py* ${PYTHON_LIBDIR}/extclass_test ; \
+ ${INSTALL_DATA_DIR} ${PYTHON_LIBDIR}/extclass_doc ; \
+ ${INSTALL_DATA} *.txt *.stx ${PYTHON_LIBDIR}/extclass_doc)
+
+
+.include "../../mk/bsd.pkg.mk"