Skip to content

Commit d80065e

Browse files
committed
dev-python/rst2pdf: bump to latest upstream release
Signed-off-by: Stephen L Arnold <sarnold@vctlabs.com>
1 parent e14b967 commit d80065e

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

dev-python/rst2pdf/Manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
DIST rst2pdf-0.102.tar.gz 12139658 BLAKE2B c9b5b9b7e1e1184c1c7a69fbf49cc3e3744197e2dd5b3750358332322cfa71eeccb3d81c84e3381982eeb8868b601a72fa62fd784ca22b661fffe8536879cee2 SHA512 023cbc18933038b9323f8f8c19231929b9e9f93af8efbb8331b5ade394215c5501f48b9d41bb5c02260d4b502119a318e68800e7aa3be577c8670c580d179d46
22
DIST rst2pdf-0.103.1.tar.gz 12238284 BLAKE2B 8cafdf58b3ad1c63f13823e1371180a04b6c26360b6abb187f56a2f77edad230a71a9a96660acb6e96dc660b5cd2a0fcbc42372a60a9161de6391a332008bf73 SHA512 949be09a180501c51682988fa9e261217452f6f19189a5f70f8a6aaace60adceb247bac0646de66034f483b403cde00ea5d59d12325a8daea61330a58a5a08db
3+
DIST rst2pdf-0.105.tar.gz 12279670 BLAKE2B ada317adbe9d82b6bfebcf8ae7b70eefeea58e317c729b774f27243f8baaf1fa75c20b50e4bdae6672fcc14724c5e2a885810652b6e0afe547a6e09a0f21097c SHA512 0cac3a7731892746b3c12424392deb5125429ef992ee634af61917a85b4cdc5458b9edf29f98d0fb06deecae016d2536000d678918d5e03bbc9f45c4d42d0ad5
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{10..14} )
7+
DISTUTILS_USE_PEP517=setuptools
8+
9+
inherit distutils-r1 pypi
10+
11+
DESCRIPTION="Tool for transforming reStructuredText to PDF using ReportLab"
12+
HOMEPAGE="https://rst2pdf.org/ https://pypi.org/project/rst2pdf/"
13+
14+
LICENSE="MIT"
15+
SLOT="0"
16+
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
17+
IUSE="math sphinx svg"
18+
19+
BDEPEND="${PYTHON_DEPS}
20+
dev-python/jinja2[${PYTHON_USEDEP}]
21+
dev-python/pyyaml[${PYTHON_USEDEP}]
22+
dev-python/pygments[${PYTHON_USEDEP}]
23+
dev-python/smartypants[${PYTHON_USEDEP}]
24+
>=dev-python/reportlab-4.0[${PYTHON_USEDEP}]
25+
dev-python/setuptools-scm[${PYTHON_USEDEP}]
26+
>=dev-python/docutils-0.21.2[${PYTHON_USEDEP}]
27+
dev-python/importlib-metadata[${PYTHON_USEDEP}]
28+
math? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
29+
svg? ( dev-python/svglib[${PYTHON_USEDEP}] )
30+
sphinx? ( dev-python/sphinx[${PYTHON_USEDEP}] )
31+
"
32+
33+
# restrict tests because: the price is way too high (in both developer time
34+
# to unhork and cost per megawatt in cpu power)
35+
RESTRICT="test"
36+
37+
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
38+
39+
src_install() {
40+
distutils-r1_src_install
41+
pushd "${S}/doc" > /dev/null
42+
rst2man rst2pdf.rst output/rst2pdf.1
43+
popd > /dev/null
44+
doman doc/output/rst2pdf.1
45+
}
46+
47+
pkg_postinst() {
48+
if [[ -z ${REPLACING_VERSIONS} ]]; then
49+
elog "rst2pdf can work with the following packages for additional functionality:"
50+
elog " dev-python/sphinx - versatile documentation creation"
51+
elog " dev-python/pythonmagick - image processing with ImageMagick"
52+
elog " dev-python/matplotlib - mathematical formulae"
53+
elog "It can also use wordaxe for hyphenation, but this package is not"
54+
elog "available in the portage tree yet. Please refer to the manual"
55+
elog "installed in /usr/share/doc/${PF}/ for more information."
56+
fi
57+
}

0 commit comments

Comments
 (0)