# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A multi-threaded bzip2/bunzip2 filter that doesn't depend on the lseek() system call and so isn't restricted to regular files." HOMEPAGE="http://phptest11.atw.hu/" SRC_URI="http://lacos.web.elte.hu/pub/lbzip2/lbzip2-0.14.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="debug" DEPEND="app-arch/bzip2" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} cd "${S}" sed -i -e 's/FLAGS=/FLAGS+=/' -e 's/-O3//' Makefile sed -i -e 's/FLAGS=/FLAGS+=/' -e 's/-g3//' Makefile.dev } src_compile() { local MAKEOPTS= use debug && MAKEOPTS='-f Makefile.dev' emake || die "emake failed" } src_test() { [ -t 0 ] || return rm -rf "${T}/scratch" "${T}/results" "${T}/rnd" hexdump -n 10485760 /dev/urandom > "${T}/rnd" emake -j1 check PATH="${S}:${PATH}" TESTFILE="${T}/rnd" || die "make check failed" } src_install() { dobin lbzip2 doman lbzip2.1 exeinto "/usr/share/${PN}" doexe corr-perf.sh malloc_trace.pl test.sh lfs.sh dodoc ChangeLog README }