summaryrefslogtreecommitdiff
path: root/dev-lua/lua-utf8
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-03 02:58:11 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-03 02:58:11 +0000
commitfbe7acf59ebf6dc3f04a6ef108ff3887fa5d7972 (patch)
tree3669828a2d0c5f7cb1a4bfd79be8032aac558282 /dev-lua/lua-utf8
parent9bc9c4dcc38dc560cff8e5d083d1e5f282ddde98 (diff)
gentoo auto-resync : 03:12:2022 - 02:58:11
Diffstat (limited to 'dev-lua/lua-utf8')
-rw-r--r--dev-lua/lua-utf8/Manifest2
-rw-r--r--dev-lua/lua-utf8/lua-utf8-0.1.5.ebuild82
2 files changed, 84 insertions, 0 deletions
diff --git a/dev-lua/lua-utf8/Manifest b/dev-lua/lua-utf8/Manifest
index 904ee9657d20..f119d9279c30 100644
--- a/dev-lua/lua-utf8/Manifest
+++ b/dev-lua/lua-utf8/Manifest
@@ -1,3 +1,5 @@
DIST lua-utf8-0.1.4.tar.gz 42822 BLAKE2B e9b2e46de28183b7e249d02af343707f06ba2d04df29ad0596823faa01c9e885a0cc71581dcc3b98807bae00b7491215ffcf9082a8ac0cc5f5bc558e2e48d113 SHA512 8893e4883a6eae791c7728a235c0447850ef753edb19c268c2b88ad9f5b9c485bae733afc712beff956a77ab64f7074633fc5d96ea4bb14e8c8f87e9e0ea3363
+DIST lua-utf8-0.1.5.tar.gz 47986 BLAKE2B 8902649f71b9b2f982278bfa697309474013f4b15788e268ee73aaeb80ceda93a03178ca00918c96478fa66623dbcea8b5bde89e216d8c73a18e9fe38aec7509 SHA512 2f7f1e80c27012d2ebcf3da8e9367f00dda9f7b1a7d4adee265ee37ab12a78ef7c94930945e88f060f0ec4186174dd87af80a50917d3b22a71c84f67b0df12d0
EBUILD lua-utf8-0.1.4.ebuild 1508 BLAKE2B edc88a4f2b9450c307a8ff7dcb1231c6c3a47ba63a5da238d0665d4b860fdff455ad6100e9885a44f6bcad932022a8f19f57a6b536e4b886421e713ba33b9144 SHA512 49153239bdaf999d120bf59fa1e6d82c0639628bb6b2598533b0ae48ad77231aef8a8998bf0e6708550b04484d1a3662d22d0427b8cd1064e27ac8097946e404
+EBUILD lua-utf8-0.1.5.ebuild 1514 BLAKE2B e943ffda07c7c47f72c3cab364825be3968cc7be29a04a5446e08b30f866ed175bb694aad0b0a10451edbf856278d05d9bb499394fad7440a6f5d72c2fde1771 SHA512 7e2fca4548c70de9152d2d7cabaa54622164f8ba949120d6f280839e2783cb6c03ae08f43d24d4e0a773aaed4df04103ce56274ff294663a82807b43446b89c0
MISC metadata.xml 527 BLAKE2B 21626fb645d81012e546acdb2762cbff1d45ef201ee685b7fe8850f229f2e3bd21f905e247bcacda2363608ca83e2008883177389702b3d2b9946037a6488e10 SHA512 9920f9c26eda35549e1b24cf992ee7964b035db2352dbeb1f3b0914fa960e8cebb20c9b126914eeea2f9327b8623e6c3db92a1fdef95911bc3055458e05d91b8
diff --git a/dev-lua/lua-utf8/lua-utf8-0.1.5.ebuild b/dev-lua/lua-utf8/lua-utf8-0.1.5.ebuild
new file mode 100644
index 000000000000..34527a96652f
--- /dev/null
+++ b/dev-lua/lua-utf8/lua-utf8-0.1.5.ebuild
@@ -0,0 +1,82 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="A UTF-8 support module for Lua and LuaJIT"
+HOMEPAGE="https://github.com/starwing/luautf8"
+SRC_URI="https://github.com/starwing/luautf8/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN//-/}-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="${LUA_DEPS}"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+lua_src_compile() {
+ local compiler=(
+ "$(tc-getCC)"
+ "${CFLAGS}"
+ "-fPIC"
+ "${LDFLAGS}"
+ "$(lua_get_CFLAGS)"
+ "-c lutf8lib.c"
+ "-o lutf8lib-${ELUA}.o"
+ )
+ einfo "${compiler[@]}"
+ ${compiler[@]} || die
+
+ local linker=(
+ "$(tc-getCC)"
+ "-shared"
+ "${LDFLAGS}"
+ "-o lutf8lib-${ELUA}.so"
+ "lutf8lib-${ELUA}.o"
+ )
+ einfo "${linker[@]}"
+ ${linker[@]} || die
+}
+
+src_compile() {
+ lua_foreach_impl lua_src_compile
+}
+
+lua_src_test() {
+ local mytests=(
+ "test.lua"
+ "test_compat.lua"
+ "test_pm.lua"
+ )
+
+ for mytest in ${mytests[@]}; do
+ LUA_CPATH="${S}/lutf8lib-${ELUA}.so" ${ELUA} ${mytest} || die
+ done
+}
+
+src_test() {
+ lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+ exeinto "$(lua_get_cmod_dir)"
+ newexe "lutf8lib-${ELUA}.so" "lua-utf8.so"
+
+ insinto "$(lua_get_lmod_dir)"
+ doins parseucd.lua
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+
+ einstalldocs
+}