summaryrefslogtreecommitdiff
path: root/dev-python/pycxx
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pycxx
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pycxx')
-rw-r--r--dev-python/pycxx/Manifest6
-rw-r--r--dev-python/pycxx/files/pycxx-6.2.3-installation.patch25
-rw-r--r--dev-python/pycxx/metadata.xml18
-rw-r--r--dev-python/pycxx/pycxx-6.2.6.ebuild36
4 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/pycxx/Manifest b/dev-python/pycxx/Manifest
new file mode 100644
index 000000000000..f18535b6e9dd
--- /dev/null
+++ b/dev-python/pycxx/Manifest
@@ -0,0 +1,6 @@
+AUX pycxx-6.2.3-installation.patch 1248 SHA256 f6c47b1d613b01511e55cefbc0e0564c402374fc0a4340848f712011b416f7de SHA512 34eaf885611dddb4b7a650d9b2d162fbe559b5f0fcf19f514e1d9cf65e15944c43a9e0c988da815c00a92652495ef9a94a98634d11d9291d28b1f41289fb9d81 WHIRLPOOL bf2eb66f995a28f27cc55b52093610511802ff126e563c21660da64c5ac5a3af32abd6c90e2f9408d661396d5b740aacef247b388fa15110e8dd7138b24e63ee
+DIST pycxx-6.2.6.tar.gz 141547 SHA256 3e960db53dea640473410ea20063afe7fcfcb61c107334d7ff6af96d384c11fe SHA512 9a6c30acb99c112497c02fb0826dc0197bbf4b813d25eab3f7d6537dfd83db8150c94f617f79810bbcca64496b8d6e67b1a41446523d66031c54c21e0425ea0c WHIRLPOOL 570cc1ccd12748481c74aefe863a2cef2d2d048ddbeceeeea01477a6d1765f38582f3c9112c8d5fddf6f534b91c74aea11b38aab8da04ced18280047a0821090
+EBUILD pycxx-6.2.6.ebuild 984 SHA256 efa5008a29968bee0305170b3b41d8983ce1e752e03189e3b60d417d3e78f2ae SHA512 b250150f61d4fa1f20238e3232f277bcc7aecbe5da5a1b00413b1df6bfa1e469feb9a5602b7f5bf0a71a8f30767850f849f124d76ce98fce7a476db43a16706f WHIRLPOOL 97b85a4c1a2cbec9e0ce8213bd997c64e3d6a14beb3bbb23a7f4ef964931c7e42e5c1ced85e01bcf90bbbefc54d890aa2c65fa1fa21261616bcc5bc09eae5189
+MISC ChangeLog 3483 SHA256 a92bb29b3243c4751f707e5af4d920396881e5703cc3afccf133aea080147394 SHA512 48c4cd71ed0c93705a3c37bcf64af966f6184dd9e47db11b96d18b8c19cc1b1b3e05daa3091cb1c26ce990bb50033aafaa67ab413bc7de31519f8feebd509ba5 WHIRLPOOL e97044a4b7081c5b79652b25ce938058746eeed675bf386c881f92d5de85d5dec08c59e5d9c6851d93c5e708460cfa9afa2fe70938e224f53527739f09039ea2
+MISC ChangeLog-2015 7411 SHA256 6c6260fc7f0bb5fe60db268c523ca27ecf9422157722e4ffc380e2f00b94b9c6 SHA512 0f91d05cb4f84ec8137fb877df75fd75c69ee358343664bf857eafb674abc4bb65a2f5f8fab456f3ef5edb1b796e6aafae11e53d928eced715c23dc66bd40d2e WHIRLPOOL e564e129853876c8ebc9dd2e64ce6b40b1398c1470d9725973a7c008b0391fca6f6b39fca00ac724ee7fd8b6745448746bb29fdf72fc2d7996d835c39122f6b2
+MISC metadata.xml 707 SHA256 1cf36f7d2b8015212efbf31a95b78fa2ef576fec058ad79f6449338a601b3462 SHA512 65b41d39019c453f2e2811592007063676b3652b301f3e629496a08b6dfefe6560c0d1f9644c5dbf7a286c69792d7527e29d75cedfd658a43192457be2f21544 WHIRLPOOL 0b0cd6caa5353124d040a91c2ee51a8c0cb987d283902b437e1a07f2c05f96a5bf4825d8120e9adc845ce6af874f91385f3123179655ebf967ea3cec4e6db147
diff --git a/dev-python/pycxx/files/pycxx-6.2.3-installation.patch b/dev-python/pycxx/files/pycxx-6.2.3-installation.patch
new file mode 100644
index 000000000000..5f6bfa74f4be
--- /dev/null
+++ b/dev-python/pycxx/files/pycxx-6.2.3-installation.patch
@@ -0,0 +1,25 @@
+--- setup.py
++++ setup.py
+@@ -3,10 +3,18 @@
+ from distutils.command.install import install
+ from distutils.core import setup
+
+-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" ) ))
++headers = (glob( os.path.join( "CXX", "Python%s" % sys.version_info[0], "*.hxx" ) )
++ +glob( os.path.join( "CXX", "Python%s" % sys.version_info[0], "*.h" ) ))
++headers += [header for header in
++ glob( os.path.join( "CXX", "*.hxx" ) ) +
++ glob( os.path.join( "CXX", "*.h" ) )
++ if os.path.sep.join((os.path.split(header)[0], "Python%s" % sys.version_info[0], os.path.split(header)[1])) not in headers]
++sources = (glob( os.path.join( "Src", "Python%s" % sys.version_info[0], "*.cxx" ) )
++ +glob( os.path.join( "Src", "Python%s" % sys.version_info[0], "*.c" ) ))
++sources += [source for source in
++ glob( os.path.join( "Src", "*.cxx" ) ) +
++ glob( os.path.join( "Src", "*.c" ) )
++ if os.path.sep.join((os.path.split(source)[0], "Python%s" % sys.version_info[0], os.path.split(source)[1])) not in sources]
+
+
+ class my_install (install):
diff --git a/dev-python/pycxx/metadata.xml b/dev-python/pycxx/metadata.xml
new file mode 100644
index 000000000000..0281b4a393da
--- /dev/null
+++ b/dev-python/pycxx/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <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>
+ <upstream>
+ <remote-id type="sourceforge">cxx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pycxx/pycxx-6.2.6.ebuild b/dev-python/pycxx/pycxx-6.2.6.ebuild
new file mode 100644
index 000000000000..a0dad6d120af
--- /dev/null
+++ b/dev-python/pycxx/pycxx-6.2.6.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit eutils distutils-r1
+
+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 ~arm ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
+IUSE="doc examples"
+
+python_prepare_all() {
+ # Without this, pysvn fails.
+ # CXX/Python2/Config.hxx: No such file or directory
+ sed -e "/^#include/s:/Python[23]/:/:" -i CXX/*/*.hxx || die "sed failed"
+
+ # Remove python2 print statement
+ echo > Lib/__init__.py || die
+
+ local PATCHES=(
+ "${FILESDIR}/${PN}-6.2.3-installation.patch"
+ )
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( Doc/. )
+ use examples && local EXAMPLES=( Demo/Python{2,3}/. )
+ distutils-r1_python_install_all
+}