diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/reportlab | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/reportlab')
-rw-r--r-- | dev-python/reportlab/Manifest | 7 | ||||
-rw-r--r-- | dev-python/reportlab/files/reportlab-no-pip.patch | 12 | ||||
-rw-r--r-- | dev-python/reportlab/metadata.xml | 15 | ||||
-rw-r--r-- | dev-python/reportlab/reportlab-3.3.0-r2.ebuild | 72 | ||||
-rw-r--r-- | dev-python/reportlab/reportlab-3.4.0-r1.ebuild | 75 |
5 files changed, 181 insertions, 0 deletions
diff --git a/dev-python/reportlab/Manifest b/dev-python/reportlab/Manifest new file mode 100644 index 000000000000..450c419cf69a --- /dev/null +++ b/dev-python/reportlab/Manifest @@ -0,0 +1,7 @@ +AUX reportlab-no-pip.patch 419 BLAKE2B c09e5ea741b04dbeb7791f713d9171995d99da73706201da9c14018b7a1789621ae53317ae8d170fc50fecf860b7b0c84c1016b24a505eef778ae6fc964fcf01 SHA512 1a5f4bced7be3c706b57c262dfd84fb539af42ae49541cf68d01963c8c79c96ad0a8389f36f486a485d258e9aa860c195e061c3c34070cfca3e64b52b6c89cd1 +DIST pfbfer-20070710.zip 677333 BLAKE2B 100214476a361a5e5d1f3da0999591345f6e3a3f8c6bc3f6a3e9eca734190c6259758a43302c6e41254d33491fe535eb7d5dd07aa9727c912424bebc31fc18df SHA512 6fd4a5d955464b10d13a7b748703450c1fe120d5ed09e8cfa1b4dfa9c183c59fe001df29433af551796b0df62544b7ddc364f9bb1bdcc2cd300434340ffcc4f2 +DIST reportlab-3.3.0.tar.gz 1959255 BLAKE2B 0acd2d306da7836a2324b9a63c158b1b935cd393f5d1eb62cd15f8f4be6e48dac77807d1635ccafc569a47420dc3f4eec49c3ea3852a5a4241b10f0d73550865 SHA512 a6dbe5db13a9e430855ba8139310d8f04ade221c340467c2e0f5bf60c700f17148069358beb057f1667217a09b71ba1ae3112bd02e7c8de00e53a8f852acb8df +DIST reportlab-3.4.0.tar.gz 1995779 BLAKE2B e1111e784ead913f803ba8151bf3585fdba9fb5e0c1d568c839d5ac08f5e6757b608c8049644264dd1f0bee5b4bb0c1750640a70feef34eff8e276d9929377e9 SHA512 7f00074b93be49e1aa7650e61381e285598599911b12a6b63c0f12d6eb64bc59afb6907b683350740b0a81c99a3164373b27e18cfccc0f9da12405c3dacd1ff7 +EBUILD reportlab-3.3.0-r2.ebuild 1666 BLAKE2B feaa5cab8351bcdd953ca8eee04bfe94da9d6b46d76818e3f45f9dabd7a4505ee774a0d4e7a2bf0dcd9e2cef49278340c8f51f7372c866ac9f8109dd6a841a06 SHA512 368eb6c3688f99ec757ca3c5d7ce2230ff642e8248b6be9bf312b7d985ccc9c2acc0e4eea773419c5eb9ca944a0cbcac0cccfa4455ac39858d74873303ed91d9 +EBUILD reportlab-3.4.0-r1.ebuild 1704 BLAKE2B 72af91f7ea47a07597afc491bdc8dcfadf8d7fbd0c24008b728513d4245a753574e0ccc18c43715863cf31835c693cc1dc2be100c23dd6a816e0913b138effec SHA512 1ff7009e8a4edd92d9d9ac3a43ab7c26e04efa5fcc36792f70669a82225274dce2b574fc0001d952922753c510cfb689d3fb3440b5d780866260b5279fb4e0e1 +MISC metadata.xml 441 BLAKE2B b779c5502121b6730f77ce8cff7d8e64fd8510ccf778888a2cf49c5a370c54bd258e91bbb8354cf96350b3a1e5bfd799415c752a1750e3a84ca40e2cfc34b3db SHA512 4c54b763bedc090a8f16642829e4b2f16068a2cd6a8f1ded89ea9faa6425771a32b85a8b49b2f8dd91a51ef16f37051f76b5f899f7b34c7d4c2f37cb94a253a2 diff --git a/dev-python/reportlab/files/reportlab-no-pip.patch b/dev-python/reportlab/files/reportlab-no-pip.patch new file mode 100644 index 000000000000..332878e24dcf --- /dev/null +++ b/dev-python/reportlab/files/reportlab-no-pip.patch @@ -0,0 +1,12 @@ +diff --git a/setup.py b/setup.py +--- a/setup.py ++++ b/setup.py +@@ -538,7 +538,7 @@ + ], + + #this probably only works for setuptools, but distutils seems to ignore it +- install_requires=['pillow>=2.4.0','pip>=1.4.1', 'setuptools>=2.2'], ++ install_requires=['pillow>=2.4.0'], + ) + print() + print('########## SUMMARY INFO #########') diff --git a/dev-python/reportlab/metadata.xml b/dev-python/reportlab/metadata.xml new file mode 100644 index 000000000000..e1980044b565 --- /dev/null +++ b/dev-python/reportlab/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription> + The ReportLab Toolkit is a Python library for generating + PDFs and graphics. +</longdescription> + <upstream> + <remote-id type="pypi">reportlab</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/reportlab/reportlab-3.3.0-r2.ebuild b/dev-python/reportlab/reportlab-3.3.0-r2.ebuild new file mode 100644 index 000000000000..b5246ec3edf6 --- /dev/null +++ b/dev-python/reportlab/reportlab-3.3.0-r2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2018 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} ) # Tests crash with pypy + +inherit distutils-r1 flag-o-matic prefix + +DESCRIPTION="Tools for generating printable PDF documents from any data source" +HOMEPAGE="http://www.reportlab.com/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz + http://www.reportlab.com/ftp/fonts/pfbfer-20070710.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc examples" + +RDEPEND=" + >=dev-python/pillow-2.4.0[tiff,truetype,jpeg(+),${PYTHON_USEDEP}] + media-libs/libart_lgpl + sys-libs/zlib +" +DEPEND="${RDEPEND} + >=dev-python/setuptools-2.2[${PYTHON_USEDEP}] + app-arch/unzip +" + +PATCHES=( + "${FILESDIR}"/reportlab-no-pip.patch +) + +src_unpack() { + unpack ${P}.tar.gz + cd ${P}/src/reportlab/fonts || die + unpack pfbfer-20070710.zip +} + +python_prepare_all() { + sed -i \ + -e 's|/usr/local/Acrobat|/opt/Acrobat|g' \ + -e 's|%(HOME)s/fonts|%(HOME)s/.fonts|g' \ + src/reportlab/rl_config.py || die + + eprefixify setup.py + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_compile() { + if ! python_is_python3; then + local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + fi + distutils-r1_python_compile +} + +python_test() { + pushd tests > /dev/null || die + "${PYTHON}" runAll.py || die "Testing failed with ${EPYTHON}" + popd > /dev/null || die +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + use examples && local EXAMPLES=( demos/. tools/pythonpoint/demos ) + + distutils-r1_python_install_all +} diff --git a/dev-python/reportlab/reportlab-3.4.0-r1.ebuild b/dev-python/reportlab/reportlab-3.4.0-r1.ebuild new file mode 100644 index 000000000000..aa37a5143bae --- /dev/null +++ b/dev-python/reportlab/reportlab-3.4.0-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) # Tests crash with pypy + +inherit distutils-r1 flag-o-matic prefix + +DESCRIPTION="Tools for generating printable PDF documents from any data source" +HOMEPAGE="http://www.reportlab.com/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz + http://www.reportlab.com/ftp/fonts/pfbfer-20070710.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc examples" + +RDEPEND=" + >=dev-python/pillow-2.4.0[tiff,truetype,jpeg(+),${PYTHON_USEDEP}] + media-libs/libart_lgpl + sys-libs/zlib +" +DEPEND="${RDEPEND} + >=dev-python/setuptools-2.2[${PYTHON_USEDEP}] + app-arch/unzip +" + +PATCHES=( + "${FILESDIR}"/reportlab-no-pip.patch +) + +src_unpack() { + unpack ${P}.tar.gz + cd ${P}/src/reportlab/fonts || die + unpack pfbfer-20070710.zip +} + +python_prepare_all() { + sed -i \ + -e 's|/usr/local/Acrobat|/opt/Acrobat|g' \ + -e 's|%(HOME)s/fonts|%(HOME)s/.fonts|g' \ + src/reportlab/rl_config.py || die + + eprefixify setup.py + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_compile() { + if ! python_is_python3; then + local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + fi + distutils-r1_python_compile +} + +python_test() { + pushd tests > /dev/null || die + "${PYTHON}" runAll.py || die "Testing failed with ${EPYTHON}" + popd > /dev/null || die +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + if use examples ; then + docinto examples + dosod -r demos/. tools/pythonpoint/demos + fi + + distutils-r1_python_install_all +} |