174
|
1 # Copyright 1999-2009 Gentoo Foundation
|
|
2 # Distributed under the terms of the GNU General Public License v2
|
|
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 $
|
|
4
|
|
5 inherit eutils toolchain-funcs
|
|
6
|
|
7 DESCRIPTION="A parallel implementation of gzip."
|
|
8 HOMEPAGE="http://www.zlib.net/pigz/"
|
|
9 SRC_URI="http://www.zlib.net/pigz/${P}.tar.gz"
|
|
10
|
|
11 LICENSE="PIGZ"
|
|
12 SLOT="0"
|
|
13 KEYWORDS="~amd64 ~sparc ~x86"
|
|
14 IUSE="test symlink"
|
|
15
|
|
16 RDEPEND="sys-libs/zlib"
|
|
17 DEPEND="${RDEPEND}
|
|
18 test? ( app-arch/ncompress )"
|
|
19
|
|
20 src_unpack() {
|
|
21 unpack ${A}
|
|
22 epatch "${FILESDIR}"/${P}-respect-flags.patch
|
|
23 epatch "${FILESDIR}"/${P}-decode-symlinks-to-stdout.patch
|
175
|
24 epatch "${FILESDIR}"/${P}-gunzip-compat.patch
|
174
|
25 }
|
|
26
|
|
27 src_compile() {
|
|
28 tc-export CC
|
|
29 emake || die "make failed"
|
|
30 }
|
|
31
|
|
32 src_install() {
|
|
33 dobin ${PN} || die "Failed to install"
|
|
34 dosym /usr/bin/pigz /usr/bin/unpigz
|
|
35 dodoc README
|
|
36
|
|
37 if use symlink; then
|
|
38 dosym /usr/bin/pigz /usr/bin/gzip
|
175
|
39 dosym /usr/bin/unpigz /usr/bin/gunzip
|
174
|
40 fi
|
|
41 }
|