diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2009-01-15 09:13:34 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2009-01-15 09:13:34 +0000 |
commit | 7a19f09f41096723a069ca8e4c25928fa4abeb2e (patch) | |
tree | ec5473f40fa6d2e13e3d0294fd6d28b47623674e /dev-python/pycxx | |
parent | Resurrected version 0.9.2_p48 back from the grave as it has one dependant pac... (diff) | |
download | gentoo-2-7a19f09f41096723a069ca8e4c25928fa4abeb2e.tar.gz gentoo-2-7a19f09f41096723a069ca8e4c25928fa4abeb2e.tar.bz2 gentoo-2-7a19f09f41096723a069ca8e4c25928fa4abeb2e.zip |
Initial import
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'dev-python/pycxx')
-rw-r--r-- | dev-python/pycxx/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/pycxx/files/pycxx-5.4.2-headers-c.patch | 58 | ||||
-rw-r--r-- | dev-python/pycxx/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pycxx/pycxx-5.4.2.ebuild | 30 |
4 files changed, 110 insertions, 0 deletions
diff --git a/dev-python/pycxx/ChangeLog b/dev-python/pycxx/ChangeLog new file mode 100644 index 000000000000..c5bca70120d7 --- /dev/null +++ b/dev-python/pycxx/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/pycxx +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycxx/ChangeLog,v 1.1 2009/01/15 09:13:33 bicatali Exp $ + +*pycxx-5.4.2 (15 Jan 2009) + + 15 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org> + +files/pycxx-5.4.2-headers-c.patch, +metadata.xml, +pycxx-5.4.2.ebuild: + Initial import + diff --git a/dev-python/pycxx/files/pycxx-5.4.2-headers-c.patch b/dev-python/pycxx/files/pycxx-5.4.2-headers-c.patch new file mode 100644 index 000000000000..3acb9930570c --- /dev/null +++ b/dev-python/pycxx/files/pycxx-5.4.2-headers-c.patch @@ -0,0 +1,58 @@ +--- pycxx-5.4.2.orig/setup.py ++++ pycxx-5.4.2/setup.py +@@ -3,7 +3,8 @@ + from distutils.command.install import install + from distutils.core import setup + +-headers = glob (os.path.join ("CXX","*.hxx")) ++headers = glob (os.path.join ("CXX","*.hxx")) + \ ++ glob (os.path.join ("CXX","*.h")) + sources = glob (os.path.join ("Src", "*.cxx")) + \ + glob (os.path.join ("Src", "*.c")) + +--- pycxx-5.4.2.orig/CXX/WrapPython.h ++++ pycxx-5.4.2/CXX/WrapPython.h +@@ -1,3 +1,4 @@ ++/* + //----------------------------------------------------------------------------- + // + // Copyright (c) 1998 - 2007, The Regents of the University of California +@@ -34,16 +35,25 @@ + // DAMAGE. + // + //----------------------------------------------------------------------------- ++*/ + + #ifndef __PyCXX_wrap_python_hxx__ + #define __PyCXX_wrap_python_hxx__ + +-// On some platforms we have to include time.h to get select defined ++/* On some platforms we have to include time.h to get select defined */ + #if !defined(__WIN32__) && !defined(WIN32) && !defined(_WIN32) && !defined(_WIN64) + #include <sys/time.h> + #endif + +-// pull in python definitions ++/* Prevent warnings */ ++#if defined(_XOPEN_SOURCE) ++ #undef _XOPEN_SOURCE ++#endif ++#if defined(_POSIX_C_SOURCE) ++ #undef _POSIX_C_SOURCE ++#endif ++ ++/* pull in python definitions */ + #include <Python.h> + + #endif +--- pycxx-5.4.2.orig/CXX/Objects.hxx ++++ pycxx-5.4.2/CXX/Objects.hxx +@@ -372,7 +372,7 @@ + // PyObject_SetItem is too weird to be using from C++ + // so it is intentionally omitted. + +- void delItem (const Object& key) ++ void delItem (const Object& /*key*/) + { + //if(PyObject_DelItem(p, *key) == -1) + // failed to link on Windows? diff --git a/dev-python/pycxx/metadata.xml b/dev-python/pycxx/metadata.xml new file mode 100644 index 000000000000..facea303efdd --- /dev/null +++ b/dev-python/pycxx/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <longdescription lang="en"> + 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 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. + </longdescription> +</pkgmetadata> diff --git a/dev-python/pycxx/pycxx-5.4.2.ebuild b/dev-python/pycxx/pycxx-5.4.2.ebuild new file mode 100644 index 000000000000..0ba870d74867 --- /dev/null +++ b/dev-python/pycxx/pycxx-5.4.2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycxx/pycxx-5.4.2.ebuild,v 1.1 2009/01/15 09:13:33 bicatali Exp $ + +EAPI=2 +inherit eutils distutils + +DESCRIPTION="Set of facilities to extend Python with C++" +HOMEPAGE="http://cxx.sourceforge.net" +SRC_URI="mirror://sourceforge/cxx/${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +PYTHON_MODNAME="CXX" + +src_prepare() { + epatch "${FILESDIR}"/${P}-headers-c.patch +} + +src_install() { + distutils_src_install + insinto /usr/share/doc/${PF} + doins Doc/PyCXX.html + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins Demo/* || die + fi +} |