diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pycxx/pycxx-6.2.6.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pycxx/pycxx-6.2.6.ebuild')
-rw-r--r-- | dev-python/pycxx/pycxx-6.2.6.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
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 +} |