1 |
commit: 4da89647dbe7849a6f1f3101341b58782ce57883 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 28 11:12:24 2017 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 28 11:12:24 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4da89647 |
7 |
|
8 |
dev-tex/pythontex: initial import from science overlay |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
dev-tex/pythontex/Manifest | 1 + |
13 |
dev-tex/pythontex/metadata.xml | 14 +++++++++ |
14 |
dev-tex/pythontex/pythontex-0.16.ebuild | 55 +++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 70 insertions(+) |
16 |
|
17 |
diff --git a/dev-tex/pythontex/Manifest b/dev-tex/pythontex/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..38f63312ba3 |
20 |
--- /dev/null |
21 |
+++ b/dev-tex/pythontex/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pythontex-0.16.tar.gz 1787147 SHA256 b33cf0189319752ffd14bb5735d0f3570e68545da834793c6fa2c81e164b6f5e SHA512 9a84fd7b7f568308addf9ba01c46fadfaface54b9d484c766831f1048064288fd1ecb5c56774bb0041d8f5705f8d5f8a9cd7258dc33157467eca7b3c70259183 WHIRLPOOL 7c8bd31208e9c4dcb640cc79d1a1885233c544485fcd4bf65772f7d7bc4efa0a5a6c60d15bae9e7d9e27f833b1ef2b06ea313a7008c3f000ec9b017a63ad0fbd |
24 |
|
25 |
diff --git a/dev-tex/pythontex/metadata.xml b/dev-tex/pythontex/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000000..9586dee6f5e |
28 |
--- /dev/null |
29 |
+++ b/dev-tex/pythontex/metadata.xml |
30 |
@@ -0,0 +1,14 @@ |
31 |
+<?xml version='1.0' encoding='UTF-8'?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="project"> |
35 |
+ <email>sci@g.o</email> |
36 |
+ <name>Gentoo Science Project</name> |
37 |
+ </maintainer> |
38 |
+ <use> |
39 |
+ <flag name="highlighting">Syntax highlighting using <pkg>dev-python/pygments</pkg></flag> |
40 |
+ </use> |
41 |
+ <upstream> |
42 |
+ <remote-id type="github">gpoore/pythontex</remote-id> |
43 |
+ </upstream> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/dev-tex/pythontex/pythontex-0.16.ebuild b/dev-tex/pythontex/pythontex-0.16.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..4e2cabb8f62 |
49 |
--- /dev/null |
50 |
+++ b/dev-tex/pythontex/pythontex-0.16.ebuild |
51 |
@@ -0,0 +1,55 @@ |
52 |
+# Copyright 1999-2017 Gentoo Foundation |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=6 |
56 |
+ |
57 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
58 |
+ |
59 |
+inherit latex-package python-r1 |
60 |
+ |
61 |
+DESCRIPTION="Fast Access to Python from within LaTeX" |
62 |
+HOMEPAGE="https://github.com/gpoore/pythontex" |
63 |
+SRC_URI="https://github.com/gpoore/pythontex/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
64 |
+ |
65 |
+SLOT="0" |
66 |
+LICENSE="LPPL-1.3 BSD" |
67 |
+KEYWORDS="~amd64 ~x86" |
68 |
+IUSE="highlighting" |
69 |
+ |
70 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
71 |
+ |
72 |
+DEPEND="${PYTHON_DEPS} |
73 |
+ >=dev-texlive/texlive-latex-2016" |
74 |
+RDEPEND="${DEPEND} |
75 |
+ >=dev-texlive/texlive-latex-2016 |
76 |
+ highlighting? ( dev-python/pygments[${PYTHON_USEDEP}] )" |
77 |
+ |
78 |
+TEXMF=/usr/share/texmf-site |
79 |
+ |
80 |
+src_compile() { |
81 |
+ cd ${PN} || die |
82 |
+ ebegin "Compiling ${PN}" |
83 |
+ rm ${PN}.sty || die |
84 |
+ VARTEXFONTS="${T}/fonts" latex ${PN}.ins extra || die |
85 |
+ eend |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ dodoc ${PN}/README "${S}"/*rst ${PN}_quickstart/* |
90 |
+ |
91 |
+ cd ${PN} || die |
92 |
+ |
93 |
+ installation() { |
94 |
+ if python_is_python3; then |
95 |
+ python_domodule {de,}${PN}3.py |
96 |
+ else |
97 |
+ python_domodule {de,}${PN}2.py |
98 |
+ fi |
99 |
+ python_domodule ${PN}_{engines,utils}.py |
100 |
+ python_doscript {de,}${PN}.py syncpdb.py |
101 |
+ python_optimize |
102 |
+ } |
103 |
+ python_foreach_impl installation |
104 |
+ |
105 |
+ latex-package_src_doinstall dtx ins sty |
106 |
+} |