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