summaryrefslogtreecommitdiff
blob: a1536741abf5b931d5639f0f670b8b35376e9de7 (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: This ebuild is from Lua overlay; Bumped by mva; $

EAPI="5"

VCS="mercurial"
IS_MULTILIB=true
inherit lua

DESCRIPTION="SAX XML parser based on the Expat library."
HOMEPAGE="http://code.matthewwild.co.uk/"
EHG_REPO_URI="http://code.matthewwild.co.uk/lua-expat/"
#EHG_REPO_URI="https://bitbucket.org/mva/luaexpat-temp"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="doc"

RDEPEND="
	dev-libs/expat
"
DEPEND="
	${RDEPEND}
"

READMES=( README )
HTML_DOCS=( doc/. )

all_lua_prepare() {
	sed -i -r \
		-e '/^COMMON_CFLAGS/s# -ansi##' \
		Makefile

	lua_default
}

each_lua_configure() {
	myeconfargs=(
		LUA_V="${lua_impl##lua}"
	)
	lua_default
}

each_lua_install() {
	dolua src/lxp{,.so}
}