/[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.48
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.48 2010/10/23 23:28:24 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# If EAPI supports tar.xz then it calls unpack instead of its own unpacker.
110# After unpacking, the files that need to relocated are moved accordingly.
109 111
110RELOC_TARGET=texmf-dist 112RELOC_TARGET=texmf-dist
111 113
112texlive-module_src_unpack() { 114texlive-module_src_unpack() {
113 if has "${EAPI:-0}" 0 1 2 ; then 115 if has "${EAPI:-0}" 0 1 2 ; then
173 fi 175 fi
174} 176}
175 177
176# @FUNCTION: texlive-module_make_language_dat_lines 178# @FUNCTION: texlive-module_make_language_dat_lines
177# @DESCRIPTION: 179# @DESCRIPTION:
178# Only valid for TeXLive 2008.
179# Creates a language.${PN}.dat entry to put in /etc/texmf/language.dat.d 180# 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. 181# It parses the AddHyphen directive of tlpobj files to create it.
181 182
182texlive-module_make_language_dat_lines() { 183texlive-module_make_language_dat_lines() {
183 local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial 184 local lefthyphenmin righthyphenmin synonyms name file file_patterns file_exceptions luaspecial
227} 228}
228 229
229# @FUNCTION: texlive-module_src_compile 230# @FUNCTION: texlive-module_src_compile
230# @DESCRIPTION: 231# @DESCRIPTION:
231# exported function: 232# exported function:
232# Will look for format.foo.cnf and build foo format files using fmtutil 233# Generates the config files that are to be installed in /etc/texmf;
234# texmf-update script will take care of merging the different config files for
235# different packages in a single one used by the whole tex installation.
236#
237# 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 238# (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 239# texmf-var/web2c, like fmtutil defaults to but with some trick to stay in the
235# sandbox 240# 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 241
240texlive-module_src_compile() { 242texlive-module_src_compile() {
241 # Generate config files from the tlpobj files provided by TeX Live 2008 and 243 # Generate config files from the tlpobj files provided by TeX Live 2008 and
242 # later 244 # later
243 for i in "${S}"/tlpkg/tlpobj/*; 245 for i in "${S}"/tlpkg/tlpobj/*;

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

  ViewVC Help
Powered by ViewVC 1.1.20