summaryrefslogtreecommitdiff
blob: 1fc2b57f633aa313fa9a1b00a20f92c4ee4e6c18 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

DESCRIPTION="Loki Software binary patch tool"
HOMEPAGE="http://www.icculus.org/loki_setup/"
SRC_URI="
	mirror://gentoo/${P}.tar.bz2
	mirror://gentoo/loki_setupdb-${PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
	dev-util/xdelta:0
	dev-libs/libxml2
	dev-libs/glib:2"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

S="${WORKDIR}"
PATCHES=(
	"${FILESDIR}"/${P}-build.patch
	"${FILESDIR}"/${P}-patchdata.patch
)

src_prepare() {
	default

	cd loki_setupdb || die
	mv configure.{in,ac} || die
	eautoreconf

	cd "${S}"/${PN} || die
	mv configure.{in,ac} || die
	eautoreconf
}

src_configure() {
	cd loki_setupdb || die
	econf
	cd "${S}"/${PN} || die
	econf
}

src_compile() {
	emake -C loki_setupdb
	emake -C loki_patch
}

src_install() {
	cd ${PN} || die
	dobin loki_patch make_patch
	dodoc CHANGES NOTES README TODO
}