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: Tue, 29 Nov 2022 00:43:28
Message-Id: 1669682557.4a46118edd3a0616443a3ed026125c6b0462c572.sping@gentoo
1 commit: 4a46118edd3a0616443a3ed026125c6b0462c572
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 23:12:10 2022 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 00:42:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a46118e
7
8 dev-python/pycxx: 7.1.7 + Python 3.11 + fix false remote ID
9
10 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
11
12 dev-python/pycxx/Manifest | 1 +
13 dev-python/pycxx/metadata.xml | 3 +++
14 dev-python/pycxx/pycxx-7.1.7.ebuild | 37 +++++++++++++++++++++++++++++++++++++
15 3 files changed, 41 insertions(+)
16
17 diff --git a/dev-python/pycxx/Manifest b/dev-python/pycxx/Manifest
18 index bd8fdd9c4a29..b2a1ef174f08 100644
19 --- a/dev-python/pycxx/Manifest
20 +++ b/dev-python/pycxx/Manifest
21 @@ -1 +1,2 @@
22 DIST pycxx-7.1.5.tar.gz 156343 BLAKE2B 099de7f88c19ec86aea67b503e6fbdc0df66bbdd3bdc0ff7f8ce77425be9486e6abebed8548f9ac764688a85e62cda77d3832f460e5678b4c07b1c6d2123b257 SHA512 0f980298739886d0c05ddd5ee23ebb234014b8276d811e62dc5b0a738666c6a011ad3f4aeeb7b1b404d8bff87dddfc30f68eec9c6bd13d5f262a2f7c53e273be
23 +DIST pycxx-7.1.7.tar.gz 156383 BLAKE2B 69a454615c9a7cdc57f4c357b9e3805821711bc48efb82e684da6066069ff0ee6af3b76911a705adb6f984969659441d331a8470061b514180ddf53f6494a33d SHA512 5439b2f72a7f04a628e7e93d093566654f3b4eafe78a7834005f86fb08e614f22f4d1fffb8d626e46cd56880ff7792e494ee3282b313ce668a7497d2bc1fbea9
24
25 diff --git a/dev-python/pycxx/metadata.xml b/dev-python/pycxx/metadata.xml
26 index 0de8867fa9b6..898c29b01984 100644
27 --- a/dev-python/pycxx/metadata.xml
28 +++ b/dev-python/pycxx/metadata.xml
29 @@ -11,6 +11,9 @@
30 </longdescription>
31 <upstream>
32 <remote-id type="sourceforge">cxx</remote-id>
33 + <!--
34 + Note, PyCXX is not on PyPI, this is a *different* project:
35 <remote-id type="pypi">pycxx</remote-id>
36 + -->
37 </upstream>
38 </pkgmetadata>
39
40 diff --git a/dev-python/pycxx/pycxx-7.1.7.ebuild b/dev-python/pycxx/pycxx-7.1.7.ebuild
41 new file mode 100644
42 index 000000000000..49ffda406c9a
43 --- /dev/null
44 +++ b/dev-python/pycxx/pycxx-7.1.7.ebuild
45 @@ -0,0 +1,37 @@
46 +# Copyright 1999-2022 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI="8"
50 +
51 +PYTHON_COMPAT=( python3_{8..11} )
52 +# DISTUTILS_USE_PEP517=setuptools broken, installs files to /usr/CXX
53 +DISTUTILS_USE_SETUPTOOLS=no
54 +
55 +inherit distutils-r1
56 +
57 +DESCRIPTION="Set of facilities to extend Python with C++"
58 +HOMEPAGE="http://cxx.sourceforge.net"
59 +SRC_URI="mirror://sourceforge/cxx/${P}.tar.gz"
60 +
61 +LICENSE="BSD"
62 +SLOT="0"
63 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
64 +IUSE="doc examples"
65 +
66 +python_prepare_all() {
67 + # Without this, pysvn fails.
68 + # Src/Python3/cxxextensions.c: No such file or directory
69 + sed -e "/^#include/s:Src/::" -i Src/*.{c,cxx} || die "sed failed"
70 +
71 + distutils-r1_python_prepare_all
72 +}
73 +
74 +python_install_all() {
75 + use doc && local HTML_DOCS=( Doc/. )
76 + if use examples ; then
77 + docinto examples
78 + dodoc -r Demo/Python{2,3}/.
79 + docompress -x /usr/share/doc/${PF}/examples
80 + fi
81 + distutils-r1_python_install_all
82 +}