+++ /dev/null
-DIST rst2pdf-0.93.tar.gz 1216483 BLAKE2B 478b5e704a2c8a85474e728472807909f70e24ade78f2aba986308919e6716c4b0d576556b3509a358f36be03508f837e3b680a16b8c01e2ee51e522931d9237 SHA512 dfdc6adeb06f4ef3d5fc52b91be1939e9cab25a1979685512f9a05e3da1ee65b84e47478613148401175a06fbfdccf5494918de6281419a0981987d398e836ee
+++ /dev/null
---- rst2pdf/log.py
-+++ rst2pdf/log.py
-@@ -4,11 +4,12 @@
- import logging\r
- import sys\r
- \r
--logging.basicConfig(\r
-- format='[%(levelname)s] %(filename)s:%(lineno)d %(message)s',\r
-- level=logging.WARNING)\r
--\r
- log = logging.getLogger('rst2pdf')\r
-+_fmt = logging.Formatter('[%(levelname)s] %(filename)s:%(lineno)d %(message)s')\r
-+_hdlr = logging.StreamHandler()\r
-+_hdlr.setFormatter(_fmt)\r
-+log.addHandler(_hdlr)\r
-+log.setLevel(logging.WARNING)\r
- \r
- def nodeid(node):\r
- """Given a node, tries to return a way to see where it was in the \r
-@@ -23,4 +24,4 @@
- if node.source: fname=str(node.source)\r
- except:\r
- pass\r
-- return 'near line %s in file %s'%(line,fname)
-\ No newline at end of file
-+ return 'near line %s in file %s'%(line,fname)\r
+++ /dev/null
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!-- maintainer-needed -->
- <upstream>
- <remote-id type="google-code">rst2pdf</remote-id>
- <remote-id type="github">rst2pdf/rst2pdf</remote-id>
- </upstream>
-</pkgmetadata>
+++ /dev/null
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-
-inherit distutils-r1
-
-DESCRIPTION="Tool for transforming reStructuredText to PDF using ReportLab"
-HOMEPAGE="http://rst2pdf.ralsina.me/ https://pypi.org/project/rst2pdf/"
-SRC_URI="https://github.com/rst2pdf/rst2pdf/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 sparc x86"
-IUSE="svg"
-
-DEPEND="dev-python/docutils[${PYTHON_USEDEP}]
- dev-python/pillow[${PYTHON_USEDEP}]
- dev-python/pdfrw[${PYTHON_USEDEP}]
- dev-python/pygments[${PYTHON_USEDEP}]
- >=dev-python/reportlab-2.6[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- svg? ( media-gfx/svg2rlg )"
-RDEPEND="${DEPEND}"
-# >=reportlab-2.6: https://code.google.com/p/rst2pdf/issues/detail?id=474
-
-PATCHES=( "${FILESDIR}/${P}-fix-logging.patch" )
-
-python_install_all() {
- dodoc doc/*.pdf
- doman doc/rst2pdf.1
- distutils-r1_python_install_all
-}
-
-pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "rst2pdf can work with the following packages for additional functionality:"
- elog " dev-python/sphinx - versatile documentation creation"
- elog " dev-python/pythonmagick - image processing with ImageMagick"
- elog " dev-python/matplotlib - mathematical formulae"
- elog "It can also use wordaxe for hyphenation, but this package is not"
- elog "available in the portage tree yet. Please refer to the manual"
- elog "installed in /usr/share/doc/${PF}/ for more information."
- fi
-}
# Removal in 30 days. Bug #708168.
media-video/griffith
-# Michał Górny <mgorny@gentoo.org> (2020-04-20)
-# Unmaintained. Stuck on Python 2. rst2pdf depends on dev-python/pdfrw
-# that is dead and broken with py3.7+. svg2rlg is only used by pdfrw.
-# Removal in 30 days. Bug #718572.
-dev-python/rst2pdf
-
# Michael Orlitzky <mjo@gentoo.org> (2020-04-19)
# Stuck on Python 3.6, support for which already required
# backporting patches to a release from 2014. Upstream's git