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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (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.13: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.4_rc4)

1 # Copyright 1999-2007 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-r5.ebuild,v 1.13 2007/11/03 19:43:33 grobian 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 ~x86-fbsd"
14 IUSE="userland_GNU"
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 userland_GNU? (
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 # secures temp file handling (#96192)
37 epatch "${FILESDIR}"/${P}-secure_temp_handling.patch
38 # add supprot for a quicker rpm2tar
39 epatch "${FILESDIR}"/${P}-rpm2tar.patch
40 # non-gnu portability with which
41 epatch "${FILESDIR}"/${P}-portability.patch
42 }
43
44 src_compile() {
45 emake rpmoffset CC=$(tc-getCC) || die
46 }
47
48 src_install() {
49 dobin rpmoffset rpm2targz || die
50 dosym rpm2targz /usr/bin/rpm2tar
51 dodoc rpm2targz.README
52 }

  ViewVC Help
Powered by ViewVC 1.1.20