Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-tex/pythontex/
Date: Thu, 07 Nov 2013 20:05:30
Message-Id: 1381687306.75724311f67f206376ebdcfd5caa4c5e30681ea3.alexxy@gentoo
1 commit: 75724311f67f206376ebdcfd5caa4c5e30681ea3
2 Author: Horea Christian <h.chr <AT> mail <DOT> ru>
3 AuthorDate: Sun Oct 13 18:01:46 2013 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 13 18:01:46 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=75724311
7
8 Created live ebuild to benefit from some fixes to the package which became obvious while writing the ebuildt.
9
10 ---
11 dev-tex/pythontex/pythontex-9999.ebuild | 65 +++++++++++++++++++++++++++++++++
12 1 file changed, 65 insertions(+)
13
14 diff --git a/dev-tex/pythontex/pythontex-9999.ebuild b/dev-tex/pythontex/pythontex-9999.ebuild
15 new file mode 100644
16 index 0000000..240c4be
17 --- /dev/null
18 +++ b/dev-tex/pythontex/pythontex-9999.ebuild
19 @@ -0,0 +1,65 @@
20 +# Copyright 1999-2012 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/envlab/envlab-1.2-r1.ebuild,v 1.18 2012/05/09 17:16:08 aballier Exp $
23 +
24 +EAPI=5
25 +
26 +PYTHON_COMPAT=( python{2_7,3_2,3_3} )
27 +
28 +inherit latex-package python-single-r1 git-2
29 +
30 +DESCRIPTION="Fast Access to Python from within LaTeX"
31 +HOMEPAGE="https://github.com/gpoore/pythontex"
32 +EGIT_REPO_URI="https://github.com/TheChymera/pythontex.git"
33 +SRC_URI=""
34 +
35 +
36 +SLOT="0"
37 +LICENSE="LPPL-1.3 BSD"
38 +KEYWORDS=""
39 +IUSE="highlighting"
40 +
41 +DEPEND="app-text/texlive
42 + ${PYTHON_DEPS}"
43 +
44 +RDEPEND="${DEPEND}
45 + highlighting? ( dev-python/pygments[${PYTHON_USEDEP}] )"
46 +
47 +src_prepare() {
48 + S="${WORKDIR}/${P}/${PN}"
49 + cd ${S}
50 +}
51 +
52 +src_compile() {
53 + ebegin "Compiling ${PN}"
54 + latex ${PN}.ins extra >/dev/null || die "Building style from ${PN}.ins failed"
55 + eend
56 +}
57 +
58 +src_install() {
59 + python_optimize .
60 + if python_is_python3; then
61 + #python_scriptinto /usr/share/texmf-site/scripts/${PN}/
62 + python_newscript pythontex3.py pythontex.py
63 + python_newscript depythontex3.py depythontex.py
64 + else python_newscript pythontex2.py pythontex.py
65 + python_doscript pythontex_2to3.py
66 + python_newscript depythontex2.py depythontex.py
67 + fi
68 +
69 + python_moduleinto /usr/lib64/python-exec/python2.7
70 + python_domodule "${S}"/pythontex_engines.py
71 + python_domodule "${S}"/pythontex_utils.py
72 +
73 + insinto /usr/share/texmf-site/tex/latex/pythontex/
74 + doins "${S}"/pythontex.sty
75 +
76 + insinto /usr/share/texmf-site/source/latex/pythontex/
77 + doins "${S}"/pythontex.dtx
78 + doins "${S}"/pythontex.ins
79 +
80 + latex-package_src_install
81 +
82 + dodoc README
83 + mktexlsr
84 +}