From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 34742158020 for ; Sat, 3 Dec 2022 00:07:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C975BE0EA8; Sat, 3 Dec 2022 00:07:26 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B549DE0EA8 for ; Sat, 3 Dec 2022 00:07:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 69070341335 for ; Sat, 3 Dec 2022 00:07:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B95CC775 for ; Sat, 3 Dec 2022 00:07:23 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1670025850.3f3b817c253226061df8697b3dcc134c470e1f28.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-utf8/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/lua-utf8/Manifest dev-lua/lua-utf8/lua-utf8-0.1.5.ebuild X-VCS-Directories: dev-lua/lua-utf8/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 3f3b817c253226061df8697b3dcc134c470e1f28 X-VCS-Branch: master Date: Sat, 3 Dec 2022 00:07:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3d435a93-be3a-417c-ac3e-c7d153bf3a42 X-Archives-Hash: e743cbd95bf22f203fa93aba64a25cab commit: 3f3b817c253226061df8697b3dcc134c470e1f28 Author: Conrad Kostecki gentoo org> AuthorDate: Sat Dec 3 00:03:54 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sat Dec 3 00:04:10 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f3b817c dev-lua/lua-utf8: add 0.1.5 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/lua-utf8/Manifest | 1 + dev-lua/lua-utf8/lua-utf8-0.1.5.ebuild | 82 ++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/dev-lua/lua-utf8/Manifest b/dev-lua/lua-utf8/Manifest index d96dade307df..d0a30bebc6de 100644 --- a/dev-lua/lua-utf8/Manifest +++ b/dev-lua/lua-utf8/Manifest @@ -1 +1,2 @@ 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 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 +}