| 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.55 2010/10/24 16:26:36 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.56 2010/11/07 19:24:18 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 | # |
| … | |
… | |
| 112 | RELOC_TARGET=texmf-dist |
112 | RELOC_TARGET=texmf-dist |
| 113 | |
113 | |
| 114 | texlive-module_src_unpack() { |
114 | texlive-module_src_unpack() { |
| 115 | if has "${EAPI:-0}" 0 1 2 ; then |
115 | if has "${EAPI:-0}" 0 1 2 ; then |
| 116 | local i s |
116 | local i s |
|
|
117 | # Avoid installing world writable files |
|
|
118 | # Bugs #309997, #310039, #338881 |
|
|
119 | umask 022 |
| 117 | for i in ${A} |
120 | for i in ${A} |
| 118 | do |
121 | do |
| 119 | s="${DISTDIR%/}/${i}" |
122 | s="${DISTDIR%/}/${i}" |
| 120 | einfo "Unpacking ${s} to ${PWD}" |
123 | einfo "Unpacking ${s} to ${PWD}" |
| 121 | test -s "${s}" || die "${s} does not exist" |
124 | test -s "${s}" || die "${s} does not exist" |