summaryrefslogtreecommitdiff
blob: 54ee2170169f10921e7a650481d18b05f235b29c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm2targz/rpm2targz-9.0.ebuild,v 1.3 2003/07/16 18:32:27 liquidx Exp $

DESCRIPTION="Convert a .rpm file to a .tar.gz archive"
SRC_URI="mirror://gentoo/${P}.tar.gz"
HOMEPAGE="http://www.slackware.com/config/packages.php"

IUSE=""
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 ~sparc ~ppc ~alpha ~hppa"

# NOTE: rpm2targz autodetects rpm2cpio at runtime, and uses it if available,
#       so we don't explicitly set it as a dependency.
DEPEND="virtual/glibc
	sys-apps/cpio
	sys-apps/file"


S=${WORKDIR}

src_unpack() {
	unpack ${A}
	cd ${S}; epatch ${FILESDIR}/${P}-gentoo.patch
}

src_compile() {
	${CC:-gcc} ${CFLAGS} -o rpmoffset rpmoffset.c || die
}

src_install() {
	dobin rpmoffset rpm2targz
	dodoc rpm2targz.README
}