# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: inherit distutils MY_P=${P//[-.]/} DESCRIPTION="Computes changes between binary or text files and creates deltas" HOMEPAGE="http://www.xdelta.org" SRC_URI="http://xdelta.googlecode.com/files/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="3" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-lang/python sys-libs/zlib" S="${WORKDIR}/${MY_P}" RESTRICT="nomirror" src_compile() { distutils_src_compile if use amd64; then make xdelta3-64 || die else make xdelta3 || die fi } src_install() { distutils_src_install if use amd64; then newbin xdelta3-64 xdelta3 else dobin xdelta3 fi }