# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator 64-bit DESCRIPTION="Computes changes between binary or text files and creates deltas" SRC_URI="http://xdelta.org/${P/-3.0/30}.tar.gz" HOMEPAGE="http://xdelta.org" RESTRICT="nomirror" SLOT="0" LICENSE="GPL-2" KEYWORDS="-* ~x86" IUSE="python" MY_PV=$(replace_version_separator 1 '' ) MY_S="${WORKDIR}/${PN}${MY_PV}" DEPEND="=dev-libs/glib-1.2* >=sys-libs/zlib-1.1.4 >=dev-lang/python-2.3" src_unpack() { unpack ${A} cd "${MY_S}" sed -i "s|setup.py install |setup.py install --prefix=${D} |" Makefile } src_compile() { cd "${MY_S}" # give an "assertion failed" error runtime #if 64-bit ; then # ewarn "xdelta3 compile but don't work on 64bit architectures" # die # make xdelta3-64 || die #else make xdelta3-everything || die #fi use python && python setup.py install --prefix=${D} --compile --force } src_install () { cd "${MY_S}" make xdelta3-everything || die exeinto /usr/bin #if 64-bit ; then # doexe xdelta3-64 # dosym xdelta3-64 /usr/bin/xdelta #else doexe xdelta3-everything dosym xdelta3-everything /usr/bin/xdelta #fi dodoc www/* xdelta.c }