1 |
aballier 10/01/07 18:42:48 |
2 |
|
3 |
Modified: texlive-module.eclass |
4 |
Log: |
5 |
give unpack support for tl2009 |
6 |
|
7 |
Revision Changes Path |
8 |
1.28 eclass/texlive-module.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.28&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.28&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.27&r2=1.28 |
13 |
|
14 |
Index: texlive-module.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v |
17 |
retrieving revision 1.27 |
18 |
retrieving revision 1.28 |
19 |
diff -u -r1.27 -r1.28 |
20 |
--- texlive-module.eclass 7 Jan 2010 18:17:35 -0000 1.27 |
21 |
+++ texlive-module.eclass 7 Jan 2010 18:42:47 -0000 1.28 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.27 2010/01/07 18:17:35 aballier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.28 2010/01/07 18:42:47 aballier Exp $ |
27 |
|
28 |
# @ECLASS: texlive-module.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -91,10 +91,28 @@ |
31 |
|
32 |
S="${WORKDIR}" |
33 |
|
34 |
+if [ "${PV#2008}" == "${PV}" ]; then |
35 |
+ |
36 |
+# @FUNCTION: texlive-module_src_unpack |
37 |
+# @DESCRIPTION: |
38 |
+# Only for TeX Live 2009. |
39 |
+# Gives tar.xz unpack support until we can use an EAPI with that support. |
40 |
+ |
41 |
+texlive-module_src_unpack() { |
42 |
+ local i s |
43 |
+ for i in ${A} |
44 |
+ do |
45 |
+ s="${DISTDIR%/}/${i}" |
46 |
+ einfo "Unpacking ${s} to ${PWD}" |
47 |
+ test -s "${s}" || die "${s} does not exist" |
48 |
+ xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed" |
49 |
+ done |
50 |
+} |
51 |
+ |
52 |
+fi |
53 |
|
54 |
# @FUNCTION: texlive-module_make_language_def_lines |
55 |
# @DESCRIPTION: |
56 |
-# Only valid for TeXLive 2008. |
57 |
# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d |
58 |
# It parses the AddHyphen directive of tlpobj files to create it. |
59 |
|
60 |
@@ -270,4 +288,8 @@ |
61 |
fi |
62 |
} |
63 |
|
64 |
+if [ "${PV#2008}" != "${PV}" ]; then |
65 |
EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm |
66 |
+else |
67 |
+EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm |
68 |
+fi |