/[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.36 Revision 1.37
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.36 2010/10/11 20:44:19 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.37 2010/10/23 16:38:26 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#
154# @DESCRIPTION: 154# @DESCRIPTION:
155# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d 155# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d
156# It parses the AddHyphen directive of tlpobj files to create it. 156# It parses the AddHyphen directive of tlpobj files to create it.
157 157
158texlive-module_make_language_def_lines() { 158texlive-module_make_language_def_lines() {
159 local lefthyphenmin righthyphenmin synonyms name file 159 local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions
160 eval $@ 160 eval $@
161 einfo "Generating language.def entry for $@" 161 einfo "Generating language.def entry for $@"
162 [ -z "$lefthyphenmin" ] && lefthyphenmin="2" 162 [ -z "$lefthyphenmin" ] && lefthyphenmin="2"
163 [ -z "$righthyphenmin" ] && righthyphenmin="3" 163 [ -z "$righthyphenmin" ] && righthyphenmin="3"
164 echo "\\addlanguage{$name}{$file}{}{$lefthyphenmin}{$righthyphenmin}" >> "${S}/language.${PN}.def" 164 echo "\\addlanguage{$name}{$file}{}{$lefthyphenmin}{$righthyphenmin}" >> "${S}/language.${PN}.def"
175# Only valid for TeXLive 2008. 175# Only valid for TeXLive 2008.
176# Creates a language.${PN}.dat entry to put in /etc/texmf/language.dat.d 176# Creates a language.${PN}.dat entry to put in /etc/texmf/language.dat.d
177# It parses the AddHyphen directive of tlpobj files to create it. 177# It parses the AddHyphen directive of tlpobj files to create it.
178 178
179texlive-module_make_language_dat_lines() { 179texlive-module_make_language_dat_lines() {
180 local lefthyphenmin righthyphenmin synonyms name file 180 local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions
181 eval $@ 181 eval $@
182 einfo "Generating language.dat entry for $@" 182 einfo "Generating language.dat entry for $@"
183 echo "$name $file" >> "${S}/language.${PN}.dat" 183 echo "$name $file" >> "${S}/language.${PN}.dat"
184 if [ -n "$synonyms" ] ; then 184 if [ -n "$synonyms" ] ; then
185 for i in $(echo $synonyms | tr ',' ' ') ; do 185 for i in $(echo $synonyms | tr ',' ' ') ; do

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.20