summaryrefslogtreecommitdiff
path: root/dev-lua/luasystem
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-28 20:40:51 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-28 20:40:51 +0000
commit9c417bacd51da6d8b57fa9f37425161d30d4b95b (patch)
tree47c9d6e4243f39a1f48afd54c969b65b00a5c649 /dev-lua/luasystem
parentd934827bf44b7cfcf6711964418148fa60877668 (diff)
gentoo resync : 28.11.2020
Diffstat (limited to 'dev-lua/luasystem')
-rw-r--r--dev-lua/luasystem/Manifest5
-rw-r--r--dev-lua/luasystem/luasystem-0.2.1_p0-r101.ebuild84
-rw-r--r--dev-lua/luasystem/luasystem-0.2.1_p0.ebuild2
-rw-r--r--dev-lua/luasystem/metadata.xml6
4 files changed, 93 insertions, 4 deletions
diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest
index 706b5fb0df8b..a6c24510b3dd 100644
--- a/dev-lua/luasystem/Manifest
+++ b/dev-lua/luasystem/Manifest
@@ -3,5 +3,6 @@ AUX luasystem-0.2.1_p0-fix-makefile.patch 825 BLAKE2B 1732876603d8b5560bda1644de
DIST luasystem-0.2.0_p0.tar.gz 8058 BLAKE2B fd29eaec7fe2f49e933932a436be75678400fc55a275e412379e05ab5b9cfe2036dfc9e61f960caa29d3c4ab1d439f9ede7ff3cbe14a61287270cc3707660636 SHA512 b8c7ba30470cbf100cc3f14df31729778cfb0aabebe4d27ce42c19581a2585f878d86a29a2f73fd1bef4e5861e2a604d3c396a73f131fa99ae14a17cba52c336
DIST luasystem-0.2.1_p0.tar.gz 8162 BLAKE2B ad8a6009823ad8202ff3884a3167d0779405c2a6be460b7ef2939622eb4d0fc8edbc6b04aba5dec9dd5e4e38f11ae0dcd582b9c348d5b516aa411858d55c6d71 SHA512 9dc323d4d1914cfa4f278a49ef22e58569d5cd7e369fa17fa6006cd47f9d90c6dfd4404067ea2436aa46a27cfbdf91e4aa26e20b89aeeefdf2aa7252c51fb32b
EBUILD luasystem-0.2.0_p0.ebuild 1044 BLAKE2B 09dc31b189eec831c6d464eb802eb29b4846a45efe2c30e692e96c9f578ec71b480f82451e407b7fc36bca90065626090a209e75c761d07ef3f77df5d544d6cf SHA512 4c443043cb0b480975288d596d97af29c570e33f44ad7b634c7d86b5660f6e6d14556065ff15c4ed9990091d3a0d916ec3f4affeb32f763b6530258417a2b71f
-EBUILD luasystem-0.2.1_p0.ebuild 1192 BLAKE2B 9bb036f72b3123bacdecee7d7b02544f7561022291a5a4578f51527fd0e92df9fb080d25ebd47647a4f6b31ebc5cc47abb2ca51088e4e35f219a8df92de9e938 SHA512 fd242fdd1fb0966fb04e2b0221f7d7b91c480b85aa5811fc741bd781978a995115d53b9f4deffce66db914c14d2d2318ebc81b742a72bfbd50b86f114c3dd626
-MISC metadata.xml 490 BLAKE2B 59d66fdd8685e01d7b7e928ebb0e43c111062bd7c43ddbbfa070b5af4a5bbc9db1031d0b95f56a05c1b39c35c7aa148e86e6d3761cfc193c5baa6ddffad68639 SHA512 bb9b143436c281ca2664b17b1d1c31ba46befb1139ebd62213dba66003dba43f9d769b65ff8954307faa40690bb31ca7b617628b2feb7c755759b642fc3699ab
+EBUILD luasystem-0.2.1_p0-r101.ebuild 1687 BLAKE2B 8a7fca76da37830a8dcd4986837beead2c91d98499e55221d3641e0f8f0be0b9b179c3587162cb8ff3a663c7a489ab858aa961f2424b1f0899dd1ef5bb4a5d9f SHA512 59a6ac5361e8c5c8232b499812a4cda72c54439cae0d050334d8aa5514b73112878dc8ad0210b0f9db8db926148b27b7bbab7cd6a61a2f9d3a17e664e44f3677
+EBUILD luasystem-0.2.1_p0.ebuild 1190 BLAKE2B 3b7990082b8f84302b3a13476600cb3065e9beaea604d4b5c780338b94c08412793d243b42a65207740ea4e82f331f22dbb3bd1eb3a8cca812146ef77f4363f4 SHA512 ef3d0a11177eb5fa2ce12ff74945ee4d7da5ee2e81aaadc5d6db9dc87764403d5f1d4fe26565a6fc231917091e022be0073a199c1cc18c9a62b1444240bb9ecb
+MISC metadata.xml 591 BLAKE2B 9e8a3ce4bfe3031b55f3aa5193c124a8aa3da8907e6dfd97e60c59e4bb846a1aec0f1e2319f43178840a9b9e7517362d654a95c2f0871494482a70a20131e535 SHA512 23828de621a5ac7168e256b201af36343de97edbeb898d6d5e4f882bca88fe345914fc98f70d5e997d8b191dcf446f62250e4309cc2d3f84b9830b023088fa0e
diff --git a/dev-lua/luasystem/luasystem-0.2.1_p0-r101.ebuild b/dev-lua/luasystem/luasystem-0.2.1_p0-r101.ebuild
new file mode 100644
index 000000000000..cbc542df1f37
--- /dev/null
+++ b/dev-lua/luasystem/luasystem-0.2.1_p0-r101.ebuild
@@ -0,0 +1,84 @@
+# 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 )
+
+lua_src_test() {
+ busted --lua=${ELUA} || die
+}
+
+src_test() {
+ lua_foreach_impl lua_src_test
+}
+
+lua_src_compile() {
+ # Clean project, to compile it for every lua slot
+ emake clean
+
+ local myemakeargs=(
+ "CC=$(tc-getCC)"
+ "LD=$(tc-getCC)"
+ "LUAINC_linux=$(lua_get_include_dir)"
+ "MYCFLAGS=${CFLAGS}"
+ "MYLDFLAGS=${LDFLAGS}"
+ )
+
+ emake "${myemakeargs[@]}" linux
+
+ # Copy module to match the choosen LUA implementation
+ cp "src/core.so" "src/core-${ELUA}.so" || die
+}
+
+src_compile() {
+ lua_foreach_impl lua_src_compile
+}
+
+lua_src_install () {
+ # Use correct module for the choosen LUA implementation
+ cp "src/core-${ELUA}.so" "src/core.so" || 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
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+
+ einstalldocs
+}
diff --git a/dev-lua/luasystem/luasystem-0.2.1_p0.ebuild b/dev-lua/luasystem/luasystem-0.2.1_p0.ebuild
index 7633f8d98223..bcbec5c1f81b 100644
--- a/dev-lua/luasystem/luasystem-0.2.1_p0.ebuild
+++ b/dev-lua/luasystem/luasystem-0.2.1_p0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="https://github.com/LuaDist2/luasystem/archive/${MY_PV}.tar.gz ->
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64 arm ~arm64 ~ppc ~ppc64 x86"
+KEYWORDS="~amd64 arm arm64 ppc ~ppc64 x86"
IUSE="luajit test"
RESTRICT="!test? ( test )"
diff --git a/dev-lua/luasystem/metadata.xml b/dev-lua/luasystem/metadata.xml
index 009738e31d63..e98cabab81dd 100644
--- a/dev-lua/luasystem/metadata.xml
+++ b/dev-lua/luasystem/metadata.xml
@@ -5,7 +5,11 @@
<email>williamh@gentoo.org</email>
<name>William Hubbs</name>
</maintainer>
- <longdescription lang="en">
+ <maintainer type="person">
+ <email>conikost@gentoo.org</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <longdescription>
luasystem is a platform independent system call library for Lua.
Supports Lua >= 5.1 and luajit >= 2.0.0.
</longdescription>