From 77afb46098129fadfb47cbb25090af35e21a0b17 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sun, 7 Oct 2001 10:53:22 +0000 Subject: add py-cxx Make it easier to extend Python with C++ --- devel/Makefile | 1 + devel/py-cxx/Makefile | 34 ++++++++++++++++++++++++++++++++++ devel/py-cxx/distinfo | 1 + devel/py-cxx/pkg-comment | 1 + devel/py-cxx/pkg-descr | 18 ++++++++++++++++++ devel/py-cxx/pkg-plist | 17 +++++++++++++++++ 6 files changed, 72 insertions(+) create mode 100644 devel/py-cxx/Makefile create mode 100644 devel/py-cxx/distinfo create mode 100644 devel/py-cxx/pkg-comment create mode 100644 devel/py-cxx/pkg-descr create mode 100644 devel/py-cxx/pkg-plist (limited to 'devel') diff --git a/devel/Makefile b/devel/Makefile index 90d862a9c838..1218cdc1e5f5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -446,6 +446,7 @@ SUBDIR += pth-devel SUBDIR += ptl SUBDIR += py-coro + SUBDIR += py-cxx SUBDIR += py-functional SUBDIR += py-game SUBDIR += py-grouch diff --git a/devel/py-cxx/Makefile b/devel/py-cxx/Makefile new file mode 100644 index 000000000000..ec5efd8101c6 --- /dev/null +++ b/devel/py-cxx/Makefile @@ -0,0 +1,34 @@ +# ex:ts=8 +# New ports collection makefile for: PyCXX +# Date created: Oct 7, 2001 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= cxx +PORTVERSION= 5.1r1 +CATEGORIES= devel python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= PyCXX-V${PORTVERSION:S/r/-rc/} + +MAINTAINER= ports@FreeBSD.org + +USE_PYTHON= yes +SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py + +do-build: + @${SETUP_CMD} build + +do-install: + @${SETUP_CMD} install + +.if !defined(NOPORTDOCS) +post-install: + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/Doc/PyCXX.html ${DOCSDIR} +.endif + +.include diff --git a/devel/py-cxx/distinfo b/devel/py-cxx/distinfo new file mode 100644 index 000000000000..97cb9b302077 --- /dev/null +++ b/devel/py-cxx/distinfo @@ -0,0 +1 @@ +MD5 (PyCXX-V5.1-rc1.tar.gz) = 7d21f166381283c7758eb26f1b39a14c diff --git a/devel/py-cxx/pkg-comment b/devel/py-cxx/pkg-comment new file mode 100644 index 000000000000..bde36edfcd74 --- /dev/null +++ b/devel/py-cxx/pkg-comment @@ -0,0 +1 @@ +Make it easier to extend Python with C++ diff --git a/devel/py-cxx/pkg-descr b/devel/py-cxx/pkg-descr new file mode 100644 index 000000000000..c0de33b4e937 --- /dev/null +++ b/devel/py-cxx/pkg-descr @@ -0,0 +1,18 @@ +PyCXX is a set of C++ facilities to make it easier to write Python +extensions. The chief way in which PyCXX makes it easier to write Python +extensions is that it greatly increases the probability that your program +will not make a reference-counting error and will not have to continually +check error returns from the Python C API. + +PyCXX integrates Python with C++ in these ways: + - C++ exception handling is relied on to detect errors and clean up. In + a complicated function this is often a tremendous problem when writing + in C. With PyCXX, we let the compiler keep track of what objects need + to be dereferenced when an error occurs. + - The Standard Template Library (STL) and its many algorithms plug and + play with Python containers such as lists and tuples. + - The optional CXX_Extensions facility allows you to replace the clumsy + C tables with objects and method calls that define your modules and + extension objects. + +WWW: http://cxx.sourceforge.net/ diff --git a/devel/py-cxx/pkg-plist b/devel/py-cxx/pkg-plist new file mode 100644 index 000000000000..23d6bbd5d947 --- /dev/null +++ b/devel/py-cxx/pkg-plist @@ -0,0 +1,17 @@ +include/%%PYTHON_VERSION%%/CXX/Config.hxx +include/%%PYTHON_VERSION%%/CXX/Exception.hxx +include/%%PYTHON_VERSION%%/CXX/Extensions.hxx +include/%%PYTHON_VERSION%%/CXX/IndirectPythonInterface.hxx +include/%%PYTHON_VERSION%%/CXX/Objects.hxx +@dirrm include/%%PYTHON_VERSION%%/CXX +lib/%%PYTHON_VERSION%%/site-packages/CXX/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/CXX/__init__.pyc +@dirrm lib/%%PYTHON_VERSION%%/site-packages/CXX +share/%%PYTHON_VERSION%%/CXX/IndirectPythonInterface.cxx +share/%%PYTHON_VERSION%%/CXX/cxx_extensions.cxx +share/%%PYTHON_VERSION%%/CXX/cxxextensions.c +share/%%PYTHON_VERSION%%/CXX/cxxsupport.cxx +@dirrm share/%%PYTHON_VERSION%%/CXX +@dirrm share/%%PYTHON_VERSION%% +%%PORTDOCS%%share/doc/cxx/PyCXX.html +%%PORTDOCS%%@dirrm share/doc/cxx -- cgit v1.2.3