mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
Closes: https://bugs.gentoo.org/show_bug.cgi?id=691386 Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Andrey Grozin <grozin@gentoo.org>
56 lines
1.2 KiB
Bash
56 lines
1.2 KiB
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
|
|
|
|
inherit latex-package python-r1
|
|
|
|
DESCRIPTION="Fast Access to Python from within LaTeX"
|
|
HOMEPAGE="https://github.com/gpoore/pythontex"
|
|
SRC_URI="https://github.com/gpoore/pythontex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
SLOT="0"
|
|
LICENSE="LPPL-1.3 BSD"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="highlighting"
|
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
DEPEND="${PYTHON_DEPS}
|
|
>=dev-texlive/texlive-latexextra-2016
|
|
dev-tex/pgf"
|
|
RDEPEND="${DEPEND}
|
|
dev-python/pygments[${PYTHON_USEDEP}]"
|
|
|
|
TEXMF=/usr/share/texmf-site
|
|
|
|
src_compile() {
|
|
cd ${PN} || die
|
|
ebegin "Compiling ${PN}"
|
|
rm ${PN}.sty || die
|
|
VARTEXFONTS="${T}/fonts" latex ${PN}.ins extra || die
|
|
eend
|
|
}
|
|
|
|
src_install() {
|
|
dodoc ${PN}/README "${S}"/*rst ${PN}_quickstart/*
|
|
|
|
cd ${PN} || die
|
|
|
|
installation() {
|
|
if python_is_python3; then
|
|
python_domodule {de,}${PN}3.py
|
|
else
|
|
python_domodule {de,}${PN}2.py
|
|
fi
|
|
python_domodule ${PN}_{engines,utils}.py
|
|
python_doscript {de,}${PN}.py syncpdb.py
|
|
python_optimize
|
|
}
|
|
python_foreach_impl installation
|
|
|
|
latex-package_src_doinstall dtx ins sty
|
|
}
|