/[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.2 Revision 1.6
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.2 2007/10/17 14:34:09 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.6 2007/12/02 22:47:10 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
87 use doc && [ -d texmf-doc ] && doins -r texmf-doc 98
88 99 insinto /var/lib/texmf
89 TEXMFSYSVAR="$(kpsewhich -var-value=TEXMFSYSVAR)"
90 insinto "${TEXMFSYSVAR}"
91 [ -d texmf-var ] && doins -r texmf-var/* 100 [ -d texmf-var ] && doins -r texmf-var/*
92 101
93 insinto /etc/texmf/updmap.d 102 insinto /etc/texmf/updmap.d
94 [ -f "${S}/${PN}.cfg" ] && doins "${S}/${PN}.cfg" 103 [ -f "${S}/${PN}.cfg" ] && doins "${S}/${PN}.cfg"
95 insinto /etc/texmf/dvips/config 104 insinto /etc/texmf/dvips.d
96 [ -f "${S}/${PN}-config.ps" ] && doins "${S}/${PN}-config.ps" 105 [ -f "${S}/${PN}-config.ps" ] && doins "${S}/${PN}-config.ps"
97 insinto /etc/texmf/dvipdfm/config 106 insinto /etc/texmf/dvipdfm/config
98 [ -f "${S}/${PN}-config" ] && doins "${S}/${PN}-config" 107 [ -f "${S}/${PN}-config" ] && doins "${S}/${PN}-config"
99 108
100 texlive-common_handle_config_files 109 texlive-common_handle_config_files

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20