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: Wed, 30 Mar 2022 20:58:55
Message-Id: 1648673871.92d2a4887341427bacb8829676b2fa7ebd8b4ce8.conikost@gentoo
1 commit: 92d2a4887341427bacb8829676b2fa7ebd8b4ce8
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 30 20:56:15 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 30 20:57:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d2a488
7
8 dev-lua/luaexpat: add 1.4.0
9
10 Closes: https://bugs.gentoo.org/834411
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 dev-lua/luaexpat/Manifest | 1 +
14 dev-lua/luaexpat/luaexpat-1.4.0.ebuild | 73 ++++++++++++++++++++++++++++++++++
15 dev-lua/luaexpat/metadata.xml | 4 ++
16 3 files changed, 78 insertions(+)
17
18 diff --git a/dev-lua/luaexpat/Manifest b/dev-lua/luaexpat/Manifest
19 index 5913ec63d907..5449c7b27685 100644
20 --- a/dev-lua/luaexpat/Manifest
21 +++ b/dev-lua/luaexpat/Manifest
22 @@ -1 +1,2 @@
23 DIST luaexpat-1.3.0.tar.gz 29567 BLAKE2B 176cb107e6047b15338ff45751af82389920e4210d40bd0b4400e549130a4983c843f7a64bb7b2fba37e36eb592e850d06efe196f8e837e79e50c8d135dbe763 SHA512 91884653310e2dc89ade6d1653875ac8607640a21853d3ccb1fd0f833812e41981fad5c40101732ec249104d2c50c9a332208d1e44423b8428065a223c60b4ae
24 +DIST luaexpat-1.4.0.tar.gz 51890 BLAKE2B 6e2cda190e7b2ebe2bda64398a447155df3ccdb83f1b4ff78aead981c38cf6705f896ba31ac0d557ec55f750919b6b2b07205c533339d7aa8e0f88ee6b0991fd SHA512 ba1a98267757ec5f2464b8d5e903f69102ca991c4034939d02d871d014463a8e29815d1294edc7fa3a1c4b679c5e42fdc1a19b2a1c1654ed1f382f779a213375
25
26 diff --git a/dev-lua/luaexpat/luaexpat-1.4.0.ebuild b/dev-lua/luaexpat/luaexpat-1.4.0.ebuild
27 new file mode 100644
28 index 000000000000..b0c2791bf0e6
29 --- /dev/null
30 +++ b/dev-lua/luaexpat/luaexpat-1.4.0.ebuild
31 @@ -0,0 +1,73 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +LUA_COMPAT=( lua5-{1..4} luajit )
38 +
39 +inherit lua toolchain-funcs
40 +
41 +DESCRIPTION="A SAX XML parser based on the Expat library"
42 +HOMEPAGE="https://github.com/lunarmodules/luaexpat"
43 +SRC_URI="https://github.com/lunarmodules/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
48 +REQUIRED_USE="${LUA_REQUIRED_USE}"
49 +
50 +RDEPEND="
51 + dev-libs/expat
52 + ${LUA_DEPS}
53 +"
54 +DEPEND="${RDEPEND}"
55 +BDEPEND="virtual/pkgconfig"
56 +
57 +HTML_DOCS=( "docs/." )
58 +
59 +src_prepare() {
60 + default
61 +
62 + # Respect users CFLAGS
63 + sed -e 's/-O2//g' -i Makefile || die
64 +
65 + lua_copy_sources
66 +}
67 +
68 +lua_src_compile() {
69 + pushd "${BUILD_DIR}" || die
70 +
71 + local myemakeargs=(
72 + "CC=$(tc-getCC)"
73 + "LUA_INC=$(lua_get_CFLAGS)"
74 + )
75 +
76 + emake "${myemakeargs[@]}"
77 +
78 + popd
79 +}
80 +
81 +src_compile() {
82 + lua_foreach_impl lua_src_compile
83 +}
84 +
85 +lua_src_install() {
86 + pushd "${BUILD_DIR}" || die
87 +
88 + local myemakeargs=(
89 + "DESTDIR=${ED}"
90 + "LUA_CDIR=$(lua_get_cmod_dir)"
91 + "LUA_INC=$(lua_get_include_dir)"
92 + "LUA_LDIR=$(lua_get_lmod_dir)"
93 + )
94 +
95 + emake "${myemakeargs[@]}" install
96 +
97 + popd
98 +}
99 +
100 +src_install() {
101 + lua_foreach_impl lua_src_install
102 +
103 + einstalldocs
104 +}
105
106 diff --git a/dev-lua/luaexpat/metadata.xml b/dev-lua/luaexpat/metadata.xml
107 index a9d447e11be2..7ec4c4086c74 100644
108 --- a/dev-lua/luaexpat/metadata.xml
109 +++ b/dev-lua/luaexpat/metadata.xml
110 @@ -13,4 +13,8 @@
111 <email>conikost@g.o</email>
112 <name>Conrad Kostecki</name>
113 </maintainer>
114 + <upstream>
115 + <bugs-to>https://github.com/lunarmodules/luaexpat/issues</bugs-to>
116 + <remote-id type="github">luaexpat/issues</remote-id>
117 + </upstream>
118 </pkgmetadata>