/[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.1 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.1 2007/10/14 07:47:10 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.
79 79
80# src_install, exported function: 80# src_install, exported function:
81# Install texmf and config files to the system 81# Install texmf and config files to the system
82 82
83texlive-module_src_install() { 83texlive-module_src_install() {
84 for i in texmf/fmtutil/format*.cnf; do
85 [ -f "${i}" ] && etexlinks "${i}"
86 done
87
84 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
85 [ -d texmf ] && doins -r texmf 96 [ -d texmf ] && doins -r texmf
86 [ -d texmf-dist ] && doins -r texmf-dist 97 [ -d texmf-dist ] && doins -r texmf-dist
98
99 TEXMFSYSVAR="$(kpsewhich -var-value=TEXMFSYSVAR)"
100 insinto "${TEXMFSYSVAR}"
87 [ -d texmf-var ] && doins -r texmf-var 101 [ -d texmf-var ] && doins -r texmf-var/*
88 use doc && [ -d texmf-doc ] && doins -r texmf-doc
89 102
90 insinto /etc/texmf/updmap.d 103 insinto /etc/texmf/updmap.d
91 [ -f "${S}/${PN}.cfg" ] && doins "${S}/${PN}.cfg" 104 [ -f "${S}/${PN}.cfg" ] && doins "${S}/${PN}.cfg"
92 insinto /etc/texmf/dvips/config 105 insinto /etc/texmf/dvips/config
93 [ -f "${S}/${PN}-config.ps" ] && doins "${S}/${PN}-config.ps" 106 [ -f "${S}/${PN}-config.ps" ] && doins "${S}/${PN}-config.ps"

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

  ViewVC Help
Powered by ViewVC 1.1.20