/[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.28 Revision 1.29
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.28 2010/01/07 18:42:47 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.29 2010/01/07 19:13:01 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#
96# @FUNCTION: texlive-module_src_unpack 96# @FUNCTION: texlive-module_src_unpack
97# @DESCRIPTION: 97# @DESCRIPTION:
98# Only for TeX Live 2009. 98# Only for TeX Live 2009.
99# Gives tar.xz unpack support until we can use an EAPI with that support. 99# Gives tar.xz unpack support until we can use an EAPI with that support.
100 100
101RELOC_TARGET=texmf-dist
102
101texlive-module_src_unpack() { 103texlive-module_src_unpack() {
102 local i s 104 local i s
103 for i in ${A} 105 for i in ${A}
104 do 106 do
105 s="${DISTDIR%/}/${i}" 107 s="${DISTDIR%/}/${i}"
106 einfo "Unpacking ${s} to ${PWD}" 108 einfo "Unpacking ${s} to ${PWD}"
107 test -s "${s}" || die "${s} does not exist" 109 test -s "${s}" || die "${s} does not exist"
108 xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed" 110 xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed"
111 done
112 grep RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
113 { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq | sort -r > "${T}/dirlist"
114 for i in $(<"${T}/dirlist"); do
115 [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}"
116 done
117 for i in $(<"${T}/reloclist"); do
118 mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})"
109 done 119 done
110} 120}
111 121
112fi 122fi
113 123

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20