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