/[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.53 Revision 1.55
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.53 2010/10/23 23:51:58 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.55 2010/10/24 16:26:36 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# 8#
217 217
218texlive-module_make_language_lua_lines() { 218texlive-module_make_language_lua_lines() {
219 local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial 219 local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial
220 local dest="${S}/language.${PN}.dat.lua" 220 local dest="${S}/language.${PN}.dat.lua"
221 eval $@ 221 eval $@
222 [ -z "$lefthyphenmin" ] && lefthyphenmin="2"
223 [ -z "$righthyphenmin" ] && righthyphenmin="3"
222 einfo "Generating language.dat.lua entry for $@" 224 einfo "Generating language.dat.lua entry for $@"
223 printf "\t['%s'] = {\n" "$name" >> "$dest" 225 printf "\t['%s'] = {\n" "$name" >> "$dest"
224 printf "\t\tloader = '%s',\n" "$file" >> "$dest" 226 printf "\t\tloader = '%s',\n" "$file" >> "$dest"
225 printf "\t\tlefthyphenmin = %s,\n\t\trighthyphenmin = %s,\n" "$lefthyphenmin" "$righthyphenmin" >> "$dest" 227 printf "\t\tlefthyphenmin = %s,\n\t\trighthyphenmin = %s,\n" "$lefthyphenmin" "$righthyphenmin" >> "$dest"
226 printf "\t\tsynonyms = {%s },\n" "$(texlive-module_synonyms_to_language_lua_line "$synonyms")" >> "$dest" 228 printf "\t\tsynonyms = {%s },\n" "$(texlive-module_synonyms_to_language_lua_line "$synonyms")" >> "$dest"
352# exported function: 354# exported function:
353# Run texmf-update to ensure the tex installation is consistent with the 355# Run texmf-update to ensure the tex installation is consistent with the
354# installed texmf trees. 356# installed texmf trees.
355 357
356texlive-module_pkg_postinst() { 358texlive-module_pkg_postinst() {
357 if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then 359 etexmf-update
358 /usr/sbin/texmf-update
359 else
360 ewarn "Cannot run texmf-update for some reason."
361 ewarn "Your texmf tree might be inconsistent with your configuration"
362 ewarn "Please try to figure what has happened"
363 fi
364} 360}
365 361
366# @FUNCTION: texlive-module_pkg_postrm 362# @FUNCTION: texlive-module_pkg_postrm
367# @DESCRIPTION: 363# @DESCRIPTION:
368# exported function: 364# exported function:
369# Run texmf-update to ensure the tex installation is consistent with the 365# Run texmf-update to ensure the tex installation is consistent with the
370# installed texmf trees. 366# installed texmf trees.
371 367
372texlive-module_pkg_postrm() { 368texlive-module_pkg_postrm() {
373 if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then 369 etexmf-update
374 /usr/sbin/texmf-update
375 else
376 ewarn "Cannot run texmf-update for some reason."
377 ewarn "Your texmf tree might be inconsistent with your configuration"
378 ewarn "Please try to figure what has happened"
379 fi
380} 370}
381 371
382if [ "${PV#2008}" != "${PV}" ]; then 372if [ "${PV#2008}" != "${PV}" ]; then
383EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm 373EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm
384else 374else

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.55

  ViewVC Help
Powered by ViewVC 1.1.20