Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycxx/
Date: Sun, 03 Jul 2022 13:11:11
Message-Id: 1656853828.5462192952df93e30e13123e8187bbe7a0046a41.sping@gentoo
1 commit: 5462192952df93e30e13123e8187bbe7a0046a41
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 3 12:46:48 2022 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 13:10:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54621929
7
8 dev-python/pycxx: Python 3.10 + EAPI 8
9
10 Closes: https://bugs.gentoo.org/835726
11 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
12 Package-Manager: Portage-3.0.30, Repoman-3.0.3
13
14 dev-python/pycxx/pycxx-7.1.5-r1.ebuild | 35 ++++++++++++++++++++++++++++++++++
15 1 file changed, 35 insertions(+)
16
17 diff --git a/dev-python/pycxx/pycxx-7.1.5-r1.ebuild b/dev-python/pycxx/pycxx-7.1.5-r1.ebuild
18 new file mode 100644
19 index 000000000000..20eddf8c6d66
20 --- /dev/null
21 +++ b/dev-python/pycxx/pycxx-7.1.5-r1.ebuild
22 @@ -0,0 +1,35 @@
23 +# Copyright 1999-2022 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI="8"
27 +
28 +PYTHON_COMPAT=( python3_{8..10} )
29 +DISTUTILS_USE_SETUPTOOLS=no
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="Set of facilities to extend Python with C++"
33 +HOMEPAGE="http://cxx.sourceforge.net"
34 +SRC_URI="mirror://sourceforge/cxx/${P}.tar.gz"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
39 +IUSE="doc examples"
40 +
41 +python_prepare_all() {
42 + # Without this, pysvn fails.
43 + # Src/Python3/cxxextensions.c: No such file or directory
44 + sed -e "/^#include/s:Src/::" -i Src/*.{c,cxx} || die "sed failed"
45 +
46 + distutils-r1_python_prepare_all
47 +}
48 +
49 +python_install_all() {
50 + use doc && local HTML_DOCS=( Doc/. )
51 + if use examples ; then
52 + docinto examples
53 + dodoc -r Demo/Python{2,3}/.
54 + docompress -x /usr/share/doc/${PF}/examples
55 + fi
56 + distutils-r1_python_install_all
57 +}