mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
Result of running the command: grep --include="*.ebuild" -r . -e 'KEYWORDS=.*[" ]sparc' -l | xargs ekeyword ~sparc Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
83 lines
1.9 KiB
Bash
83 lines
1.9 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=flit
|
|
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
|
|
|
inherit distutils-r1 pypi
|
|
|
|
DESCRIPTION="Python Documentation Utilities (reference reStructuredText impl.)"
|
|
HOMEPAGE="
|
|
https://docutils.sourceforge.io/
|
|
https://pypi.org/project/docutils/
|
|
"
|
|
|
|
# GPL-3+ only for emacs/rst.el
|
|
LICENSE="BSD BSD-2 GPL-3+ PSF-2.4 public-domain"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
|
|
|
RDEPEND="
|
|
dev-python/pillow[${PYTHON_USEDEP}]
|
|
dev-python/pygments[${PYTHON_USEDEP}]
|
|
"
|
|
BDEPEND="
|
|
${RDEPEND}
|
|
"
|
|
|
|
PATCHES=(
|
|
# r10019 upstream
|
|
"${FILESDIR}/${P}-pygments-2.19.patch"
|
|
# this changed back at some point, but upstream didn't hit it
|
|
# because of https://sourceforge.net/p/docutils/bugs/500/
|
|
"${FILESDIR}/${P}-pillow.patch"
|
|
)
|
|
|
|
python_compile_all() {
|
|
# Generate html docs from reStructured text sources.
|
|
|
|
# Place html4css1.css in base directory to ensure that the generated reference to it is correct.
|
|
cp docutils/writers/html4css1/html4css1.css . || die
|
|
|
|
cd tools || die
|
|
"${EPYTHON}" buildhtml.py --input-encoding=utf-8 --no-datestamp \
|
|
--stylesheet-path=../html4css1.css, --traceback ../docs || die
|
|
}
|
|
|
|
src_test() {
|
|
cd test || die
|
|
distutils-r1_src_test
|
|
}
|
|
|
|
python_test() {
|
|
"${EPYTHON}" alltests.py -v || die "Testing failed with ${EPYTHON}"
|
|
}
|
|
|
|
python_install() {
|
|
distutils-r1_python_install
|
|
|
|
# Install tools.
|
|
python_doscript tools/buildhtml.py
|
|
}
|
|
|
|
install_txt_doc() {
|
|
local doc="${1}"
|
|
local dir="txt/$(dirname ${doc})"
|
|
docinto "${dir}"
|
|
dodoc "${doc}"
|
|
}
|
|
|
|
python_install_all() {
|
|
local DOCS=( *.txt )
|
|
local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css )
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
local doc
|
|
while IFS= read -r -d '' doc; do
|
|
install_txt_doc "${doc}"
|
|
done < <(find docs tools -name '*.txt' -print0)
|
|
}
|