blob: ac2fa2f27369da46c41f87a810ee83e1ac9531fc (
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
36
37
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/pigz-2.2.4.ebuild,v 1.1 2012/03/26 05:44:20 radhermit Exp $
EAPI="4"
inherit toolchain-funcs
DESCRIPTION="A parallel implementation of gzip"
HOMEPAGE="http://www.zlib.net/pigz/"
SRC_URI="http://www.zlib.net/pigz/${P}.tar.gz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~mips ~sparc ~x86 ~amd64-linux ~sparc64-solaris"
IUSE="symlink test"
RDEPEND="sys-libs/zlib"
DEPEND="${RDEPEND}
test? ( app-arch/ncompress )"
src_prepare() {
sed -i -e '1,3d' -e '5s/$(CC)/$(CC) $(LDFLAGS)/' Makefile || die
tc-export CC
}
src_install() {
dobin ${PN}
dosym /usr/bin/${PN} /usr/bin/un${PN}
dodoc README
doman ${PN}.1
if use symlink; then
dosym /usr/bin/${PN} /usr/bin/gzip
dosym /usr/bin/un${PN} /usr/bin/gunzip
fi
}
|