1 |
aballier 15/07/30 12:59:10 |
2 |
|
3 |
Modified: texlive-module.eclass |
4 |
Log: |
5 |
Add support for TEXLIVE_MODULE_OPTIONAL_ENGINE eclass variable to allow disabling some tex engines from ebuilds. Part of bug #542620 |
6 |
|
7 |
Revision Changes Path |
8 |
1.71 eclass/texlive-module.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.71&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?rev=1.71&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-module.eclass?r1=1.70&r2=1.71 |
13 |
|
14 |
Index: texlive-module.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v |
17 |
retrieving revision 1.70 |
18 |
retrieving revision 1.71 |
19 |
diff -u -r1.70 -r1.71 |
20 |
--- texlive-module.eclass 4 Nov 2014 10:32:30 -0000 1.70 |
21 |
+++ texlive-module.eclass 30 Jul 2015 12:59:09 -0000 1.71 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2014 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.70 2014/11/04 10:32:30 aballier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.71 2015/07/30 12:59:09 aballier Exp $ |
27 |
|
28 |
# @ECLASS: texlive-module.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -110,6 +110,17 @@ |
31 |
|
32 |
[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc" |
33 |
|
34 |
+# @ECLASS-VARIABLE: TEXLIVE_MODULE_OPTIONAL_ENGINE |
35 |
+# @DESCRIPTION: |
36 |
+# A space separated list of Tex engines that can be made optional. |
37 |
+# e.g. "luatex luajittex" |
38 |
+ |
39 |
+if [ -n "${TEXLIVE_MODULE_OPTIONAL_ENGINE}" ] ; then |
40 |
+ for engine in ${TEXLIVE_MODULE_OPTIONAL_ENGINE} ; do |
41 |
+ IUSE="${IUSE} +${engine}" |
42 |
+ done |
43 |
+fi |
44 |
+ |
45 |
S="${WORKDIR}" |
46 |
|
47 |
# @FUNCTION: texlive-module_src_unpack |
48 |
@@ -154,6 +165,7 @@ |
49 |
einfo "Appending to format.${PN}.cnf for $@" |
50 |
[ -d texmf-dist/fmtutil ] || mkdir -p texmf-dist/fmtutil |
51 |
[ -f texmf-dist/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN} by texlive-module.eclass" > texmf-dist/fmtutil/format.${PN}.cnf; } |
52 |
+ [ -n "${TEXLIVE_MODULE_OPTIONAL_ENGINE}" ] && has ${engine} ${TEXLIVE_MODULE_OPTIONAL_ENGINE} && use !${engine} && mode="disabled" |
53 |
if [ "${mode}" = "disabled" ]; then |
54 |
printf "#! " >> texmf-dist/fmtutil/format.${PN}.cnf |
55 |
fi |