/[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.3 Revision 1.4
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.3 2007/10/20 12:51:25 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.4 2007/10/20 17:15:24 aballier Exp $
4 4
5# 5#
6# Original Author: Alexis Ballier <aballier@gentoo.org> 6# Original Author: Alexis Ballier <aballier@gentoo.org>
7# Purpose: Provide generic install functions so that modular texlive's texmf ebuilds will 7# Purpose: Provide generic install functions so that modular texlive's texmf ebuilds will
8# only have to inherit this eclass. 8# only have to inherit this eclass.
84 for i in texmf/fmtutil/format*.cnf; do 84 for i in texmf/fmtutil/format*.cnf; do
85 [ -f "${i}" ] && etexlinks "${i}" 85 [ -f "${i}" ] && etexlinks "${i}"
86 done 86 done
87 87
88 insinto /usr/share 88 insinto /usr/share
89 if use doc; then
90 [ -d texmf-doc ] && doins -r texmf-doc
91 else
92 [ -d texmf/doc ] && rm -rf texmf/doc
93 [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc
94 fi
95
89 [ -d texmf ] && doins -r texmf 96 [ -d texmf ] && doins -r texmf
90 [ -d texmf-dist ] && doins -r texmf-dist 97 [ -d texmf-dist ] && doins -r texmf-dist
91 use doc && [ -d texmf-doc ] && doins -r texmf-doc 98
92
93 TEXMFSYSVAR="$(kpsewhich -var-value=TEXMFSYSVAR)" 99 TEXMFSYSVAR="$(kpsewhich -var-value=TEXMFSYSVAR)"
94 insinto "${TEXMFSYSVAR}" 100 insinto "${TEXMFSYSVAR}"
95 [ -d texmf-var ] && doins -r texmf-var/* 101 [ -d texmf-var ] && doins -r texmf-var/*
96 102
97 insinto /etc/texmf/updmap.d 103 insinto /etc/texmf/updmap.d

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20