1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
11 DESCRIPTION="Python package for the generation of encapsulated PostScript figures"
12 HOMEPAGE="https://pyx.sourceforge.net/
13 https://pypi.org/project/PyX/"
14 SRC_URI="mirror://sourceforge/pyx/${MY_P}.tar.gz"
18 KEYWORDS="amd64 ~ia64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
21 RDEPEND="virtual/tex-base
22 dev-texlive/texlive-basic"
25 doc? ( virtual/latex-base
26 dev-python/sphinx[latex,${PYTHON_USEDEP}] )"
28 S="${WORKDIR}/${MY_P}"
31 distutils-r1_src_prepare
33 -e 's/^build_t1code=.*/build_t1code=1/' \
34 -e 's/^build_pykpathsea=.*/build_pykpathsea=1/' \
35 setup.cfg || die "setup.cfg fix failed"
38 python_compile_all() {
40 VARTEXFONTS="${T}"/fonts emake -C "${S}"/faq latexpdf
44 python_install_all() {
45 use doc && dodoc faq/_build/latex/pyxfaq.pdf
46 distutils-r1_python_install_all