commit 281309e
Michael Forney
·
2025-02-12 08:22:19 +0000 UTC
parent de22cc9
Add luaposix 36.2.1
5 files changed,
+101,
-0
+3,
-0
1@@ -326,3 +326,6 @@
2 [submodule "pkg/pax/src"]
3 path = pkg/pax/src
4 url = https://git.sr.ht/~mcf/pax
5+[submodule "pkg/luaposix/src"]
6+ path = pkg/luaposix/src
7+ url = https://github.com/luaposix/luaposix.git
+1,
-0
1@@ -54,6 +54,7 @@ subgen 'libxkbcommon'
2 subgen 'linux-headers'
3 subgen 'lpeg'
4 subgen 'lua'
5+subgen 'luaposix'
6 subgen 'lz4'
7 subgen 'make'
8 subgen 'man-pages-posix'
+34,
-0
1@@ -0,0 +1,34 @@
2+#define PACKAGE "luaposix"
3+#define VERSION "v36.2.1"
4+
5+/* fcntl */
6+#define HAVE_POSIX_FADVISE 1
7+
8+/* sched */
9+#define HAVE_SCHED_H 1
10+#define HAVE_SCHED_GETSCHEDULER 1
11+#define HAVE_SCHED_SETSCHEDULER 1
12+
13+/* sys.msg */
14+#define HAVE_SYS_MSG_H 1
15+#define HAVE_MSGRCV 1
16+#define HAVE_MSGSND 1
17+
18+/* sys.socket */
19+#define HAVE_NET_IF_H 1
20+#define HAVE_LINUX_NETLINK_H 1
21+#define HAVE_LINUX_IF_PACKET_H 1
22+
23+/* sys.statvfs */
24+#define HAVE_STATVFS 1
25+
26+/* time */
27+#define HAVE_TM_GMTOFF 1
28+#define HAVE_TM_ZONE 1
29+
30+/* unistd */
31+#define HAVE_CRYPT 1
32+#define HAVE_CRYPT_H 1
33+#define HAVE_DECL_FDATASYNC 1
34+#define HAVE_FDATASYNC 1
35+#define HAVE_GETHOSTID 1
+62,
-0
1@@ -0,0 +1,62 @@
2+cflags{
3+ '-std=c99',
4+ '-D _GNU_SOURCE',
5+ '-I $srcdir/ext/include',
6+ '-include $dir/config.h',
7+}
8+
9+build('sed', '$outdir/version.lua', '$srcdir/lib/posix/version.lua.in', {
10+ expr={
11+ '-e s,@package@,luaposix,',
12+ '-e s,@version2,36.2.1,',
13+ },
14+})
15+
16+lib('libluaposix.a', [[
17+ ext/posix/(
18+ ctype.c
19+ dirent.c
20+ errno.c
21+ fcntl.c
22+ fnmatch.c
23+ glob.c
24+ grp.c
25+ libgen.c
26+ poll.c
27+ pwd.c
28+ sched.c
29+ signal.c
30+ stdio.c
31+ stdlib.c
32+ sys/(
33+ msg.c
34+ resource.c
35+ socket.c
36+ stat.c
37+ statvfs.c
38+ time.c
39+ times.c
40+ utsname.c
41+ wait.c
42+ )
43+ syslog.c
44+ termio.c
45+ time.c
46+ unistd.c
47+ utime.c
48+ )
49+]])
50+
51+local files = {
52+ 'init.lua',
53+ '_base.lua',
54+ '_bitwise.lua',
55+ '_strict.lua',
56+ 'compat.lua',
57+ 'sys.lua',
58+ 'util.lua',
59+}
60+for _, f in ipairs(files) do
61+ file('share/lua/5.4/posix/'..f, '644', '$srcdir/lib/posix/'..f)
62+end
63+file('share/lua/5.4/posix/version.lua', '644', '$outdir/version.lua')
+1,
-0
1@@ -0,0 +1 @@
2+Subproject commit 5a8d8c768fc3c51f42cb591e9523a60399efc6a1