1 |
commit: 8df1b1c03989b40104024c61a329438726740b5f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 25 23:24:07 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 25 23:24:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8df1b1c0 |
7 |
|
8 |
Revert "dev-lua/lua-utf8: fix ucd data header regeneration" |
9 |
|
10 |
This reverts commit a9dcb35859e3573e7030ebc9141c9517316fcccd. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/814860 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
dev-lua/lua-utf8/lua-utf8-0.1.3-r101.ebuild | 102 ---------------------------- |
16 |
1 file changed, 102 deletions(-) |
17 |
|
18 |
diff --git a/dev-lua/lua-utf8/lua-utf8-0.1.3-r101.ebuild b/dev-lua/lua-utf8/lua-utf8-0.1.3-r101.ebuild |
19 |
deleted file mode 100644 |
20 |
index 56443c4373a..00000000000 |
21 |
--- a/dev-lua/lua-utf8/lua-utf8-0.1.3-r101.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,102 +0,0 @@ |
24 |
-# Copyright 2020-2021 Gentoo Authors |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-EAPI=7 |
28 |
- |
29 |
-LUA_COMPAT=( lua5-{1..4} luajit ) |
30 |
- |
31 |
-inherit lua toolchain-funcs |
32 |
- |
33 |
-DESCRIPTION="A UTF-8 support module for Lua and LuaJIT" |
34 |
-HOMEPAGE="https://github.com/starwing/luautf8" |
35 |
-SRC_URI="https://github.com/starwing/luautf8/archive/${PV}.tar.gz -> ${P}.tar.gz" |
36 |
-S="${WORKDIR}/${PN//-/}-${PV}" |
37 |
- |
38 |
-LICENSE="MIT" |
39 |
-SLOT="0" |
40 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
41 |
-IUSE="test" |
42 |
-REQUIRED_USE="${LUA_REQUIRED_USE}" |
43 |
-RESTRICT="!test? ( test )" |
44 |
- |
45 |
-RDEPEND="${LUA_DEPS}" |
46 |
-DEPEND="${RDEPEND}" |
47 |
-BDEPEND=" |
48 |
- virtual/pkgconfig |
49 |
- ${LUA_DEPS} |
50 |
-" |
51 |
- |
52 |
-src_prepare() { |
53 |
- local unicodedir="${EPREFIX}"/usr/share/unicode |
54 |
- local ucddir |
55 |
- |
56 |
- if has_verson '<app-i18n/unicode-data-14.0.0-r1'; then |
57 |
- ucddir="${unicodedir}-data" |
58 |
- else |
59 |
- ucddir=${unicodedir} |
60 |
- fi |
61 |
- |
62 |
- sed -i \ |
63 |
- -e "s@UCD/@${ucd}/@" \ |
64 |
- parseucd.lua |
65 |
- |
66 |
- default |
67 |
-} |
68 |
- |
69 |
-lua_src_compile() { |
70 |
- einfo "Performing regeneration unicode data header against app-i18n/unicode-data with ${ELUA}" |
71 |
- "${ELUA}" parseucd.lua |
72 |
- |
73 |
- local compiler=( |
74 |
- "$(tc-getCC)" |
75 |
- "${CFLAGS}" |
76 |
- "-fPIC" |
77 |
- "${LDFLAGS}" |
78 |
- "$(lua_get_CFLAGS)" |
79 |
- "-c lutf8lib.c" |
80 |
- "-o lutf8lib-${ELUA}.o" |
81 |
- ) |
82 |
- einfo "${compiler[@]}" |
83 |
- ${compiler[@]} || die |
84 |
- |
85 |
- local linker=( |
86 |
- "$(tc-getCC)" |
87 |
- "-shared" |
88 |
- "${LDFLAGS}" |
89 |
- "-o lutf8lib-${ELUA}.so" |
90 |
- "lutf8lib-${ELUA}.o" |
91 |
- ) |
92 |
- einfo "${linker[@]}" |
93 |
- ${linker[@]} || die |
94 |
-} |
95 |
- |
96 |
-src_compile() { |
97 |
- lua_foreach_impl lua_src_compile |
98 |
-} |
99 |
- |
100 |
-lua_src_test() { |
101 |
- local mytests=( |
102 |
- "test.lua" |
103 |
- "test_compat.lua" |
104 |
- "test_pm.lua" |
105 |
- ) |
106 |
- |
107 |
- for mytest in ${mytests[@]}; do |
108 |
- LUA_CPATH="${S}/lutf8lib-${ELUA}.so" ${ELUA} ${mytest} || die |
109 |
- done |
110 |
-} |
111 |
- |
112 |
-src_test() { |
113 |
- lua_foreach_impl lua_src_test |
114 |
-} |
115 |
- |
116 |
-lua_src_install() { |
117 |
- exeinto "$(lua_get_cmod_dir)" |
118 |
- newexe "lutf8lib-${ELUA}.so" "lua-utf8.so" |
119 |
-} |
120 |
- |
121 |
-src_install() { |
122 |
- lua_foreach_impl lua_src_install |
123 |
- |
124 |
- einstalldocs |
125 |
-} |