/[gentoo-x86]/eclass/rpm.eclass
Gentoo

Diff of /eclass/rpm.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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/rpm.eclass,v 1.2 2003/06/21 13:42:42 liquidx Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/rpm.eclass,v 1.3 2003/06/21 13:47:34 liquidx Exp $
4 4
5# Author : Alastair Tse <liquidx@gentoo.org> (21 Jun 2003) 5# Author : Alastair Tse <liquidx@gentoo.org> (21 Jun 2003)
6# 6#
7# Convienence class for extracting RPMs 7# Convienence class for extracting RPMs
8# 8#
23# will automatically find rpm2cpio and use it instead of its own rpmoffset. 23# will automatically find rpm2cpio and use it instead of its own rpmoffset.
24# 24#
25# In addition, rpm2targz-8.0 behaves differently from rpm2targz-9.0. The newer 25# In addition, rpm2targz-8.0 behaves differently from rpm2targz-9.0. The newer
26# versions will autodetect rpm2cpio whereas 8.0 doesn't. 26# versions will autodetect rpm2cpio whereas 8.0 doesn't.
27# 27#
28# Also, 9.0 wil# detect if it is a source rpm and place files in 28# Also, 9.0 will place files in ${prefix%.src} if extracting a source rpm
29# ${prefix%.src} whereas 8.0 will just place them in the current directory. 29# whereas 8.0 will just place them in the current directory.
30# As of writing, the current rpm2targz-9.0 in portage has been patched to 30# As of writing, the current rpm2targz-9.0 in portage has been patched to
31# remove this behaviour for backwards compatibility. 31# remove this behaviour for backwards compatibility.
32 32
33ECLASS="rpm" 33ECLASS="rpm"
34INHERITED="$INHERITED $ECLASS" 34INHERITED="$INHERITED $ECLASS"
35 35
36newdepend ">=app-arch/rpm2targz-0.9" 36newdepend "app-arch/rpm2targz"
37 37
38rpm_src_unpack() { 38rpm_src_unpack() {
39 local x prefix ext myfail OLD_DISTDIR 39 local x prefix ext myfail OLD_DISTDIR
40 40
41 for x in ${A}; do 41 for x in ${A}; do

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

  ViewVC Help
Powered by ViewVC 1.1.20