/[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.65 Revision 1.66
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.65 2013/06/28 12:43:54 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.66 2013/07/05 22:43:41 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:
145 145
146texlive-module_add_format() { 146texlive-module_add_format() {
147 local name engine mode patterns options 147 local name engine mode patterns options
148 eval $@ 148 eval $@
149 einfo "Appending to format.${PN}.cnf for $@" 149 einfo "Appending to format.${PN}.cnf for $@"
150 [ -d texmf/fmtutil ] || mkdir -p texmf/fmtutil 150 [ -d texmf-dist/fmtutil ] || mkdir -p texmf-dist/fmtutil
151 [ -f texmf/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN} by texlive-module.eclass" > texmf/fmtutil/format.${PN}.cnf; } 151 [ -f texmf-dist/fmtutil/format.${PN}.cnf ] || { echo "# Generated for ${PN} by texlive-module.eclass" > texmf-dist/fmtutil/format.${PN}.cnf; }
152 if [ "${mode}" = "disabled" ]; then 152 if [ "${mode}" = "disabled" ]; then
153 printf "#! " >> texmf/fmtutil/format.${PN}.cnf 153 printf "#! " >> texmf-dist/fmtutil/format.${PN}.cnf
154 fi 154 fi
155 [ -z "${patterns}" ] && patterns="-" 155 [ -z "${patterns}" ] && patterns="-"
156 printf "${name}\t${engine}\t${patterns}\t${options}\n" >> texmf/fmtutil/format.${PN}.cnf 156 printf "${name}\t${engine}\t${patterns}\t${options}\n" >> texmf-dist/fmtutil/format.${PN}.cnf
157} 157}
158 158
159# @FUNCTION: texlive-module_make_language_def_lines 159# @FUNCTION: texlive-module_make_language_def_lines
160# @DESCRIPTION: 160# @DESCRIPTION:
161# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d. 161# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d.
282 die "No rule to proccess ${command}. Please file a bug." 282 die "No rule to proccess ${command}. Please file a bug."
283 esac 283 esac
284 done 284 done
285 285
286 # Build format files 286 # Build format files
287 for i in texmf/fmtutil/format*.cnf; do 287 for i in texmf-dist/fmtutil/format*.cnf; do
288 if [ -f "${i}" ]; then 288 if [ -f "${i}" ]; then
289 einfo "Building format ${i}" 289 einfo "Building format ${i}"
290 [ -d texmf-var ] || mkdir texmf-var 290 [ -d texmf-var ] || mkdir texmf-var
291 [ -d texmf-var/web2c ] || mkdir texmf-var/web2c 291 [ -d texmf-var/web2c ] || mkdir texmf-var/web2c
292 VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\ 292 VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
304# @DESCRIPTION: 304# @DESCRIPTION:
305# exported function: 305# exported function:
306# Installs texmf and config files to the system. 306# Installs texmf and config files to the system.
307 307
308texlive-module_src_install() { 308texlive-module_src_install() {
309 for i in texmf/fmtutil/format*.cnf; do 309 for i in texmf-dist/fmtutil/format*.cnf; do
310 [ -f "${i}" ] && etexlinks "${i}" 310 [ -f "${i}" ] && etexlinks "${i}"
311 done 311 done
312 312
313 dodir /usr/share 313 dodir /usr/share
314 if [ -z "${PN##*documentation*}" ] || use doc; then 314 if [ -z "${PN##*documentation*}" ] || use doc; then
354 dosym ${i%:*} /usr/bin/${i#*:} 354 dosym ${i%:*} /usr/bin/${i#*:}
355 done 355 done
356 fi 356 fi
357 357
358 texlive-common_handle_config_files 358 texlive-common_handle_config_files
359 TEXMF_PATH=${TEXMF_DIST_PATH} texlive-common_handle_config_files
359} 360}
360 361
361# @FUNCTION: texlive-module_pkg_postinst 362# @FUNCTION: texlive-module_pkg_postinst
362# @DESCRIPTION: 363# @DESCRIPTION:
363# exported function: 364# exported function:

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

  ViewVC Help
Powered by ViewVC 1.1.20