aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-05-12 13:18:22 +0200
committerJustin Lecher <jlec@gentoo.org>2015-05-12 13:18:22 +0200
commita6372f0b12ae1e55d8bcce29c3b2d673e752b639 (patch)
tree5ec1855ef5fe62de32ef7c92cde0b0b49e9dac5e /dev-tex/pythontex/pythontex-0.14-r1.ebuild
parentsci-biology/igv: added upstream patch, version bump (diff)
downloadsci-a6372f0b12ae1e55d8bcce29c3b2d673e752b639.tar.gz
sci-a6372f0b12ae1e55d8bcce29c3b2d673e752b639.tar.bz2
sci-a6372f0b12ae1e55d8bcce29c3b2d673e752b639.zip
dev-tex/pythontex: Fix installation of latex files, bug #548534
Package-Manager: portage-2.2.18
Diffstat (limited to 'dev-tex/pythontex/pythontex-0.14-r1.ebuild')
-rw-r--r--dev-tex/pythontex/pythontex-0.14-r1.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-tex/pythontex/pythontex-0.14-r1.ebuild b/dev-tex/pythontex/pythontex-0.14-r1.ebuild
new file mode 100644
index 000000000..d49ef7f23
--- /dev/null
+++ b/dev-tex/pythontex/pythontex-0.14-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{3,4} )
+
+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"
+IUSE="highlighting"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ dev-texlive/texlive-latex"
+RDEPEND="${DEPEND}
+ dev-texlive/texlive-xetex
+ >=dev-python/matplotlib-1.2.0[${PYTHON_USEDEP}]
+ highlighting? ( dev-python/pygments[${PYTHON_USEDEP}] )"
+
+TEXMF=/usr/share/texmf-site
+
+src_compile() {
+ cd ${PN} || die
+ ebegin "Compiling ${PN}"
+ rm ${PN}.sty || die
+ 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
+}