/[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.27 Revision 1.28
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.27 2010/01/07 18:17:35 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.28 2010/01/07 18:42:47 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#
89 89
90[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc" 90[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc"
91 91
92S="${WORKDIR}" 92S="${WORKDIR}"
93 93
94if [ "${PV#2008}" == "${PV}" ]; then
95
96# @FUNCTION: texlive-module_src_unpack
97# @DESCRIPTION:
98# Only for TeX Live 2009.
99# Gives tar.xz unpack support until we can use an EAPI with that support.
100
101texlive-module_src_unpack() {
102 local i s
103 for i in ${A}
104 do
105 s="${DISTDIR%/}/${i}"
106 einfo "Unpacking ${s} to ${PWD}"
107 test -s "${s}" || die "${s} does not exist"
108 xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed"
109 done
110}
111
112fi
94 113
95# @FUNCTION: texlive-module_make_language_def_lines 114# @FUNCTION: texlive-module_make_language_def_lines
96# @DESCRIPTION: 115# @DESCRIPTION:
97# Only valid for TeXLive 2008.
98# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d 116# Creates a language.${PN}.def entry to put in /etc/texmf/language.def.d
99# It parses the AddHyphen directive of tlpobj files to create it. 117# It parses the AddHyphen directive of tlpobj files to create it.
100 118
101texlive-module_make_language_def_lines() { 119texlive-module_make_language_def_lines() {
102 local lefthyphenmin righthyphenmin synonyms name file 120 local lefthyphenmin righthyphenmin synonyms name file
268 ewarn "Your texmf tree might be inconsistent with your configuration" 286 ewarn "Your texmf tree might be inconsistent with your configuration"
269 ewarn "Please try to figure what has happened" 287 ewarn "Please try to figure what has happened"
270 fi 288 fi
271} 289}
272 290
291if [ "${PV#2008}" != "${PV}" ]; then
273EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm 292EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm
293else
294EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm
295fi

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20