summaryrefslogtreecommitdiff
path: root/dev-lua/luaposix
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-25 01:28:26 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-25 01:28:26 +0100
commit9fce2d9787c37a690336f5e345a49d83ee60bc8a (patch)
tree0dabdf3dfaf12e3782b5551f1c84f30f19d22bec /dev-lua/luaposix
parentd2f5fa9c5505a5c3df8170b498e890f50dfc9553 (diff)
gentoo auto-resync : 25:06:2023 - 01:28:26
Diffstat (limited to 'dev-lua/luaposix')
-rw-r--r--dev-lua/luaposix/Manifest2
-rw-r--r--dev-lua/luaposix/luaposix-36.2.1.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-lua/luaposix/Manifest b/dev-lua/luaposix/Manifest
index 40ab70f3413c..5f04a9f06f0e 100644
--- a/dev-lua/luaposix/Manifest
+++ b/dev-lua/luaposix/Manifest
@@ -1,3 +1,5 @@
DIST luaposix-36.1.tar.gz 186075 BLAKE2B 209b27c575d664143e565443b3c0a46437a41f77e78729fdd08258a98247d82ffc6a31031f01d70bd545418ec678c0af8a24e6b14ed34694fc46d9420b3a687d SHA512 7a15725cec3701a26d1a25da3b8320ab0a9a4a3f6ee64dd0263bf0aec763bc21940c13fed58bd6a93f60eb07cd44288fa18ec26c63c32138846229515b8f3596
+DIST luaposix-36.2.1.tar.gz 188010 BLAKE2B 7f1d3cf0d766e32433f4946be92f3f0036652ae09e4816c8423e65ce47237b20151fec8ffa3d4b32079b247a98cb79f9c35758aff3c56c116b903a3b44c2c550 SHA512 cd7deeaa9179306f90bafdc6cfb2668cf42d5378e72e5baa09419198f2d42c5eab5d881e5584ac511f317bbfd850f2ad46b8cb743f1ae5e1a96f8153e03599d8
EBUILD luaposix-36.1.ebuild 1692 BLAKE2B 1295d653c9e29392895bcbbdb7829fd50b2f52b328919aba1b0e1f18637b3f906a7775cf1f92ad3ae24d21b01953647f075a404416905b5759ebe92700ebe4f6 SHA512 1cdfe1d4358857d4b5b1321353e47033a18a6e4d1000deb9c23d4a2af829b31a8244d7041221483510310f2bc9e1324e86fd3bd3cc8bcd79885eab2aa636af9b
+EBUILD luaposix-36.2.1.ebuild 1694 BLAKE2B ba5ce400bfedb4e74a0f9c931a9a6f486c755fed080ebbadfb9e1f16d79f7bba16a1632036713519d1b3b0d1899e0bf8b7d821c52e0302ee66c579589935792d SHA512 6e8c1976ffeaf23cd0501893007158988bf19831d10d692534fef7ba47748a5b029794f0867cfb5644612be2e723d6ed694acaa79cbc79f5a0a4cc6ab98243a3
MISC metadata.xml 333 BLAKE2B cde5d0fbb36e8fe0a6d1d2a4bf6a69dad4db3bf448c028af2c10ea7b2d77985ce4bca8cc64b019127bb20c9b98974fd5270d2d2a89c12da5febc0f984c519a91 SHA512 f5d2de55ae68b8d50f935c69c98246b94f94ff2065057f87a741f3bcb0862a29a94739d19f9b2cdecbb7e2001d141021a86538994864b53a1b2e62ba65d9f626
diff --git a/dev-lua/luaposix/luaposix-36.2.1.ebuild b/dev-lua/luaposix/luaposix-36.2.1.ebuild
new file mode 100644
index 000000000000..c135178d9d85
--- /dev/null
+++ b/dev-lua/luaposix/luaposix-36.2.1.ebuild
@@ -0,0 +1,73 @@
+# 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="Bindings for POSIX APIs"
+HOMEPAGE="https://luaposix.github.io/luaposix/ https://github.com/luaposix/luaposix"
+SRC_URI="https://github.com/luaposix/luaposix/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~riscv-linux ~x86-linux"
+IUSE="doc"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+# Requires specl, which is not in the tree yet
+RESTRICT="test"
+
+DEPEND="${LUA_DEPS}
+ virtual/libcrypt:=
+"
+RDEPEND="${DEPEND}
+ lua_targets_lua5-1? ( dev-lua/lua-bit32[lua_targets_lua5-1(-)] )
+ lua_targets_luajit? ( dev-lua/lua-bit32[lua_targets_luajit(-)] )
+"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+ lua_copy_sources
+}
+
+lua_src_compile() {
+ pushd "${BUILD_DIR}" || die
+
+ # LDOC=true means disable ldoc update documentation
+ ./build-aux/luke --verbose package="${PN}" version="${PV}" \
+ LDOC=true \
+ PREFIX="${ED}/usr" \
+ INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \
+ INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \
+ LUA_INCDIR="${EPREFIX}/$(lua_get_include_dir)" \
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die
+
+ popd || die
+}
+
+src_compile() {
+ lua_foreach_impl lua_src_compile
+}
+
+lua_src_install() {
+ pushd "${BUILD_DIR}" || die
+
+ ./build-aux/luke install \
+ LDOC=true \
+ PREFIX="${ED}/usr" \
+ INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \
+ INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \
+ || die
+
+ popd || die
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+ dodoc {NEWS,README}.md
+ use doc && dodoc -r doc
+}