mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
dev-python/rst2pdf: Remove last-rited pkg
Closes: https://bugs.gentoo.org/718572 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST rst2pdf-0.93.tar.gz 1216483 BLAKE2B 478b5e704a2c8a85474e728472807909f70e24ade78f2aba986308919e6716c4b0d576556b3509a358f36be03508f837e3b680a16b8c01e2ee51e522931d9237 SHA512 dfdc6adeb06f4ef3d5fc52b91be1939e9cab25a1979685512f9a05e3da1ee65b84e47478613148401175a06fbfdccf5494918de6281419a0981987d398e836ee
|
||||
@@ -1,26 +0,0 @@
|
||||
--- rst2pdf/log.py
|
||||
+++ rst2pdf/log.py
|
||||
@@ -4,11 +4,12 @@
|
||||
import logging
|
||||
import sys
|
||||
|
||||
-logging.basicConfig(
|
||||
- format='[%(levelname)s] %(filename)s:%(lineno)d %(message)s',
|
||||
- level=logging.WARNING)
|
||||
-
|
||||
log = logging.getLogger('rst2pdf')
|
||||
+_fmt = logging.Formatter('[%(levelname)s] %(filename)s:%(lineno)d %(message)s')
|
||||
+_hdlr = logging.StreamHandler()
|
||||
+_hdlr.setFormatter(_fmt)
|
||||
+log.addHandler(_hdlr)
|
||||
+log.setLevel(logging.WARNING)
|
||||
|
||||
def nodeid(node):
|
||||
"""Given a node, tries to return a way to see where it was in the
|
||||
@@ -23,4 +24,4 @@
|
||||
if node.source: fname=str(node.source)
|
||||
except:
|
||||
pass
|
||||
- return 'near line %s in file %s'%(line,fname)
|
||||
\ No newline at end of file
|
||||
+ return 'near line %s in file %s'%(line,fname)
|
||||
@@ -1,9 +0,0 @@
|
||||
<?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>
|
||||
@@ -1,47 +0,0 @@
|
||||
# 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
|
||||
}
|
||||
@@ -504,12 +504,6 @@ dev-python/flask-bootstrap
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user