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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (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.11: +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-r2.ebuild,v 1.11 2005/05/17 10:33:31 liquidx 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="x86 ppc sparc mips alpha arm hppa amd64 ia64 s390 ppc64"
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="virtual/libc
19 app-arch/cpio
20 sys-apps/file"
21 RDEPEND="${DEPEND}
22 sys-apps/util-linux
23 sys-apps/which"
24
25 S=${WORKDIR}
26
27 src_unpack() {
28 unpack ${A}
29 cd ${S}
30 # makes rpm2targz extract in current dir
31 epatch ${FILESDIR}/${P}-gentoo.patch
32 # adds bzip2 detection (#23249)
33 epatch ${FILESDIR}/${P}-bzip2.patch
34 # adds bzip2 decompression to rpm2targz (#31164)
35 epatch ${FILESDIR}/${P}-bzip2_rpm2targz.patch
36 }
37
38 src_compile() {
39 $(tc-getCC) ${CFLAGS} -o rpmoffset rpmoffset.c || die
40 }
41
42 src_install() {
43 dobin rpmoffset rpm2targz || die
44 dodoc rpm2targz.README
45 }

  ViewVC Help
Powered by ViewVC 1.1.20