1 |
aballier 08/09/02 09:56:31 |
2 |
|
3 |
Modified: texlive-common.eclass texlive-module.eclass |
4 |
Log: |
5 |
add a small function to install a script from the texmf tree, add TEXLIVE_MODULE_BINSCRIPTS variable to texlive-module so that ebuilds can use it easily |
6 |
|
7 |
Revision Changes Path |
8 |
1.7 eclass/texlive-common.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-common.eclass?rev=1.7&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-common.eclass?rev=1.7&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-common.eclass?r1=1.6&r2=1.7 |
13 |
|
14 |
Index: texlive-common.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v |
17 |
retrieving revision 1.6 |
18 |
retrieving revision 1.7 |
19 |
diff -u -r1.6 -r1.7 |
20 |
--- texlive-common.eclass 30 Aug 2008 12:33:37 -0000 1.6 |
21 |
+++ texlive-common.eclass 2 Sep 2008 09:56:31 -0000 1.7 |
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-common.eclass,v 1.6 2008/08/30 12:33:37 aballier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.7 2008/09/02 09:56:31 aballier Exp $ |
27 |
|
28 |
# @ECLASS: texlive-common.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -108,3 +108,15 @@ |
31 |
texlive-common_do_symlinks $(sed '/^[ ]*#/d; /^[ ]*$/d' "$1" | awk '{print $1, $2}') |
32 |
} |
33 |
|
34 |
+# @FUNCTION: dobin_texmf_scripts |
35 |
+# @USAGE: < file1 file2 ... > |
36 |
+# @DESCRIPTION: |
37 |
+# Installs a script from the texmf tree |
38 |
+ |
39 |
+dobin_texmf_scripts() { |
40 |
+ while [ $# -gt 0 ] ; do |
41 |
+ local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]') |
42 |
+ newbin ${1} $trg || die "failed to install ${1} as $trg" |
43 |
+ shift |
44 |
+ done |
45 |
+} |
46 |
|
47 |
|
48 |
|
49 |
1.17 eclass/texlive-module.eclass |
50 |
|
51 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.17&view=markup |
52 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.17&content-type=text/plain |
53 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.16&r2=1.17 |
54 |
|
55 |
Index: texlive-module.eclass |
56 |
=================================================================== |
57 |
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v |
58 |
retrieving revision 1.16 |
59 |
retrieving revision 1.17 |
60 |
diff -u -r1.16 -r1.17 |
61 |
--- texlive-module.eclass 22 Aug 2008 11:32:30 -0000 1.16 |
62 |
+++ texlive-module.eclass 2 Sep 2008 09:56:31 -0000 1.17 |
63 |
@@ -1,6 +1,6 @@ |
64 |
# Copyright 1999-2008 Gentoo Foundation |
65 |
# Distributed under the terms of the GNU General Public License v2 |
66 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.16 2008/08/22 11:32:30 aballier Exp $ |
67 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.17 2008/09/02 09:56:31 aballier Exp $ |
68 |
|
69 |
# @ECLASS: texlive-module.eclass |
70 |
# @MAINTAINER: |
71 |
@@ -232,6 +232,7 @@ |
72 |
insinto /etc/texmf/language.dat.d |
73 |
doins "${S}/language.${PN}.dat" |
74 |
fi |
75 |
+ [ -n "${TEXLIVE_MODULE_BINSCRIPTS}" ] && dobin_texmf_scripts ${TEXLIVE_MODULE_BINSCRIPTS} |
76 |
|
77 |
texlive-common_handle_config_files |
78 |
} |