/[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.55 Revision 1.57
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.55 2010/10/24 16:26:36 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.57 2010/11/07 19:46:55 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#
52# @DESCRIPTION: 52# @DESCRIPTION:
53# Normally the module's PV reflects the TeXLive release it belongs to. 53# Normally the module's PV reflects the TeXLive release it belongs to.
54# If this is not the case, TL_PV takes the version number for the 54# If this is not the case, TL_PV takes the version number for the
55# needed app-text/texlive-core. 55# needed app-text/texlive-core.
56 56
57# @ECLASS-VARIABLE: TL_MODULE_INFORMATION
58# @DESCRIPTION:
59# Information to display about the package.
60# e.g. for enabling/disabling a feature
61
57inherit texlive-common 62inherit texlive-common
58 63
59HOMEPAGE="http://www.tug.org/texlive/" 64HOMEPAGE="http://www.tug.org/texlive/"
60 65
61COMMON_DEPEND=">=app-text/texlive-core-${TL_PV:-${PV}}" 66COMMON_DEPEND=">=app-text/texlive-core-${TL_PV:-${PV}}"
112RELOC_TARGET=texmf-dist 117RELOC_TARGET=texmf-dist
113 118
114texlive-module_src_unpack() { 119texlive-module_src_unpack() {
115 if has "${EAPI:-0}" 0 1 2 ; then 120 if has "${EAPI:-0}" 0 1 2 ; then
116 local i s 121 local i s
122 # Avoid installing world writable files
123 # Bugs #309997, #310039, #338881
124 umask 022
117 for i in ${A} 125 for i in ${A}
118 do 126 do
119 s="${DISTDIR%/}/${i}" 127 s="${DISTDIR%/}/${i}"
120 einfo "Unpacking ${s} to ${PWD}" 128 einfo "Unpacking ${s} to ${PWD}"
121 test -s "${s}" || die "${s} does not exist" 129 test -s "${s}" || die "${s} does not exist"
355# Run texmf-update to ensure the tex installation is consistent with the 363# Run texmf-update to ensure the tex installation is consistent with the
356# installed texmf trees. 364# installed texmf trees.
357 365
358texlive-module_pkg_postinst() { 366texlive-module_pkg_postinst() {
359 etexmf-update 367 etexmf-update
368 [ -n "${TL_MODULE_INFORMATION}" ] && elog "${TL_MODULE_INFORMATION}"
360} 369}
361 370
362# @FUNCTION: texlive-module_pkg_postrm 371# @FUNCTION: texlive-module_pkg_postrm
363# @DESCRIPTION: 372# @DESCRIPTION:
364# exported function: 373# exported function:

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

  ViewVC Help
Powered by ViewVC 1.1.20