1 |
commit: 2ea7c427ca0b4700995ed0a2c0775958b8762148 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 26 21:15:48 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 26 21:15:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ea7c427 |
7 |
|
8 |
dev-lua/luaexpat: don't use -DLUA_32BITS |
9 |
|
10 |
Using '-DLUA_32BITS' is wrong and can cause problems with newer |
11 |
versions. |
12 |
|
13 |
Package-Manager: Portage-3.0.15, Repoman-3.0.2 |
14 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
15 |
|
16 |
dev-lua/luaexpat/luaexpat-1.3.0-r103.ebuild | 74 +++++++++++++++++++++++++++++ |
17 |
1 file changed, 74 insertions(+) |
18 |
|
19 |
diff --git a/dev-lua/luaexpat/luaexpat-1.3.0-r103.ebuild b/dev-lua/luaexpat/luaexpat-1.3.0-r103.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..b73300da7b3 |
22 |
--- /dev/null |
23 |
+++ b/dev-lua/luaexpat/luaexpat-1.3.0-r103.ebuild |
24 |
@@ -0,0 +1,74 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
31 |
+ |
32 |
+inherit lua toolchain-funcs |
33 |
+ |
34 |
+DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library" |
35 |
+HOMEPAGE="https://matthewwild.co.uk/projects/luaexpat/ https://code.matthewwild.co.uk/lua-expat" |
36 |
+SRC_URI="https://matthewwild.co.uk/projects/${PN}/${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="MIT" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 sparc x86" |
41 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ dev-libs/expat |
45 |
+ ${LUA_DEPS} |
46 |
+" |
47 |
+DEPEND="${RDEPEND}" |
48 |
+BDEPEND="virtual/pkgconfig" |
49 |
+ |
50 |
+HTML_DOCS=( "doc/us/." ) |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ default |
54 |
+ |
55 |
+ # Respect users CFLAGS |
56 |
+ # Remove '-ansi' to compile with newer lua versions |
57 |
+ sed -e 's/-O2//g' -e 's/-ansi//g' -i Makefile || die |
58 |
+ |
59 |
+ lua_copy_sources |
60 |
+} |
61 |
+ |
62 |
+lua_src_compile() { |
63 |
+ pushd "${BUILD_DIR}" || die |
64 |
+ |
65 |
+ local myemakeargs=( |
66 |
+ "CC=$(tc-getCC)" |
67 |
+ "LUA_INC=$(lua_get_CFLAGS)" |
68 |
+ ) |
69 |
+ |
70 |
+ emake "${myemakeargs[@]}" |
71 |
+ |
72 |
+ popd |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ lua_foreach_impl lua_src_compile |
77 |
+} |
78 |
+ |
79 |
+lua_src_install() { |
80 |
+ pushd "${BUILD_DIR}" || die |
81 |
+ |
82 |
+ local myemakeargs=( |
83 |
+ "DESTDIR=${ED}" |
84 |
+ "LUA_CDIR=$(lua_get_cmod_dir)" |
85 |
+ "LUA_INC=$(lua_get_include_dir)" |
86 |
+ "LUA_LDIR=$(lua_get_lmod_dir)" |
87 |
+ ) |
88 |
+ |
89 |
+ emake "${myemakeargs[@]}" install |
90 |
+ |
91 |
+ popd |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ lua_foreach_impl lua_src_install |
96 |
+ |
97 |
+ einstalldocs |
98 |
+} |