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 1AEE213835A for ; Sun, 29 Nov 2020 15:37:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6305CE0855; Sun, 29 Nov 2020 15:37:58 +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 443E9E0855 for ; Sun, 29 Nov 2020 15:37:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 431FB3413B0 for ; Sun, 29 Nov 2020 15:37:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6351C477 for ; Sun, 29 Nov 2020 15:37:54 +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: <1606663598.c0fb404fe177a335c4278c243a326f83312e21de.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasystem/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/luasystem/luasystem-0.2.1_p0-r102.ebuild X-VCS-Directories: dev-lua/luasystem/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: c0fb404fe177a335c4278c243a326f83312e21de X-VCS-Branch: master Date: Sun, 29 Nov 2020 15:37:54 +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: 522aa0ed-33e5-4368-87ef-0ff45d6155be X-Archives-Hash: 216f5e17703c838d7123a64e35d576af commit: c0fb404fe177a335c4278c243a326f83312e21de Author: Conrad Kostecki gentoo org> AuthorDate: Sun Nov 29 15:26:38 2020 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Nov 29 15:26:38 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0fb404f dev-lua/luasystem: update ebuild Updated ebuild not to use clean. Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/luasystem/luasystem-0.2.1_p0-r102.ebuild | 89 ++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/dev-lua/luasystem/luasystem-0.2.1_p0-r102.ebuild b/dev-lua/luasystem/luasystem-0.2.1_p0-r102.ebuild new file mode 100644 index 00000000000..9e0ede3dc99 --- /dev/null +++ b/dev-lua/luasystem/luasystem-0.2.1_p0-r102.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..3} luajit ) +MY_PV="${PV/_p/-}" + +inherit lua toolchain-funcs + +DESCRIPTION="Platform independent system calls for Lua" +HOMEPAGE="https://github.com/o-lim/luasystem/" +SRC_URI="https://github.com/o-lim/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="${LUA_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( + >=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}] + ${RDEPEND} + ) +" + +PATCHES=( "${FILESDIR}"/${P}-fix-makefile.patch ) + +src_prepare() { + default + + lua_copy_sources +} + +lua_src_test() { + busted --lua=${ELUA} || die +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_compile() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + "CC=$(tc-getCC)" + "LD=$(tc-getCC)" + "LUAINC_linux=$(lua_get_include_dir)" + "MYCFLAGS=${CFLAGS}" + "MYLDFLAGS=${LDFLAGS}" + ) + + emake "${myemakeargs[@]}" linux + + popd +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_install () { + pushd "${BUILD_DIR}" || die + + local emakeargs=( + "INSTALL_TOP_CDIR=${ED}/$(lua_get_cmod_dir)" + "INSTALL_TOP_LDIR=${ED}/$(lua_get_lmod_dir)" + "LUA_INC=${ED}/$(lua_get_include_dir)" + ) + + emake "${emakeargs[@]}" install + + insinto $(lua_get_lmod_dir)/system + doins system/init.lua + + popd +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +}