Diff luaexpat-1.2.0-r1 with a luaexpat-1.3.0-r1

/usr/portage/dev-lua/luaexpat/luaexpat-1.3.0-r1.ebuild 2017-07-29 15:34:00.000000000 +0300
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2017 Gentoo Foundation
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=5
5 5

  
6
inherit multilib toolchain-funcs flag-o-matic eutils
6
inherit multilib toolchain-funcs flag-o-matic eutils multilib-minimal
7 7

  
8 8
DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library"
9 9
HOMEPAGE="http://www.keplerproject.org/luaexpat/"
......
11 11

  
12 12
LICENSE="MIT"
13 13
SLOT="0"
14
KEYWORDS="amd64 ~arm ~hppa ~mips x86"
14
KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 sparc x86"
15 15
IUSE=""
16 16

  
17
RDEPEND=">=dev-lang/lua-5.1[deprecated]
18
	dev-libs/expat"
17
RDEPEND=">=dev-lang/lua-5.1.5-r2[deprecated,${MULTILIB_USEDEP}]
18
	>=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]"
19 19
DEPEND="${RDEPEND}
20
	virtual/pkgconfig"
20
	>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
21 21

  
22 22
src_prepare() {
23
	sed -i -e "s#^LUA_LIBDIR=.*#LUA_LIBDIR=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/config"
24
	sed -i -e "s#^LUA_DIR=.*#LUA_DIR=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/config"
25
	sed -i -e "s#^LUA_INC=.*#LUA_INC=$(pkg-config --variable INSTALL_INC lua)#" "${S}/config"
26
	sed -i -e "s#^EXPAT_INC=.*#EXPAT_INC=/usr/include#" "${S}/config"
27
	sed -i -e "s#^LUA_VERSION_NUM=.*#LUA_VERSION_NUM=501#" "${S}/config"
28
	epatch "${FILESDIR}/${PV}-destdir-ldflags.patch"
29
}
23
	multilib_copy_sources
30 24

  
31
src_compile() {
32 25
	append-flags -fPIC
26
}
27

  
28
multilib_src_compile() {
33 29
	emake \
34 30
		CFLAGS="${CFLAGS}" \
35 31
		LDFLAGS="${LDFLAGS}" \
36 32
		CC="$(tc-getCC)" \
37
		LD="$(tc-getCC) -shared"
33
		LD="$(tc-getCC) -shared" \
34
		LUA_LDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
35
		LUA_CDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
36
		LUA_INC="-I$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)"
37
}
38

  
39
multilib_src_install() {
40
	emake \
41
		DESTDIR="${D}" \
42
		LUA_LDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
43
		LUA_CDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
44
		LUA_INC="-I$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)" \
45
		install
38 46
}
39 47

  
40
src_install() {
41
	emake DESTDIR="${D}" install
48
multilib_src_install_all() {
42 49
	dodoc README
43 50
	dohtml -r doc/*
44 51
}
Thank you!