1 |
commit: f8afcfe4da1a1460021fbf191a4f937ce7058566 |
2 |
Author: Tobias Klausmann <klausman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 25 11:30:54 2017 +0000 |
4 |
Commit: Tobias Klausmann <klausman <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 25 11:30:54 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8afcfe4 |
7 |
|
8 |
dev-python/reportlab-3.3.0-r1: stable on alpha |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
RepoMan-Options: --force |
12 |
|
13 |
dev-python/reportlab/reportlab-3.3.0-r1.ebuild | 73 ++++++++++++++++++++++++++ |
14 |
1 file changed, 73 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/reportlab/reportlab-3.3.0-r1.ebuild b/dev-python/reportlab/reportlab-3.3.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000..cc87371 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/reportlab/reportlab-3.3.0-r1.ebuild |
21 |
@@ -0,0 +1,73 @@ |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) # Tests crash with pypy |
29 |
+ |
30 |
+inherit distutils-r1 flag-o-matic prefix |
31 |
+ |
32 |
+DESCRIPTION="Tools for generating printable PDF documents from any data source" |
33 |
+HOMEPAGE="http://www.reportlab.com/" |
34 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz |
35 |
+ http://www.reportlab.com/ftp/fonts/pfbfer-20070710.zip" |
36 |
+ |
37 |
+LICENSE="BSD" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
40 |
+IUSE="doc examples" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ >=dev-python/pillow-2.4.0[tiff,truetype,jpeg,${PYTHON_USEDEP}] |
44 |
+ media-libs/libart_lgpl |
45 |
+ sys-libs/zlib |
46 |
+" |
47 |
+DEPEND="${RDEPEND} |
48 |
+ >=dev-python/setuptools-2.2[${PYTHON_USEDEP}] |
49 |
+ app-arch/unzip |
50 |
+" |
51 |
+ |
52 |
+PATCHES=( |
53 |
+ "${FILESDIR}"/reportlab-no-pip.patch |
54 |
+) |
55 |
+ |
56 |
+src_unpack() { |
57 |
+ unpack ${P}.tar.gz |
58 |
+ cd ${P}/src/reportlab/fonts || die |
59 |
+ unpack pfbfer-20070710.zip |
60 |
+} |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ sed -i \ |
64 |
+ -e 's|/usr/local/Acrobat|/opt/Acrobat|g' \ |
65 |
+ -e 's|%(HOME)s/fonts|%(HOME)s/.fonts|g' \ |
66 |
+ src/reportlab/rl_config.py || die |
67 |
+ |
68 |
+ eprefixify setup.py |
69 |
+ distutils-r1_python_prepare_all |
70 |
+} |
71 |
+ |
72 |
+python_compile_all() { |
73 |
+ use doc && emake -C docs html |
74 |
+} |
75 |
+ |
76 |
+python_compile() { |
77 |
+ if ! python_is_python3; then |
78 |
+ local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
79 |
+ fi |
80 |
+ distutils-r1_python_compile |
81 |
+} |
82 |
+ |
83 |
+python_test() { |
84 |
+ pushd tests > /dev/null || die |
85 |
+ "${PYTHON}" runAll.py || die "Testing failed with ${EPYTHON}" |
86 |
+ popd > /dev/null || die |
87 |
+} |
88 |
+ |
89 |
+python_install_all() { |
90 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
91 |
+ use examples && local EXAMPLES=( demos/. tools/pythonpoint/demos ) |
92 |
+ |
93 |
+ distutils-r1_python_install_all |
94 |
+} |