diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-27 03:58:56 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-27 03:58:56 +0100 |
commit | eb90394012a5d0ba3c13992fb861eb3387728c92 (patch) | |
tree | ef1098f5f74a16b29ec0dcf3cb0277809903d37c /dev-lua/lanes | |
parent | d76b6613e545057331e9273ddd21e68d28d9e402 (diff) |
gentoo auto-resync : 27:08:2023 - 03:58:56
Diffstat (limited to 'dev-lua/lanes')
-rw-r--r-- | dev-lua/lanes/Manifest | 2 | ||||
-rw-r--r-- | dev-lua/lanes/lanes-3.16.1.ebuild | 93 |
2 files changed, 95 insertions, 0 deletions
diff --git a/dev-lua/lanes/Manifest b/dev-lua/lanes/Manifest index 71d6cb535450..42bb6d5a36cd 100644 --- a/dev-lua/lanes/Manifest +++ b/dev-lua/lanes/Manifest @@ -1,4 +1,6 @@ AUX lanes-3.13.0-makefile.patch 2719 BLAKE2B 2ee48812f971a3ed9d6425b115fa7415fb4c47596f25a32efd4c3d5fb8eb7f70839ae21d4970fa2120c5f16847d6bb10a417a228594a7f6eedb6d53a7bd062c8 SHA512 6a511ad7cf2dac9abff275c01c885adac04b40de46fe7d776ebea1663291e9a043d9ced6f470931cafdddc200895006e389a6fb6a2e5164bdef6b6acd2f1d38c DIST lanes-3.16.0.tar.gz 257945 BLAKE2B aecc0bd551f10b29791acdde8da30fb83591395eac4d152999a0e92fe9738a6171b13363edae2d94b1db47398a01e011833ccee7a7f234033d3230605423c0b6 SHA512 ffd935baae8af752591251bbb1a7f936034ad281870d453e6e1b4291c175c91537ccae23ec25a616b45e8ab601222f323e05e938d7887091ba7e132b0cd5e449 +DIST lanes-3.16.1.tar.gz 446136 BLAKE2B e9505db907660378eb2e67f674a9e671c9554d7587ddeedca6ecaf332cdd03985d027ae5dfa7ae510da9c710b2dc70246e4eb42812347068536dd070a396e20b SHA512 bbc4e7d4dccb10a25f7560dbc4980e36b8f6bb0fbce667471d0be0ad028afc7e1dc88810e78be52a3aee9846512ec10a5ddd324dbe53f9a1db9af647f959014e EBUILD lanes-3.16.0.ebuild 1584 BLAKE2B d1ec0f298770de80c4530a1946ae0b8c0392556e2cfff75005fbd82582a97e058721a36a19ec62a675f4f698071cdf62449ea492e38b0c339d4f6895f0fdfcea SHA512 74c40ce0d417d7967d38ac86b811cb35329965047b9b02d1f7ed90ffd8c6b0b34e7c885720b26d62ce95d74f89f1e3dcb0552d11a4f1d570a2ab3c17c2963735 +EBUILD lanes-3.16.1.ebuild 1585 BLAKE2B c176b5480289763e258261ac7c45b5d72b914446f632b40d65574d4f902c758d261752c9320cc017b1d6c8a18ed205a02ccd8c55d75d42b15cf410f8c6660155 SHA512 54bba4b41a9d372e08b79580d3894f8fc5985841c3b18d0b6509e51f7a7673276a5614115cdbbf8aaf2a29003c0e3366d8bfb5716fd9e36b9266ec91fde756e9 MISC metadata.xml 439 BLAKE2B 64ca90f83e145d31acd41464d9661aa5ad164df3a9050084d4d272f7a834455bc6a9b7657bf34a3829927208a14ad8fb409a2e12f890be90008d858392f5065a SHA512 a55de988fd5da55fc51cbc3750361b95a7aa1c98e343725416eeaf8fe5c09c12c80f736593abd3bf08840b66602e6087094d9748ea238135de1f08a324a92c0a diff --git a/dev-lua/lanes/lanes-3.16.1.ebuild b/dev-lua/lanes/lanes-3.16.1.ebuild new file mode 100644 index 000000000000..42af43b2d1d9 --- /dev/null +++ b/dev-lua/lanes/lanes-3.16.1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2023 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="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 +} |