From 5d1f16bbeb5f47d16b2f0aaede7a4d2ede3e4bcb Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Thu, 1 Jul 2021 12:27:07 +0200 Subject: dev-lua/lanes: bump to version 3.15.0 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki --- dev-lua/lanes/Manifest | 1 + dev-lua/lanes/lanes-3.15.0.ebuild | 93 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 dev-lua/lanes/lanes-3.15.0.ebuild (limited to 'dev-lua') diff --git a/dev-lua/lanes/Manifest b/dev-lua/lanes/Manifest index 1cc7a0a7a5b1..5acacb0d27a8 100644 --- a/dev-lua/lanes/Manifest +++ b/dev-lua/lanes/Manifest @@ -1 +1,2 @@ DIST lanes-3.13.0.tar.gz 247978 BLAKE2B e330f3648e865b8b7c1b77061b6a8210f46e1db650066736afe62040dbb20c7e31e0037b420fded8fb0931cc2ac59687e2039fb31f43c1bdf0cae8cd3c031307 SHA512 bb509181757fa2b4f07a55962015b35ca6bb867b18ec89dd655f333babe2e12f56479fa85bc98e0dacf5bec2a523265bbc3a978396dc332dc1fdda4df760b2e5 +DIST lanes-3.15.0.tar.gz 251497 BLAKE2B fbe02a205d3a1e9e14258fcecd5133a01a2376938678840f680ce37d763e44b924cc718f49df6c985871798f03ad51de5f6289456cbc2954b98d7c0b883fa62d SHA512 da198a70e5d88c25e55cf0947a69405b9c666bf10ac92ab0e4018cf689791c5e5bfff31ae39f8b3e0577217d24b2fcd0b70d5b4e31cebb6d5958e570f017ced4 diff --git a/dev-lua/lanes/lanes-3.15.0.ebuild b/dev-lua/lanes/lanes-3.15.0.ebuild new file mode 100644 index 000000000000..c0bf2fbb3076 --- /dev/null +++ b/dev-lua/lanes/lanes-3.15.0.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua toolchain-funcs + +DESCRIPTION="Lightweight, native, lazy evaluating multithreading library" +HOMEPAGE="https://github.com/LuaLanes/lanes" +SRC_URI="https://github.com/LuaLanes/lanes/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +# Tests are currently somehow problematic. +# https://github.com/LuaLanes/lanes/issues/197 +# https://github.com/LuaLanes/lanes/issues/198 +RESTRICT="test" + +RDEPEND="${LUA_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( ${RDEPEND} ) +" + +HTML_DOCS=( "docs/." ) + +PATCHES=( "${FILESDIR}/${PN}-3.13.0-makefile.patch" ) + +src_prepare() { + default + + lua_copy_sources +} + +lua_src_compile() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + "CC=$(tc-getCC)" + "LUA=${ELUA}" + "LUA_FLAGS=$(lua_get_CFLAGS)" + "LUA_LIBS=" + "OPT_FLAGS=${CFLAGS}" + ) + + tc-export PKG_CONFIG + + emake "${myemakeargs[@]}" + + popd +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_test() { + pushd "${BUILD_DIR}" || die + + emake LUA="${ELUA}" test + + popd +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_install() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + "LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)" + "LUA_SHAREDIR=${ED}/$(lua_get_lmod_dir)" + ) + + emake "${myemakeargs[@]}" install + + popd +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +} -- cgit v1.2.3-65-gdbad