From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1226646-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 351401381F3 for <garchives@archives.gentoo.org>; Sat, 28 Nov 2020 23:59:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C60FE0883; Sat, 28 Nov 2020 23:59:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D8227E087F for <gentoo-commits@lists.gentoo.org>; Sat, 28 Nov 2020 23:59:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 94A6C340CD7 for <gentoo-commits@lists.gentoo.org>; Sat, 28 Nov 2020 23:59:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 17DAC1D8 for <gentoo-commits@lists.gentoo.org>; Sat, 28 Nov 2020 23:59:53 +0000 (UTC) From: "Conrad Kostecki" <conikost@gentoo.org> 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" <conikost@gentoo.org> Message-ID: <1606607949.3ab31025ddbf0c54f8d786ace06e0ff8be1aaf9a.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.3.ebuild dev-lua/lua-utf8/metadata.xml X-VCS-Directories: dev-lua/lua-utf8/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 3ab31025ddbf0c54f8d786ace06e0ff8be1aaf9a X-VCS-Branch: master Date: Sat, 28 Nov 2020 23:59:53 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 791d74d4-f608-4b25-b811-7f1d995a1b29 X-Archives-Hash: 59a98d3bc771b0cdde95101910c6d6ae commit: 3ab31025ddbf0c54f8d786ace06e0ff8be1aaf9a Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Sat Nov 28 23:53:09 2020 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Sat Nov 28 23:59:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ab31025 dev-lua/lua-utf8: bump to version 0.1.3 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> dev-lua/lua-utf8/Manifest | 1 + dev-lua/lua-utf8/lua-utf8-0.1.3.ebuild | 70 ++++++++++++++++++++++++++++++++++ dev-lua/lua-utf8/metadata.xml | 4 ++ 3 files changed, 75 insertions(+) diff --git a/dev-lua/lua-utf8/Manifest b/dev-lua/lua-utf8/Manifest index b2369602833..b31cd98e6e8 100644 --- a/dev-lua/lua-utf8/Manifest +++ b/dev-lua/lua-utf8/Manifest @@ -1 +1,2 @@ DIST lua-utf8-0.1.1.tar.gz 35475 BLAKE2B 99ffece901878fc966e0314886ca20255834c76b9266b1806acda7afb84d6a358c556b9a88c10497d2874d7902fac5905907ab25fefb4ba38544d46e3bae1471 SHA512 e0a8632b9391c7e7b35e371f4e95899ec58adb4988f1fe5a7101310f7c774c3a3e88073f156cf7799c57f69c0fc53aff4486beb1e7006bfaa96d86e248e38897 +DIST lua-utf8-0.1.3.tar.gz 41830 BLAKE2B 72982c7ec8d8837e391fa6bfb689c1e9f4a7746d0cbc058556f06027b4af00c936036f87baf58f45e1169fd3ea7e6d8174629d5a7279205622cf0710971ca29c SHA512 d0abe73fecbfeba36083c135d77962d953ad9e431721a2557669c912a2703e31c46f84f2ee9ee4ac966a5bcc88d4daef930f8d2d8e72106fa61010509c183e29 diff --git a/dev-lua/lua-utf8/lua-utf8-0.1.3.ebuild b/dev-lua/lua-utf8/lua-utf8-0.1.3.ebuild new file mode 100644 index 00000000000..ef773e7a908 --- /dev/null +++ b/dev-lua/lua-utf8/lua-utf8-0.1.3.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit 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 ~ppc ~ppc64 ~x86" +IUSE="luajit test" +RESTRICT="!test? ( test )" + +RDEPEND=" + luajit? ( dev-lang/luajit:2 ) + !luajit? ( >=dev-lang/lua-5.1:= ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_compile() { + local compiler=( + "$(tc-getCC)" + "${CFLAGS}" + "-fPIC" + "${LDFLAGS}" + "-I/usr/include" + "-c lutf8lib.c" + "-o lutf8lib.o" + ) + einfo "${compiler[@]}" + ${compiler[@]} || die + + local linker=( + "$(tc-getCC)" + "-shared" + "${LDFLAGS}" + "-o lutf8lib.so" + "lutf8lib.o" + ) + einfo "${linker[@]}" + ${linker[@]} || die +} + +src_test() { + local mytests=( + "test.lua" + "test_compat.lua" + "test_pm.lua" + ) + + for mytest in ${mytests[@]}; do + LUA_CPATH="${S}/lutf8lib.so" $(usex luajit 'luajit' 'lua') ${mytest} || die + done +} + +src_install() { + exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" + newexe "lutf8lib.so" "lua-utf8.so" + + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" + doins parseucd.lua + + einstalldocs +} diff --git a/dev-lua/lua-utf8/metadata.xml b/dev-lua/lua-utf8/metadata.xml index efc3ff44560..e9b8d834be8 100644 --- a/dev-lua/lua-utf8/metadata.xml +++ b/dev-lua/lua-utf8/metadata.xml @@ -1,6 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> + <maintainer type="person"> + <email>conikost@gentoo.org</email> + <name>Conrad Kostecki</name> + </maintainer> <maintainer type="person"> <email>vpayno+gentoo@gmail.com</email> <name>Victor Payno</name>