annotate app-arch/pigz/pigz-2.1.5.ebuild @ 184:54b73709801b

the ebuild works up to the install phase now. more testing has to be done on staging server
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 17 Feb 2010 10:16:48 +0100
parents 9839e927aee2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
174
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
1 # Copyright 1999-2009 Gentoo Foundation
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/pigz-2.1.5.ebuild,v 1.2 2009/11/02 17:58:48 vostorga Exp $
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
4
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
5 inherit eutils toolchain-funcs
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
6
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
7 DESCRIPTION="A parallel implementation of gzip."
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
8 HOMEPAGE="http://www.zlib.net/pigz/"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
9 SRC_URI="http://www.zlib.net/pigz/${P}.tar.gz"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
10
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
11 LICENSE="PIGZ"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
12 SLOT="0"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
13 KEYWORDS="~amd64 ~sparc ~x86"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
14 IUSE="test symlink"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
15
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
16 RDEPEND="sys-libs/zlib"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
17 DEPEND="${RDEPEND}
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
18 test? ( app-arch/ncompress )"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
19
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
20 src_unpack() {
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
21 unpack ${A}
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
22 epatch "${FILESDIR}"/${P}-respect-flags.patch
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
23 epatch "${FILESDIR}"/${P}-decode-symlinks-to-stdout.patch
175
9839e927aee2 add patch for gunzip compatibility to pigz-2.1.5
holger
parents: 174
diff changeset
24 epatch "${FILESDIR}"/${P}-gunzip-compat.patch
174
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
25 }
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
26
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
27 src_compile() {
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
28 tc-export CC
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
29 emake || die "make failed"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
30 }
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
31
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
32 src_install() {
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
33 dobin ${PN} || die "Failed to install"
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
34 dosym /usr/bin/pigz /usr/bin/unpigz
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
35 dodoc README
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
36
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
37 if use symlink; then
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
38 dosym /usr/bin/pigz /usr/bin/gzip
175
9839e927aee2 add patch for gunzip compatibility to pigz-2.1.5
holger
parents: 174
diff changeset
39 dosym /usr/bin/unpigz /usr/bin/gunzip
174
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
40 fi
3b3ba42f2f0e pigz-2.1.5 symlink bugfix & support for gzip symlink
holger
parents:
diff changeset
41 }