# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/plzip/plzip-0.6.ebuild,v 1.1 2010/03/23 20:13:09 jasiu Exp $

EAPI="3"

inherit eutils

DESCRIPTION="massively parallel (multi-threaded), lossless data compressor based on the LZMA algorithm"
HOMEPAGE="http://www.nongnu.org/lzip/plzip.html"
SRC_URI="http://download.savannah.gnu.org/releases/lzip/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
RDEPEND="dev-libs/lzlib"

src_configure() {
	sed -i "s/^\(CXXFLAGS='.*\)'$/\1 $CXXFLAGS'/" configure
	econf --enable-shared
}

src_install() {
	emake install DESTDIR="${D}" || die
	dodoc AUTHORS ChangeLog NEWS README
}