/[gentoo-x86]/app-arch/rpm2targz/rpm2targz-9.0-r3.ebuild
Gentoo

Contents of /app-arch/rpm2targz/rpm2targz-9.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Dec 9 04:20:13 2007 UTC (12 years, 8 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.4_rc4)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/rpm2targz/rpm2targz-9.0-r3.ebuild,v 1.12 2005/08/22 23:01:49 vapier Exp $
4
5 inherit toolchain-funcs eutils
6
7 DESCRIPTION="Convert a .rpm file to a .tar.gz archive"
8 HOMEPAGE="http://www.slackware.com/config/packages.php"
9 SRC_URI="mirror://gentoo/${P}.tar.gz"
10
11 LICENSE="as-is"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
14 IUSE=""
15
16 # NOTE: rpm2targz autodetects rpm2cpio at runtime, and uses it if available,
17 # so we don't explicitly set it as a dependency.
18 DEPEND="app-arch/cpio
19 sys-apps/file"
20 RDEPEND="${DEPEND}
21 sys-apps/util-linux
22 sys-apps/which"
23
24 S=${WORKDIR}
25
26 src_unpack() {
27 unpack ${A}
28 cd ${S}
29 # makes rpm2targz extract in current dir
30 epatch ${FILESDIR}/${P}-gentoo.patch
31 # adds bzip2 detection (#23249)
32 epatch ${FILESDIR}/${P}-bzip2.patch
33 # adds bzip2 decompression to rpm2targz (#31164)
34 epatch ${FILESDIR}/${P}-bzip2_rpm2targz.patch
35 # secures temp file handling (#96192)
36 epatch ${FILESDIR}/${P}-secure_temp_handling.patch
37 }
38
39 src_compile() {
40 $(tc-getCC) ${CFLAGS} -o rpmoffset rpmoffset.c || die
41 }
42
43 src_install() {
44 dobin rpmoffset rpm2targz || die
45 dodoc rpm2targz.README
46 }

  ViewVC Help
Powered by ViewVC 1.1.20