diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-10-07 10:53:22 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-10-07 10:53:22 +0000 |
commit | 63b40fff734b3be36ee6ba7b0c72002519847022 (patch) | |
tree | 9bdd5fc59f8a97919c837f99081471e6caa6e5dd /devel | |
parent | 7e19282b7678def49506017eaf7722e9e625a84e (diff) | |
download | FreeBSD-ports-63b40fff734b3be36ee6ba7b0c72002519847022.zip FreeBSD-ports-63b40fff734b3be36ee6ba7b0c72002519847022.tar.gz |
add py-cxx
Make it easier to extend Python with C++
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/py-cxx/Makefile | 34 | ||||
-rw-r--r-- | devel/py-cxx/distinfo | 1 | ||||
-rw-r--r-- | devel/py-cxx/pkg-comment | 1 | ||||
-rw-r--r-- | devel/py-cxx/pkg-descr | 18 | ||||
-rw-r--r-- | devel/py-cxx/pkg-plist | 17 |
6 files changed, 72 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 90d862a..1218cdc 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 0000000..ec5efd8 --- /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 <bsd.port.mk> diff --git a/devel/py-cxx/distinfo b/devel/py-cxx/distinfo new file mode 100644 index 0000000..97cb9b3 --- /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 0000000..bde36ed --- /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 0000000..c0de33b --- /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 0000000..23d6bbd --- /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 |