# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-util/loki_patch/loki_patch-20040916.ebuild,v 1.3 2004/10/17 09:53:32 dholm Exp $ inherit eutils DESCRIPTION="Loki Software binary patch tool" HOMEPAGE="http://www.icculus.org/loki_setup/" SRC_URI="http://dev.gentoo.org/~wolf31o2/sources/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc" IUSE="" DEPEND="dev-util/xdelta dev-libs/libxml games-util/loki_setupdb" src_compile() { ./autogen.sh || die "autogen failed." econf \ --with-setupdb=/usr/share/loki_setupdb \ || die "econf failed." sed -i \ -e 's/\.\.\/loki_setupdb/\/usr\/share\/loki_setupdb/' \ -e 's/-I$(SETUPDB)/-I$(SETUPDB)\/include/' \ Makefile emake || die "emake failed" } src_install() { dobin loki_patch make_patch || die "doexe failed" dodoc CHANGES NOTES README TODO }