/[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.43 Revision 1.47
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.43 2010/10/23 23:21:10 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.47 2010/10/23 23:26:38 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#
60 60
61COMMON_DEPEND=">=app-text/texlive-core-${TL_PV:-${PV}}" 61COMMON_DEPEND=">=app-text/texlive-core-${TL_PV:-${PV}}"
62 62
63IUSE="source" 63IUSE="source"
64 64
65# TeX Live 2008 was providing .tar.lzma files of CTAN packages. For 2009 they are now 65# TeX Live 2008 was providing .tar.lzma files of CTAN packages.
66# .tar.xz 66# For 2009 and 2010 they are now .tar.xz
67if [ "${PV#2008}" != "${PV}" ]; then 67if [ "${PV#2008}" != "${PV}" ]; then
68 PKGEXT=tar.lzma 68 PKGEXT=tar.lzma
69 DEPEND="${COMMON_DEPEND} 69 DEPEND="${COMMON_DEPEND}
70 || ( app-arch/xz-utils app-arch/lzma-utils )" 70 || ( app-arch/xz-utils app-arch/lzma-utils )"
71else 71else
102 102
103if [ "${PV#2008}" = "${PV}" ]; then 103if [ "${PV#2008}" = "${PV}" ]; then
104 104
105# @FUNCTION: texlive-module_src_unpack 105# @FUNCTION: texlive-module_src_unpack
106# @DESCRIPTION: 106# @DESCRIPTION:
107# Only for TeX Live 2009. 107# Only for TeX Live 2009 and later.
108# Gives tar.xz unpack support until we can use an EAPI with that support. 108# Gives tar.xz unpack support until we can use an EAPI with that support.
109 109
110RELOC_TARGET=texmf-dist 110RELOC_TARGET=texmf-dist
111 111
112texlive-module_src_unpack() { 112texlive-module_src_unpack() {
173 fi 173 fi
174} 174}
175 175
176# @FUNCTION: texlive-module_make_language_dat_lines 176# @FUNCTION: texlive-module_make_language_dat_lines
177# @DESCRIPTION: 177# @DESCRIPTION:
178# Only valid for TeXLive 2008.
179# Creates a language.${PN}.dat entry to put in /etc/texmf/language.dat.d 178# Creates a language.${PN}.dat entry to put in /etc/texmf/language.dat.d
180# It parses the AddHyphen directive of tlpobj files to create it. 179# It parses the AddHyphen directive of tlpobj files to create it.
181 180
182texlive-module_make_language_dat_lines() { 181texlive-module_make_language_dat_lines() {
183 local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial 182 local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial
227} 226}
228 227
229# @FUNCTION: texlive-module_src_compile 228# @FUNCTION: texlive-module_src_compile
230# @DESCRIPTION: 229# @DESCRIPTION:
231# exported function: 230# exported function:
232# Will look for format.foo.cnf and build foo format files using fmtutil 231# Generates the config files that are to be installed in /etc/texmf;
232# texmf-update script will take care of merging the different config files for
233# different packages in a single one used by the whole tex installation.
234#
235# Once the config files are generated, we build the format files using fmtutil
233# (provided by texlive-core). The compiled format files will be sent to 236# (provided by texlive-core). The compiled format files will be sent to
234# texmf-var/web2c, like fmtutil defaults to but with some trick to stay in the 237# texmf-var/web2c, like fmtutil defaults to but with some trick to stay in the
235# sandbox 238# sandbox.
236# The next step is to generate config files that are to be installed in
237# /etc/texmf; texmf-update script will take care of merging the different config
238# files for different packages in a single one used by the whole tex installation.
239 239
240texlive-module_src_compile() { 240texlive-module_src_compile() {
241 # Generate config files from the tlpobj files provided by TeX Live 2008 and 241 # Generate config files from the tlpobj files provided by TeX Live 2008 and
242 # later 242 # later
243 for i in "${S}"/tlpkg/tlpobj/*; 243 for i in "${S}"/tlpkg/tlpobj/*;

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.47

  ViewVC Help
Powered by ViewVC 1.1.20