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