blob: a6dc65b4679a6038b12ca9c0e64b268d7e03e576 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lbzip2/lbzip2-0.23-r2.ebuild,v 1.9 2011/11/20 10:13:05 xarthisius Exp $
EAPI="3"
inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="Parallel bzip2 utility"
HOMEPAGE="http://lacos.hu/"
SRC_URI="http://lacos.web.elte.hu/pub/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm ~hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="symlink test"
RDEPEND="app-arch/bzip2"
DEPEND="${REDEPEND}
test? (
app-shells/bash
sys-devel/bc
|| ( sys-process/time sys-freebsd/freebsd-ubin )
)"
S=${WORKDIR}/${PN}
src_prepare() {
epatch "${FILESDIR}"/0.23-s_isreg.patch
epatch "${FILESDIR}"/0.23-Makefile.patch
epatch "${FILESDIR}"/0.23-test.sh.patch
}
src_compile() {
append-lfs-flags
emake CC=$(tc-getCC) || die "emake failed"
}
src_test() {
if [ -t 0 ] || return; then
rm -rf "${T}/scratch" "${T}/results" "${T}/rnd"
hexdump -n 10485760 /dev/urandom > "${T}/rnd"
emake -j1 SHELL="${EPREFIX}/bin/bash --posix" PATH="${S}:${PATH}" TESTFILE="${T}/rnd" check \
|| die "make check failed"
else
ewarn "make check must be run attached to a terminal"
fi
}
src_install() {
dobin ${PN} || die "Installation of ${PN} failed"
dodoc ChangeLog README || die "no docs"
doman ${PN}.1 || die "no man"
insinto /usr/share/${PN}
doins corr-perf.sh malloc_trace.pl || die
if use symlink; then
dosym ${PN} /usr/bin/bzip2 || die
fi
}
|