blob: 52fc034fb873f6e01af8a967a56352d80eccdcee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/loki_patch/loki_patch-20050324.ebuild,v 1.5 2008/02/14 05:57:18 mr_bones_ 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="amd64 ~ppc x86"
IUSE=""
DEPEND="=dev-util/xdelta-1*
dev-libs/libxml"
RDEPEND="games-util/loki_setupdb"
src_unpack() {
unpack ${A}
epatch \
"${FILESDIR}"/${P}-amd64.patch \
"${FILESDIR}"/${P}-gcc4.patch
}
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
}
|