From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1P5N53-00054J-0M for garchives@archives.gentoo.org; Mon, 11 Oct 2010 18:26:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72532E076F; Mon, 11 Oct 2010 18:26:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 518C8E076F for ; Mon, 11 Oct 2010 18:26:35 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7DDD1B41A7 for ; Mon, 11 Oct 2010 18:26:34 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2139) id 7F4362004C; Mon, 11 Oct 2010 18:26:33 +0000 (UTC) From: "Alexis Ballier (aballier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, aballier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: texlive-module.eclass X-VCS-Directories: eclass X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier Content-Type: text/plain; charset=utf8 Message-Id: <20101011182633.7F4362004C@flycatcher.gentoo.org> Date: Mon, 11 Oct 2010 18:26:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 22593360-fa03-4449-823e-dc2d5b112cb3 X-Archives-Hash: eacd2aa67aae6d9b810dbc208c355598 aballier 10/10/11 18:26:33 Modified: texlive-module.eclass Log: Use unpack if our EAPI allows to unpack .xz files Revision Changes Path 1.35 eclass/texlive-module.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-mod= ule.eclass?rev=3D1.35&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-mod= ule.eclass?rev=3D1.35&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-mod= ule.eclass?r1=3D1.34&r2=3D1.35 Index: texlive-module.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- texlive-module.eclass 13 Jan 2010 15:16:49 -0000 1.34 +++ texlive-module.eclass 11 Oct 2010 18:26:33 -0000 1.35 @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.34 2= 010/01/13 15:16:49 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.35 2= 010/10/11 18:26:33 aballier Exp $ =20 # @ECLASS: texlive-module.eclass # @MAINTAINER: @@ -107,14 +107,18 @@ RELOC_TARGET=3Dtexmf-dist =20 texlive-module_src_unpack() { - local i s - for i in ${A} - do - s=3D"${DISTDIR%/}/${i}" - einfo "Unpacking ${s} to ${PWD}" - test -s "${s}" || die "${s} does not exist" - xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed" - done + if has "${EAPI:-0}" 0 1 2 ; then + local i s + for i in ${A} + do + s=3D"${DISTDIR%/}/${i}" + einfo "Unpacking ${s} to ${PWD}" + test -s "${s}" || die "${s} does not exist" + xz -dc -- "${s}" | tar xof - || die "Unpacking ${s} failed" + done + else + unpack ${A} + fi grep RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T= }/reloclist" { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}= /dirlist" for i in $(<"${T}/dirlist"); do