diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/reportlab | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/reportlab')
| -rw-r--r-- | dev-python/reportlab/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/reportlab/files/reportlab-3.5.13-disable-network-tests.patch | 23 | ||||
| -rw-r--r-- | dev-python/reportlab/files/reportlab-3.5.13-pillow-VERSION.patch | 17 | ||||
| -rw-r--r-- | dev-python/reportlab/metadata.xml | 12 | ||||
| -rw-r--r-- | dev-python/reportlab/reportlab-3.5.42.ebuild | 59 |
5 files changed, 113 insertions, 0 deletions
diff --git a/dev-python/reportlab/Manifest b/dev-python/reportlab/Manifest new file mode 100644 index 000000000000..200e6e1d0aa9 --- /dev/null +++ b/dev-python/reportlab/Manifest @@ -0,0 +1,2 @@ +DIST pfbfer-20070710.zip 677333 BLAKE2B 100214476a361a5e5d1f3da0999591345f6e3a3f8c6bc3f6a3e9eca734190c6259758a43302c6e41254d33491fe535eb7d5dd07aa9727c912424bebc31fc18df SHA512 6fd4a5d955464b10d13a7b748703450c1fe120d5ed09e8cfa1b4dfa9c183c59fe001df29433af551796b0df62544b7ddc364f9bb1bdcc2cd300434340ffcc4f2 +DIST reportlab-3.5.42.tar.gz 2883081 BLAKE2B 22f4e7ebc233895a036eeb94c5beb9206be561a8a44895b36291a4f840603a2fec90107ac60e749f99be629202801c63ff67d5034d19b42383f2df12d457104d SHA512 f52717867190bf7812fd566d9ec3044198db809cdd0f53cc9dbfa92503a202540db659369e20bba3de07cd28eb10515d03b85700ac138c9394dc9eed1f08b8f8 diff --git a/dev-python/reportlab/files/reportlab-3.5.13-disable-network-tests.patch b/dev-python/reportlab/files/reportlab-3.5.13-disable-network-tests.patch new file mode 100644 index 000000000000..e1a760d4d464 --- /dev/null +++ b/dev-python/reportlab/files/reportlab-3.5.13-disable-network-tests.patch @@ -0,0 +1,23 @@ +diff -r f52d1198146d tests/test_lib_utils.py +--- a/tests/test_lib_utils.py Tue Jan 15 16:06:40 2019 +0000 ++++ b/tests/test_lib_utils.py Sun Jan 27 10:21:29 2019 -0500 +@@ -112,7 +112,7 @@ + "test open and read of a relative file: URL" + b = _rel_open_and_read('file:../docs/images/Edit_Prefs.gif') + +- def test9(self): ++ def xtest9(self): + "test open and read of an http: URL" + from reportlab.lib.utils import open_and_read + b = open_and_read('http://www.reportlab.com/rsrc/encryption.gif') +diff -r f52d1198146d tests/test_platypus_general.py +--- a/tests/test_platypus_general.py Tue Jan 15 16:06:40 2019 +0000 ++++ b/tests/test_platypus_general.py Sun Jan 27 10:21:29 2019 -0500 +@@ -587,7 +587,7 @@ + + class PlatypusTestCase(unittest.TestCase): + +- def test0(self): ++ def xtest0(self): + "Make a platypus document" + run() diff --git a/dev-python/reportlab/files/reportlab-3.5.13-pillow-VERSION.patch b/dev-python/reportlab/files/reportlab-3.5.13-pillow-VERSION.patch new file mode 100644 index 000000000000..3b2093d9a8c5 --- /dev/null +++ b/dev-python/reportlab/files/reportlab-3.5.13-pillow-VERSION.patch @@ -0,0 +1,17 @@ +--- a/src/reportlab/lib/utils.py ++++ b/src/reportlab/lib/utils.py +@@ -883,7 +883,13 @@ + im = self._image + mode = self.mode = im.mode + if mode in ('LA','RGBA'): +- if Image.VERSION.startswith('1.1.7'): im.load() ++ # Pillow 6.0.0 and above have removed the 'VERSION' attribute ++ # https://bitbucket.org/rptlab/reportlab/issues/176/incompatibility-with-pillow-600 ++ try: ++ im_ver = Image.__version__ ++ except AttributeError: ++ im_ver = Image.VERSION ++ if im_ver.startswith('1.1.7'): im.load() + self._dataA = ImageReader(im.split()[3 if mode=='RGBA' else 1]) + nm = mode[:-1] + im = im.convert(nm) diff --git a/dev-python/reportlab/metadata.xml b/dev-python/reportlab/metadata.xml new file mode 100644 index 000000000000..2cdd2313e760 --- /dev/null +++ b/dev-python/reportlab/metadata.xml @@ -0,0 +1,12 @@ +<?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> + <upstream> + <remote-id type="pypi">reportlab</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/reportlab/reportlab-3.5.42.ebuild b/dev-python/reportlab/reportlab-3.5.42.ebuild new file mode 100644 index 000000000000..9b97a79d088c --- /dev/null +++ b/dev-python/reportlab/reportlab-3.5.42.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) + +inherit distutils-r1 + +DESCRIPTION="Tools for generating printable PDF documents from any data source" +HOMEPAGE=" + https://www.reportlab.com/ + https://pypi.org/project/reportlab/ + https://bitbucket.org/rptlab/reportlab/" +SRC_URI=" + mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz + https://www.reportlab.com/ftp/fonts/pfbfer-20070710.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + media-libs/libart_lgpl:= + sys-libs/zlib:= +" +RDEPEND=" + dev-python/pillow[tiff,truetype,jpeg(+),${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( ${RDEPEND} ) + app-arch/unzip +" +RDEPEND+=${DEPEND} + +distutils_enable_sphinx docs/source + +src_unpack() { + unpack ${P}.tar.gz + cd ${P}/src/reportlab/fonts || die + unpack pfbfer-20070710.zip +} + +src_prepare() { + # tests requiring Internet access + sed -i -e 's:test0:_&:' \ + tests/test_platypus_general.py \ + tests/test_platypus_images.py || die + sed -i -e 's:test9:_&:' tests/test_lib_utils.py || die + distutils-r1_src_prepare +} + +python_test() { + pushd tests > /dev/null || die + "${EPYTHON}" runAll.py || die "Testing failed with ${EPYTHON}" + popd > /dev/null || die +} |
