diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-23 00:11:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-23 00:11:31 +0100 |
commit | bff543bb632933380da922cbfc07c67157d72d42 (patch) | |
tree | df2e5eebc3dbd8e29153ab3a869b3be8d9be9f19 /dev-lua/luasystem | |
parent | 491d0101c89d81dec507f28215b3cb094800d600 (diff) |
gentoo auto-resync : 23:06:2024 - 00:11:30
Diffstat (limited to 'dev-lua/luasystem')
-rw-r--r-- | dev-lua/luasystem/Manifest | 2 | ||||
-rw-r--r-- | dev-lua/luasystem/luasystem-0.4.0.ebuild | 91 |
2 files changed, 93 insertions, 0 deletions
diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest index bad02a9287cf..27ba04324763 100644 --- a/dev-lua/luasystem/Manifest +++ b/dev-lua/luasystem/Manifest @@ -1,6 +1,8 @@ AUX luasystem-0.2.1_p0-fix-makefile.patch 825 BLAKE2B 1732876603d8b5560bda1644de832d611e851bbe8c8edb7c1861c43b5496d47306a2f61d29087b83a0b8d87ecb2731572c2c3d149a19000c7173161bd0f326fd SHA512 980ee1089e4b2b45c54e0ac953bb441e5c31164417e64dbf3fd8f75010d50ddda84572fa0b8ed6101f1924a96a64de0ce31d4e24cf69f9f15d5c59b8f5ef8e3e DIST luasystem-0.2.1_p0.tar.gz 8162 BLAKE2B ad8a6009823ad8202ff3884a3167d0779405c2a6be460b7ef2939622eb4d0fc8edbc6b04aba5dec9dd5e4e38f11ae0dcd582b9c348d5b516aa411858d55c6d71 SHA512 9dc323d4d1914cfa4f278a49ef22e58569d5cd7e369fa17fa6006cd47f9d90c6dfd4404067ea2436aa46a27cfbdf91e4aa26e20b89aeeefdf2aa7252c51fb32b DIST luasystem-0.3.0.tar.gz 19607 BLAKE2B 82dd54dab61045d25d9d1dc074526c2443b9732adf27da052f65702f0941a04dce65582091b5ecb802e5aed9baa2f4dbd53e4cd1b624426341a83fbcb0109378 SHA512 1adf1167767d7d8233ed2c90c106b050dc2370e891465eeb13f16ebc96e8f467d67a89a40173064112117ac9db2451aa73fde0d11fab01f6d2c56bdef50cb6ac +DIST luasystem-0.4.0.tar.gz 74560 BLAKE2B 3ca3ef54572c3aca7ac465b4e93c0ae14ce33d9e278b504c7d6be209d9d26c3f21d6bb342da8c0ab7b008d366313fec436c6c7a8bd9e3246a3f2bfd6f2213214 SHA512 2b117e20955dac74b850363d88a08ca75e085e8078824b0f0a43deb29aad92e1f6a3687e6b504caf241a5353a59a96555964b3b0d6ff623c5680c005e65b294a EBUILD luasystem-0.2.1_p0-r1.ebuild 1614 BLAKE2B 1c99d5ed57adde933ca326e903fce527511580e407fe7c463db16badd7711e7af4656f4e9f1040aae4a6a28819be25481e17cc5d32c83200546aff5b148f3e97 SHA512 4d87dd9c6c076655f5a3bd61da38288950ed888cc0a0b312ec67b490048721bc330a86da1b50998e5f9e0446b7d0853583cd3e79aad210126acd2d565b2c74f1 EBUILD luasystem-0.3.0.ebuild 1652 BLAKE2B d85c191429f71111442ba7cdc7f64068c4d76e8ab9eb70bbe9e429a3d5192df9b9c72552e5e4e0f65b50076404fce9cfc55c515c828e5a0d5e532ea46f198f2e SHA512 4aacca2ed6df6824f6745b2be37290cda44b0b035ab7c354c8867f4257dcf0d4f59be44e8d4782002c353c5577a819924a58d7ce83904ee54e0759af9fc8eac5 +EBUILD luasystem-0.4.0.ebuild 1653 BLAKE2B da0bd0873327af9ce4a60974bc8ecd7712ba16855becc9e6496260e988194e7f4b2fb6b6e09ad42f7fb6bd73dcb3c9566cced284ce53204f2db40620e985959e SHA512 930aff28ccf78a417d3140863db3cf3f897fd4fc5fa63acd81ef8db1f607135c938672bb824e85c5415fa60441fa9482acc3d134f4cb0ba13d39cbfc33378b46 MISC metadata.xml 551 BLAKE2B 230312b7c2fb4bc059c507e538a5a0e6b257b7dafc6cfb90fe05dc10d8af44b3e90a7002d9566b8c73d30e3c1ce4276191e2c5ae0b78683b0f1c5b4553fbd3b5 SHA512 e19e38de42e6c0672e143b7aaf24b7a1ca01897851645720098fd6426eb5a3d4346a4cc9534a2bacfba98457160dc7f4421ceb767111688031c13e26f9a25a82 diff --git a/dev-lua/luasystem/luasystem-0.4.0.ebuild b/dev-lua/luasystem/luasystem-0.4.0.ebuild new file mode 100644 index 000000000000..3bfbf46ba5c8 --- /dev/null +++ b/dev-lua/luasystem/luasystem-0.4.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} luajit ) +MY_PV="${PV/_p/-}" + +inherit lua toolchain-funcs + +DESCRIPTION="Platform independent system calls for Lua" +HOMEPAGE="https://github.com/lunarmodules/luasystem" +SRC_URI="https://github.com/lunarmodules/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND="${LUA_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( + dev-lua/busted[${LUA_USEDEP}] + dev-lua/lua_cliargs[${LUA_USEDEP}] + ${RDEPEND} + ) +" + +PATCHES=( "${FILESDIR}"/${PN}-0.2.1_p0-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 +} |