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:20
Message-Id: 1381687269.8ab8f26a8eaba19780ff83ccda6cee608711ad67.alexxy@gentoo
1 commit: 8ab8f26a8eaba19780ff83ccda6cee608711ad67
2 Author: Horea Christian <h.chr <AT> mail <DOT> ru>
3 AuthorDate: Sun Oct 13 18:01:09 2013 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 13 18:01:09 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8ab8f26a
7
8 Finally works on all tested machines (creating the scripts normally, and the modules in the directory suggested by upstream)
9
10 ---
11 dev-tex/pythontex/pythontex-0.12.ebuild | 22 ++--------------------
12 1 file changed, 2 insertions(+), 20 deletions(-)
13
14 diff --git a/dev-tex/pythontex/pythontex-0.12.ebuild b/dev-tex/pythontex/pythontex-0.12.ebuild
15 index 6eeaadd..3f91516 100644
16 --- a/dev-tex/pythontex/pythontex-0.12.ebuild
17 +++ b/dev-tex/pythontex/pythontex-0.12.ebuild
18 @@ -8,7 +8,6 @@ PYTHON_COMPAT=( python{2_7,3_2,3_3} )
19
20 inherit latex-package python-single-r1
21
22 -S="${WORKDIR}/${PN}"
23 DESCRIPTION="Fast Access to Python from within LaTeX"
24 HOMEPAGE="https://github.com/gpoore/pythontex"
25 SRC_URI="https://github.com/gpoore/pythontex/raw/master/package_downloads/${PN}_${PV}.zip https://github.com/gpoore/pythontex/raw/master/package_downloads/old_versions/${PN}_${PV}.zip"
26 @@ -27,7 +26,6 @@ RDEPEND="${DEPEND}
27 TEXMF=/usr/share/texmf-site
28
29 S="${WORKDIR}"/${PN}
30 -
31 src_prepare() {
32 rm pythontex.sty || die "Could not remove pythontex.sty!"
33 }
34 @@ -36,7 +34,6 @@ src_compile() {
35 ebegin "Compiling ${PN}"
36 latex ${PN}.ins extra >/dev/null || die "Building style from ${PN}.ins failed"
37 eend
38 - sed -i -e '1i#!/usr/bin/env python' depythontex.py || die "adding shebang failed!"
39 sed -i -e '1i#!/usr/bin/env python' depythontex2.py || die "adding shebang failed!"
40 sed -i -e '1i#!/usr/bin/env python' depythontex3.py || die "adding shebang failed!"
41 }
42 @@ -44,41 +41,26 @@ src_compile() {
43 src_install() {
44 python_optimize .
45 if python_is_python3; then
46 - python_scriptinto /usr/share/texmf-site/scripts/${PN}/
47 python_newscript pythontex3.py pythontex.py
48 python_newscript depythontex3.py depythontex.py
49 - insinto /usr/share/texmf-site/scripts/${PN}/
50 - doins "${S}"/${PN}3.py
51 - else ! python_is_python3;
52 - python_scriptinto /usr/share/texmf-site/scripts/${PN}/
53 - python_newscript pythontex2.py pythontex.py
54 + else python_newscript pythontex2.py pythontex.py
55 python_doscript pythontex_2to3.py
56 python_newscript depythontex2.py depythontex.py
57 - insinto /usr/share/texmf-site/scripts/${PN}/
58 - doins "${S}"/${PN}2.py
59 fi
60
61 - python_moduleinto /usr/share/texmf-site/scripts/pythontex/
62 + python_moduleinto /usr/lib64/python-exec/python2.7
63 python_domodule "${S}"/pythontex_engines.py
64 python_domodule "${S}"/pythontex_utils.py
65
66 insinto /usr/share/texmf-site/tex/latex/pythontex/
67 doins "${S}"/pythontex.sty
68
69 - #insinto /usr/$(get_libdir)/python-exec
70 - #doins "${S}"/pythontex_engines.py
71 -
72 insinto /usr/share/texmf-site/source/latex/pythontex/
73 doins "${S}"/pythontex.dtx
74 doins "${S}"/pythontex.ins
75
76 latex-package_src_install
77
78 - #which env-updatedosym /usr/share/texmf-site/scripts/${PN}/${PN}.py /usr/bin/${PN}
79 -
80 - echo "PATH=/usr/share/texmf-site/scripts/pythontex/" >> "${T}"/99${PN} || die "Can't write environment variable."
81 - doenvd "${T}"/99${PN}
82 -
83 dodoc README
84 mktexlsr
85 }