/[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.11 Revision 1.13
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.11 2008/07/03 22:36:12 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.13 2008/07/15 10:33:40 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#
25# SRC_URI: 25# SRC_URI:
26# 26#
27# For TeX Live 2007: 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# For TeX Live 2008: foo -> texlive-module-foo-${PV}.tar.lzma
29 29
30# @ECLASS-VARIABLE: TEXLIVE_MODULE_DOC_CONTENTS
31# @DESCRIPTION:
32# The list of packages that will be installed if the doc useflag is enabled.
33# Expansion to SRC_URI is the same as for TEXLIVE_MODULE_CONTENTS. This is only
34# valid for TeX Live 2008
35
36# @ECLASS-VARIABLE: TEXLIVE_MODULE_SRC_CONTENTS
37# @DESCRIPTION:
38# The list of packages that will be installed if the source useflag is enabled.
39# Expansion to SRC_URI is the same as for TEXLIVE_MODULE_CONTENTS. This is only
40# valid for TeX Live 2008
41
30inherit texlive-common 42inherit texlive-common
31 43
32HOMEPAGE="http://www.tug.org/texlive/" 44HOMEPAGE="http://www.tug.org/texlive/"
33 45
34COMMON_DEPEND=">=app-text/texlive-core-${PV} 46COMMON_DEPEND=">=app-text/texlive-core-${PV}
35 ${TEXLIVE_MODULES_DEPS}" 47 ${TEXLIVE_MODULES_DEPS}"
48
49IUSE=""
36 50
37# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now 51# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
38# .tar.lzma 52# .tar.lzma
39if [ -z "${PV##2007*}" ] ; then 53if [ -z "${PV##2007*}" ] ; then
40for i in ${TEXLIVE_MODULE_CONTENTS}; do 54for i in ${TEXLIVE_MODULE_CONTENTS}; do
46for i in ${TEXLIVE_MODULE_CONTENTS}; do 60for i in ${TEXLIVE_MODULE_CONTENTS}; do
47 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma" 61 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
48done 62done
49DEPEND="${COMMON_DEPEND} 63DEPEND="${COMMON_DEPEND}
50 app-arch/lzma-utils" 64 app-arch/lzma-utils"
65IUSE="${IUSE} source"
66
67# Forge doc SRC_URI
68[ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} doc? ("
69for i in ${TEXLIVE_MODULE_DOC_CONTENTS}; do
70 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
71done
72[ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} )"
73
74# Forge source SRC_URI
75if [ -n "${TEXLIVE_MODULE_SRC_CONTENTS}" ] ; then
76 SRC_URI="${SRC_URI} source? ("
77 for i in ${TEXLIVE_MODULE_SRC_CONTENTS}; do
78 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
79 done
80 SRC_URI="${SRC_URI} )"
51fi 81fi
82fi
52 83
53RDEPEND="${COMMON_DEPEND}" 84RDEPEND="${COMMON_DEPEND}"
54 85
55[ -z "${PN##*documentation*}" ] || IUSE="doc" 86[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc"
56 87
57S="${WORKDIR}" 88S="${WORKDIR}"
58 89
59# @FUNCTION: texlive-module_src_compile 90# @FUNCTION: texlive-module_src_compile
60# @DESCRIPTION: 91# @DESCRIPTION:
136 [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc 167 [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc
137 fi 168 fi
138 169
139 [ -d texmf ] && doins -r texmf 170 [ -d texmf ] && doins -r texmf
140 [ -d texmf-dist ] && doins -r texmf-dist 171 [ -d texmf-dist ] && doins -r texmf-dist
141 [ -d tlpkg ] && doins -r tlpkg 172 [ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && doins -r tlpkg
142 173
143 insinto /var/lib/texmf 174 insinto /var/lib/texmf
144 [ -d texmf-var ] && doins -r texmf-var/* 175 [ -d texmf-var ] && doins -r texmf-var/*
145 176
146 insinto /etc/texmf/updmap.d 177 insinto /etc/texmf/updmap.d

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

  ViewVC Help
Powered by ViewVC 1.1.20