/[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.67 Revision 1.68
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 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.67 2013/09/25 15:18:28 ottxor Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.68 2014/03/09 18:54:44 ulm 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# @AUTHOR: 8# @AUTHOR:
18# texmf and texmf-dist directories to ${WORKDIR} (which is what the default 18# texmf and texmf-dist directories to ${WORKDIR} (which is what the default
19# src_unpack does). 19# src_unpack does).
20# Starting from TeX Live 2009, the eclass provides a src_unpack function taking 20# Starting from TeX Live 2009, the eclass provides a src_unpack function taking
21# care of unpacking and relocating the files that need it. 21# care of unpacking and relocating the files that need it.
22# 22#
23# It inherits texlive-common and base for supporting patching via the PATCHES 23# It inherits texlive-common. Patching is supported via the PATCHES
24# bash array. 24# bash array.
25 25
26# @ECLASS-VARIABLE: TEXLIVE_MODULE_CONTENTS 26# @ECLASS-VARIABLE: TEXLIVE_MODULE_CONTENTS
27# @DESCRIPTION: 27# @DESCRIPTION:
28# The list of packages that will be installed. This variable will be expanded to 28# The list of packages that will be installed. This variable will be expanded to
59# @ECLASS-VARIABLE: TL_MODULE_INFORMATION 59# @ECLASS-VARIABLE: TL_MODULE_INFORMATION
60# @DESCRIPTION: 60# @DESCRIPTION:
61# Information to display about the package. 61# Information to display about the package.
62# e.g. for enabling/disabling a feature 62# e.g. for enabling/disabling a feature
63 63
64# @ECLASS-VARIABLE: PATCHES
65# @DESCRIPTION:
66# Array variable specifying any patches to be applied.
67
64inherit texlive-common base 68inherit texlive-common eutils
65 69
66case "${EAPI:-0}" in 70case "${EAPI:-0}" in
67 0|1|2) 71 0|1|2)
68 die "EAPI='${EAPI}' is not supported anymore" 72 die "EAPI='${EAPI}' is not supported anymore"
69 ;; 73 ;;
124 [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" 128 [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}"
125 done 129 done
126 for i in $(<"${T}/reloclist"); do 130 for i in $(<"${T}/reloclist"); do
127 mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" 131 mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})"
128 done 132 done
133}
134
135# @FUNCTION: texlive-module_src_prepare
136# @DESCRIPTION:
137# Apply patches from the PATCHES array and user patches, if any.
138
139texlive-module_src_prepare() {
140 [[ ${#PATCHES[@]} -gt 0 ]] && epatch "${PATCHES[@]}"
141 epatch_user
129} 142}
130 143
131# @FUNCTION: texlive-module_add_format 144# @FUNCTION: texlive-module_add_format
132# @DESCRIPTION: 145# @DESCRIPTION:
133# Creates/appends to a format.${PN}.cnf file for fmtutil. 146# Creates/appends to a format.${PN}.cnf file for fmtutil.
370 383
371texlive-module_pkg_postrm() { 384texlive-module_pkg_postrm() {
372 etexmf-update 385 etexmf-update
373} 386}
374 387
375EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm 388EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install \
389 pkg_postinst pkg_postrm

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68

  ViewVC Help
Powered by ViewVC 1.1.20