/[gentoo-x86]/eclass/texlive-module.eclass
Gentoo

Diff of /eclass/texlive-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.70 Revision 1.71
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.70 2014/11/04 10:32:30 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.71 2015/07/30 12:59:09 aballier Exp $
4 4
5# @ECLASS: texlive-module.eclass 5# @ECLASS: texlive-module.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# tex@gentoo.org 7# tex@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
108 108
109RDEPEND="${COMMON_DEPEND}" 109RDEPEND="${COMMON_DEPEND}"
110 110
111[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc" 111[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc"
112 112
113# @ECLASS-VARIABLE: TEXLIVE_MODULE_OPTIONAL_ENGINE
114# @DESCRIPTION:
115# A space separated list of Tex engines that can be made optional.
116# e.g. "luatex luajittex"
117
118if [ -n "${TEXLIVE_MODULE_OPTIONAL_ENGINE}" ] ; then
119 for engine in ${TEXLIVE_MODULE_OPTIONAL_ENGINE} ; do
120 IUSE="${IUSE} +${engine}"
121 done
122fi
123
113S="${WORKDIR}" 124S="${WORKDIR}"
114 125
115# @FUNCTION: texlive-module_src_unpack 126# @FUNCTION: texlive-module_src_unpack
116# @DESCRIPTION: 127# @DESCRIPTION:
117# Only for TeX Live 2009 and later. 128# Only for TeX Live 2009 and later.
152 local name engine mode patterns options 163 local name engine mode patterns options
153 eval $@ 164 eval $@
154 einfo "Appending to format.${PN}.cnf for $@" 165 einfo "Appending to format.${PN}.cnf for $@"
155 [ -d texmf-dist/fmtutil ] || mkdir -p texmf-dist/fmtutil 166 [ -d texmf-dist/fmtutil ] || mkdir -p texmf-dist/fmtutil
156 [ -f texmf-dist/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN} by texlive-module.eclass" > texmf-dist/fmtutil/format.${PN}.cnf; } 167 [ -f texmf-dist/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN} by texlive-module.eclass" > texmf-dist/fmtutil/format.${PN}.cnf; }
168 [ -n "${TEXLIVE_MODULE_OPTIONAL_ENGINE}" ] && has ${engine} ${TEXLIVE_MODULE_OPTIONAL_ENGINE} && use !${engine} && mode="disabled"
157 if [ "${mode}" = "disabled" ]; then 169 if [ "${mode}" = "disabled" ]; then
158 printf "#! " >> texmf-dist/fmtutil/format.${PN}.cnf 170 printf "#! " >> texmf-dist/fmtutil/format.${PN}.cnf
159 fi 171 fi
160 [ -z "${patterns}" ] && patterns="-" 172 [ -z "${patterns}" ] && patterns="-"
161 printf "${name}\t${engine}\t${patterns}\t${options}\n" >> texmf-dist/fmtutil/format.${PN}.cnf 173 printf "${name}\t${engine}\t${patterns}\t${options}\n" >> texmf-dist/fmtutil/format.${PN}.cnf

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

  ViewVC Help
Powered by ViewVC 1.1.20