From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B638B138334 for ; Sun, 27 Jan 2019 16:02:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E77CFE1222; Sun, 27 Jan 2019 16:02:02 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A2197E121E for ; Sun, 27 Jan 2019 16:02:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0E80A335D6A for ; Sun, 27 Jan 2019 16:02:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77C4E4FA for ; Sun, 27 Jan 2019 16:01:59 +0000 (UTC) From: "Virgil Dupras" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Virgil Dupras" Message-ID: <1548604899.560a92f6f491c6b3369ce7d7ee4d6d7048ae4d7b.vdupras@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/reportlab/files/, dev-python/reportlab/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/reportlab/Manifest dev-python/reportlab/files/reportlab-3.5.13-disable-network-tests.patch dev-python/reportlab/reportlab-3.5.13.ebuild X-VCS-Directories: dev-python/reportlab/ dev-python/reportlab/files/ X-VCS-Committer: vdupras X-VCS-Committer-Name: Virgil Dupras X-VCS-Revision: 560a92f6f491c6b3369ce7d7ee4d6d7048ae4d7b X-VCS-Branch: master Date: Sun, 27 Jan 2019 16:01:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 93da651e-1bb5-4ea6-a345-f8c439c48dae X-Archives-Hash: ed9648da3c7e304e838c185f6a920628 commit: 560a92f6f491c6b3369ce7d7ee4d6d7048ae4d7b Author: Virgil Dupras gentoo org> AuthorDate: Sun Jan 27 16:00:35 2019 +0000 Commit: Virgil Dupras gentoo org> CommitDate: Sun Jan 27 16:01:39 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=560a92f6 dev-python/reportlab: bump to 3.5.13 I removed the sed and eprefixy because they had no effect. I also disabled the two tests accessing internet through patching. Closes: https://bugs.gentoo.org/616274 Signed-off-by: Virgil Dupras gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 dev-python/reportlab/Manifest | 1 + .../reportlab-3.5.13-disable-network-tests.patch | 23 ++++++++ dev-python/reportlab/reportlab-3.5.13.ebuild | 65 ++++++++++++++++++++++ 3 files changed, 89 insertions(+) diff --git a/dev-python/reportlab/Manifest b/dev-python/reportlab/Manifest index a450f04baba..9b9a81253b9 100644 --- a/dev-python/reportlab/Manifest +++ b/dev-python/reportlab/Manifest @@ -1,3 +1,4 @@ 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 +DIST reportlab-3.5.13.tar.gz 2842790 BLAKE2B 1457b5eb18d2f294decd7bbee202f42900a443eb7a31c2af56cc2180154e1bb48c4044c499b14489c23210e78c9bafb3fbbcd0c5a28f1d2e25f57d91dcb48526 SHA512 50afcdb5e844cc7ec5c1cf72ca28556e98ad721dce5b20cfb32fa720d56b221b9bd2662a88ea5647b11306d80e653334635b54165daa02d3062cf9d051bbd24b 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 00000000000..e1a760d4d46 --- /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/reportlab-3.5.13.ebuild b/dev-python/reportlab/reportlab-3.5.13.ebuild new file mode 100644 index 00000000000..31366f726b1 --- /dev/null +++ b/dev-python/reportlab/reportlab-3.5.13.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} ) # Tests crash with pypy + +inherit distutils-r1 flag-o-matic + +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[tiff,truetype,jpeg(+),${PYTHON_USEDEP}] + media-libs/libart_lgpl + sys-libs/zlib +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + app-arch/unzip +" + +PATCHES=( + "${FILESDIR}/${PN}-3.5.13-disable-network-tests.patch" +) + +src_unpack() { + unpack ${P}.tar.gz + cd ${P}/src/reportlab/fonts || die + unpack pfbfer-20070710.zip +} + +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 +}