1 |
commit: adb0978ba3c0bfee82e7df1cb50fee3a25eef219 |
2 |
Author: Horea Christian <h.chr <AT> mail <DOT> ru> |
3 |
AuthorDate: Thu Oct 10 01:10:14 2013 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 10 01:10:14 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=adb0978b |
7 |
|
8 |
Now also copying unused pythontex*.py files |
9 |
|
10 |
--- |
11 |
dev-tex/pythontex/pythontex-0.12.ebuild | 25 ++++++++++++++++++------- |
12 |
1 file changed, 18 insertions(+), 7 deletions(-) |
13 |
|
14 |
diff --git a/dev-tex/pythontex/pythontex-0.12.ebuild b/dev-tex/pythontex/pythontex-0.12.ebuild |
15 |
index 75c2dfe..dd9334a 100644 |
16 |
--- a/dev-tex/pythontex/pythontex-0.12.ebuild |
17 |
+++ b/dev-tex/pythontex/pythontex-0.12.ebuild |
18 |
@@ -25,6 +25,8 @@ RDEPEND="${DEPEND} |
19 |
|
20 |
TEXMF=/usr/share/texmf-site |
21 |
|
22 |
+S="${WORKDIR}"/${PN} |
23 |
+ |
24 |
src_prepare() { |
25 |
rm pythontex.sty |
26 |
} |
27 |
@@ -44,6 +46,8 @@ src_install() { |
28 |
python_scriptinto /usr/share/texmf-site/scripts/pythontex/ |
29 |
python_newscript pythontex3.py pythontex.py |
30 |
python_newscript depythontex3.py depythontex.py |
31 |
+ insinto /usr/share/texmf-site/scripts/${PN}/ |
32 |
+ doins "${S}"/${PN}3.py |
33 |
fi |
34 |
|
35 |
if ! python_is_python3; then |
36 |
@@ -51,24 +55,31 @@ src_install() { |
37 |
python_newscript pythontex2.py pythontex.py |
38 |
python_doscript pythontex_2to3.py |
39 |
python_newscript depythontex2.py depythontex.py |
40 |
+ insinto /usr/share/texmf-site/scripts/${PN}/ |
41 |
+ doins "${S}"/${PN}2.py |
42 |
fi |
43 |
|
44 |
insinto /usr/share/texmf-site/scripts/pythontex/ |
45 |
- doins pythontex_engines.py pythontex_utils.py |
46 |
+ dolib "${S}"/pythontex_engines.py |
47 |
+ dolib "${S}"/pythontex_utils.py |
48 |
|
49 |
insinto /usr/share/texmf-site/tex/latex/pythontex/ |
50 |
- doins pythontex.sty |
51 |
+ doins "${S}"/pythontex.sty |
52 |
|
53 |
- insinto /usr/share/texmf-site/source/latex/pythontex/ |
54 |
- doins pythontex.dtx pythontex.ins |
55 |
+ #insinto /usr/$(get_libdir)/python-exec |
56 |
+ #doins "${S}"/pythontex_engines.py |
57 |
|
58 |
+ insinto /usr/share/texmf-site/source/latex/pythontex/ |
59 |
+ doins "${S}"/pythontex.dtx |
60 |
+ doins "${S}"/pythontex.ins |
61 |
+ |
62 |
latex-package_src_install |
63 |
- |
64 |
+ |
65 |
+ dosym /usr/share/texmf-site/scripts/${PN}/${PN}.py /usr/bin/${PN} |
66 |
+ |
67 |
echo "LDPATH=/usr/share/texmf-site/scripts/pythontex/" >> "${T}"/99${PN} || die "Can't write environment variable." |
68 |
doenvd "${T}"/99${PN} |
69 |
|
70 |
dodoc README |
71 |
- pwd |
72 |
mktexlsr |
73 |
- pwd |
74 |
} |