{ "name": "luv", "version": "1.52.1-0", "summary": "luv: libuv's event loop, timers, files, processes and sockets for Lua and LuaJIT (Neovim's vim.uv)", "category": "library", "license": "Apache-2.0", "homepage": "https://github.com/luvit/luv", "source": { "url": "https://github.com/luvit/luv/releases/download/1.52.1-0/luv-1.52.1-0.tar.gz", "sha256": "3e6eb820a3aee034f85f9cce9bd77b5d42f34d128a1ccec877adf28c913577c7" }, "watch": {"kind": "github-release", "repo": "luvit/luv", "tag_regex": "^([0-9]+\\.[0-9]+\\.[0-9]+-[0-9]+)$"}, "deps": [ "luajit", "libuv" ], "env_packages": [], "static": true, "nss": false, "check": "LDFLAGS=\"$LDFLAGS -lluv $($PKG_CONFIG --libs libuv)\" CHECK_CPPFLAGS=\"-I$PREFIX/include/luv\" check_lib luajit 'luv.h' 'lua_State *L = luaL_newstate(); luaL_openlibs(L); luaopen_luv(L); lua_setglobal(L, \"uv\"); if (luaL_dostring(L, \"local t = uv.new_timer() local fired = 0 t:start(20, 0, function() fired = fired + 1 t:close() end) local p = os.tmpname() local fd = uv.fs_open(p, [[w]], 420) uv.fs_write(fd, [[bvs-luv]], 0) uv.fs_close(fd) fd = uv.fs_open(p, [[r]], 420) local s = uv.fs_read(fd, 7, 0) uv.fs_close(fd) os.remove(p) uv.run() return fired .. [[ ]] .. s .. [[ ]] .. uv.version_string()\")) { fprintf(stderr, \"%s\\n\", lua_tostring(L, -1)); return 1; } const char *r = lua_tostring(L, -1); printf(\"luv linked into a LuaJIT program: (timer runs, file read back, libuv) %s\\n\", r); return strncmp(r, \"1 bvs-luv \", 10)' && if [ \"$STATIC\" != 1 ]; then bin/luajit -e \"package.cpath = '$PREFIX/lib/lua/5.1/?.so' local uv = require('luv') local out = {} local h = uv.spawn('/bin/sh', {args = {'-c', 'exit 3'}}, function(code) out[1] = code end) uv.run() io.write('luv module: a child exited with ', out[1], '\\\\n')\" | has 'exited with 3'; fi" }