/[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.10 Revision 1.12
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.10 2008/07/03 22:33:00 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.12 2008/07/14 16:42:48 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
33COMMON_DEPEND=">=app-text/texlive-core-${PV} 34COMMON_DEPEND=">=app-text/texlive-core-${PV}
34 ${TEXLIVE_MODULES_DEPS}" 35 ${TEXLIVE_MODULES_DEPS}"
36
37IUSE=""
35 38
36# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now 39# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
37# .tar.lzma 40# .tar.lzma
38if [ -z "${PV##2007*}" ] ; then 41if [ -z "${PV##2007*}" ] ; then
39for i in ${TEXLIVE_MODULE_CONTENTS}; do 42for i in ${TEXLIVE_MODULE_CONTENTS}; do
45for i in ${TEXLIVE_MODULE_CONTENTS}; do 48for i in ${TEXLIVE_MODULE_CONTENTS}; do
46 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma" 49 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
47done 50done
48DEPEND="${COMMON_DEPEND} 51DEPEND="${COMMON_DEPEND}
49 app-arch/lzma-utils" 52 app-arch/lzma-utils"
53IUSE="${IUSE} source"
50fi 54fi
51 55
52RDEPEND="${COMMON_DEPEND}" 56RDEPEND="${COMMON_DEPEND}"
53 57
54[ -z "${PN##*documentation*}" ] || IUSE="doc" 58[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc"
55 59
56S="${WORKDIR}" 60S="${WORKDIR}"
57 61
58# @FUNCTION: texlive-module_src_compile 62# @FUNCTION: texlive-module_src_compile
59# @DESCRIPTION: 63# @DESCRIPTION:
135 [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc 139 [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc
136 fi 140 fi
137 141
138 [ -d texmf ] && doins -r texmf 142 [ -d texmf ] && doins -r texmf
139 [ -d texmf-dist ] && doins -r texmf-dist 143 [ -d texmf-dist ] && doins -r texmf-dist
140 [ -d tlpkg ] && doins -r tlpkg 144 [ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && doins -r tlpkg
141 145
142 insinto /var/lib/texmf 146 insinto /var/lib/texmf
143 [ -d texmf-var ] && doins -r texmf-var/* 147 [ -d texmf-var ] && doins -r texmf-var/*
144 148
145 insinto /etc/texmf/updmap.d 149 insinto /etc/texmf/updmap.d

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20