Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luaexpat/
Date: Thu, 08 Oct 2020 19:14:09
Message-Id: 1602184422.4749b85ae8ba4047757d736b1444cb4a09ec01f6.conikost@gentoo
1 commit: 4749b85ae8ba4047757d736b1444cb4a09ec01f6
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Wed Oct 7 23:55:28 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 8 19:13:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4749b85a
7
8 dev-lua/luaexpat: update 1.3.0 version branch
9
10 Migrate to EAPI=7, various fixes backported from 1.3.3 ebuild.
11
12 Closes: https://github.com/gentoo/gentoo/pull/17813
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
15 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
16
17 dev-lua/luaexpat/luaexpat-1.3.0-r2.ebuild | 46 +++++++++++++++++++++++++++++++
18 1 file changed, 46 insertions(+)
19
20 diff --git a/dev-lua/luaexpat/luaexpat-1.3.0-r2.ebuild b/dev-lua/luaexpat/luaexpat-1.3.0-r2.ebuild
21 new file mode 100644
22 index 00000000000..720457682bf
23 --- /dev/null
24 +++ b/dev-lua/luaexpat/luaexpat-1.3.0-r2.ebuild
25 @@ -0,0 +1,46 @@
26 +# Copyright 1999-2020 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +inherit multilib-minimal toolchain-funcs
32 +
33 +DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library"
34 +HOMEPAGE="http://www.keplerproject.org/luaexpat/"
35 +SRC_URI="http://matthewwild.co.uk/projects/${PN}/${P}.tar.gz"
36 +
37 +LICENSE="MIT"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
40 +
41 +RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]
42 + >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]"
43 +DEPEND="${RDEPEND}"
44 +BDEPEND="virtual/pkgconfig"
45 +
46 +src_prepare() {
47 + default
48 + sed -i -e 's:-g::' -e 's:-O2::' Makefile || die "sed failed"
49 + multilib_copy_sources
50 +}
51 +
52 +multilib_src_compile() {
53 + emake \
54 + CFLAGS="${CFLAGS}" \
55 + LDFLAGS="${LDFLAGS}" \
56 + CC="$(tc-getCC)" \
57 + LUA_INC="-I$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)"
58 +}
59 +
60 +multilib_src_install() {
61 + emake \
62 + DESTDIR="${D}" \
63 + LUA_LDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
64 + LUA_CDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
65 + LUA_INC="-I$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)" \
66 + install
67 +}
68 +
69 +multilib_src_install_all() {
70 + dodoc -r README doc/*
71 +}