# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs MY_P="${PN}${PV/./}" DESCRIPTION="Standard compressor for PAQ algorithms" HOMEPAGE="http://cs.fit.edu/~mmahoney/compression/#zpaq" SRC_URI="http://cs.fit.edu/~mmahoney/compression/${MY_P}.zip" LICENSE="" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc" DEPEND="" RDEPEND="" src_compile() { $(tc-getCXX) ${CXXFLAGS} ${MY_P}.cpp -o ${PN} || die "compiling zpaq failed" $(tc-getCXX) ${CXXFLAGS} un${MY_P}.cpp -o un${PN} || die "compiling unzpaq failed" } src_install() { dobin ${PN} un${PN} dodoc readme.txt use doc && dodoc zpaq100.pdf insinto /usr/share/${PN} doins *.cfg }