/[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.9 Revision 1.11
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.9 2008/07/03 21:06:25 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.11 2008/07/03 22:36:12 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#
22# @ECLASS-VARIABLE: TEXLIVE_MODULE_CONTENTS 22# @ECLASS-VARIABLE: TEXLIVE_MODULE_CONTENTS
23# @DESCRIPTION: 23# @DESCRIPTION:
24# The list of packages that will be installed. This variable will be expanded to 24# The list of packages that will be installed. This variable will be expanded to
25# SRC_URI: 25# SRC_URI:
26# 26#
27# foo -> texlive-module-foo-${PV}.zip 27# For TeX Live 2007: foo -> texlive-module-foo-${PV}.zip
28# For TeX Live 2008: foo -> texlive-module-foo-${PV}.tar.lzma
28 29
29inherit texlive-common 30inherit texlive-common
30 31
31HOMEPAGE="http://www.tug.org/texlive/" 32HOMEPAGE="http://www.tug.org/texlive/"
32 33
49 app-arch/lzma-utils" 50 app-arch/lzma-utils"
50fi 51fi
51 52
52RDEPEND="${COMMON_DEPEND}" 53RDEPEND="${COMMON_DEPEND}"
53 54
54IUSE="doc" 55[ -z "${PN##*documentation*}" ] || IUSE="doc"
55 56
56S="${WORKDIR}" 57S="${WORKDIR}"
57 58
58# @FUNCTION: texlive-module_src_compile 59# @FUNCTION: texlive-module_src_compile
59# @DESCRIPTION: 60# @DESCRIPTION:
126 for i in texmf/fmtutil/format*.cnf; do 127 for i in texmf/fmtutil/format*.cnf; do
127 [ -f "${i}" ] && etexlinks "${i}" 128 [ -f "${i}" ] && etexlinks "${i}"
128 done 129 done
129 130
130 insinto /usr/share 131 insinto /usr/share
131 if use doc; then 132 if [ -z "${PN##*documentation*}" ] || use doc; then
132 [ -d texmf-doc ] && doins -r texmf-doc 133 [ -d texmf-doc ] && doins -r texmf-doc
133 else 134 else
134 [ -d texmf/doc ] && rm -rf texmf/doc 135 [ -d texmf/doc ] && rm -rf texmf/doc
135 [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc 136 [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc
136 fi 137 fi

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20