diff options
| author | Andrey Grozin <grozin@gentoo.org> | 2017-09-28 18:12:24 +0700 |
|---|---|---|
| committer | Andrey Grozin <grozin@gentoo.org> | 2017-09-28 18:12:24 +0700 |
| commit | 4da89647dbe7849a6f1f3101341b58782ce57883 (patch) | |
| tree | f1c3fa1c7ffb6de7025edcb9403469bd5cc4a645 /dev-tex/pythontex/pythontex-0.16.ebuild | |
| parent | 8f80bc4e37f8e2af8ed7176bf7a61de27fb82504 (diff) | |
| download | gentoo-4da89647dbe7849a6f1f3101341b58782ce57883.tar.gz gentoo-4da89647dbe7849a6f1f3101341b58782ce57883.tar.bz2 gentoo-4da89647dbe7849a6f1f3101341b58782ce57883.zip | |
dev-tex/pythontex: initial import from science overlay
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-tex/pythontex/pythontex-0.16.ebuild')
| -rw-r--r-- | dev-tex/pythontex/pythontex-0.16.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-tex/pythontex/pythontex-0.16.ebuild b/dev-tex/pythontex/pythontex-0.16.ebuild new file mode 100644 index 000000000000..4e2cabb8f62e --- /dev/null +++ b/dev-tex/pythontex/pythontex-0.16.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +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-latex-2016" +RDEPEND="${DEPEND} + >=dev-texlive/texlive-latex-2016 + highlighting? ( 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 +} |
