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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1A736138359 for ; Mon, 23 Nov 2020 21:39:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67388E0821; Mon, 23 Nov 2020 21:39:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 4F6D7E0821 for ; Mon, 23 Nov 2020 21:39:32 +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 79D01340976 for ; Mon, 23 Nov 2020 21:39:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2C22B456 for ; Mon, 23 Nov 2020 21:39:30 +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: <1606167478.3d58bafcacd3161785b3e9c4f48b267a5835cda5.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luafilesystem/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/luafilesystem/luafilesystem-1.8.0-r1.ebuild X-VCS-Directories: dev-lua/luafilesystem/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 3d58bafcacd3161785b3e9c4f48b267a5835cda5 X-VCS-Branch: master Date: Mon, 23 Nov 2020 21:39:30 +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: cf34c141-62b7-47c0-a55c-e5bb58a82e47 X-Archives-Hash: 3fb47e40034802b4c13fcc76435e752c commit: 3d58bafcacd3161785b3e9c4f48b267a5835cda5 Author: Conrad Kostecki gentoo org> AuthorDate: Mon Nov 23 21:36:42 2020 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Mon Nov 23 21:37:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d58bafc dev-lua/luafilesystem: update ebuild Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki gentoo.org> .../luafilesystem/luafilesystem-1.8.0-r1.ebuild | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/dev-lua/luafilesystem/luafilesystem-1.8.0-r1.ebuild b/dev-lua/luafilesystem/luafilesystem-1.8.0-r1.ebuild new file mode 100644 index 00000000000..a1dd2af7610 --- /dev/null +++ b/dev-lua/luafilesystem/luafilesystem-1.8.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +MY_PV=${PV//./_} + +DESCRIPTION="File System Library for the Lua programming language" +HOMEPAGE="https://keplerproject.github.io/luafilesystem/" +SRC_URI="https://github.com/keplerproject/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="luajit test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-lang/lua-5.1:0 + luajit? ( dev-lang/luajit:2 ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( ${RDEPEND} ) +" + +HTML_DOCS=( "doc/us/." ) + +src_prepare() { + default + + cat > "config" <<-EOF + CC=$(tc-getCC) + CFLAGS=${CFLAGS} -I$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua')) -fPIC + DESTDIR=${ED} + LIB_OPTION=${LDFLAGS} -shared + LUA_LIBDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua')) + EOF +} + +src_test() { + LUA_CPATH="src/lfs.so" lua tests/test.lua || die +}