diff options
| author | Michael Forney <mforney@mforney.org> | 2025-02-12 00:22:19 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2025-04-28 22:04:42 -0700 |
| commit | acb92fb3d4492373e9934c872f3b0b85520fa43a (patch) | |
| tree | a0f12ac82e49c0c9e17565d9c5884ccc3a4a100a /pkg | |
| parent | ed3b50be88c8c1c62c38c959919de131838e3855 (diff) | |
Add luaposix 36.2.1
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/gen.lua | 1 | ||||
| -rw-r--r-- | pkg/luaposix/config.h | 34 | ||||
| -rw-r--r-- | pkg/luaposix/gen.lua | 62 | ||||
| m--------- | pkg/luaposix/src | 0 |
4 files changed, 97 insertions, 0 deletions
diff --git a/pkg/gen.lua b/pkg/gen.lua index bc2f20f7..012a9bb6 100644 --- a/pkg/gen.lua +++ b/pkg/gen.lua @@ -68,6 +68,7 @@ subgen 'libxkbcommon' subgen 'linux-headers' subgen 'lpeg' subgen 'lua' +subgen 'luaposix' subgen 'make' subgen 'man-pages-posix' subgen 'mandoc' diff --git a/pkg/luaposix/config.h b/pkg/luaposix/config.h new file mode 100644 index 00000000..77bf1853 --- /dev/null +++ b/pkg/luaposix/config.h @@ -0,0 +1,34 @@ +#define PACKAGE "luaposix" +#define VERSION "v36.2.1" + +/* fcntl */ +#define HAVE_POSIX_FADVISE 1 + +/* sched */ +#define HAVE_SCHED_H 1 +#define HAVE_SCHED_GETSCHEDULER 1 +#define HAVE_SCHED_SETSCHEDULER 1 + +/* sys.msg */ +#define HAVE_SYS_MSG_H 1 +#define HAVE_MSGRCV 1 +#define HAVE_MSGSND 1 + +/* sys.socket */ +#define HAVE_NET_IF_H 1 +#define HAVE_LINUX_NETLINK_H 1 +#define HAVE_LINUX_IF_PACKET_H 1 + +/* sys.statvfs */ +#define HAVE_STATVFS 1 + +/* time */ +#define HAVE_TM_GMTOFF 1 +#define HAVE_TM_ZONE 1 + +/* unistd */ +#define HAVE_CRYPT 1 +#define HAVE_CRYPT_H 1 +#define HAVE_DECL_FDATASYNC 1 +#define HAVE_FDATASYNC 1 +#define HAVE_GETHOSTID 1 diff --git a/pkg/luaposix/gen.lua b/pkg/luaposix/gen.lua new file mode 100644 index 00000000..eb1955f0 --- /dev/null +++ b/pkg/luaposix/gen.lua @@ -0,0 +1,62 @@ +cflags{ + '-std=c99', + '-D _GNU_SOURCE', + '-I $srcdir/ext/include', + '-include $dir/config.h', +} + +build('sed', '$outdir/version.lua', '$srcdir/lib/posix/version.lua.in', { + expr={ + '-e s,@package@,luaposix,', + '-e s,@version2,36.2.1,', + }, +}) + +lib('libluaposix.a', [[ + ext/posix/( + ctype.c + dirent.c + errno.c + fcntl.c + fnmatch.c + glob.c + grp.c + libgen.c + poll.c + pwd.c + sched.c + signal.c + stdio.c + stdlib.c + sys/( + msg.c + resource.c + socket.c + stat.c + statvfs.c + time.c + times.c + utsname.c + wait.c + ) + syslog.c + termio.c + time.c + unistd.c + utime.c + ) +]]) + +local files = { + 'init.lua', + '_base.lua', + '_bitwise.lua', + '_strict.lua', + 'compat.lua', + 'sys.lua', + 'util.lua', +} +for _, f in ipairs(files) do + file('share/lua/5.4/posix/'..f, '644', '$srcdir/lib/posix/'..f) +end +file('share/lua/5.4/posix/version.lua', '644', '$outdir/version.lua') diff --git a/pkg/luaposix/src b/pkg/luaposix/src new file mode 160000 +Subproject 5a8d8c768fc3c51f42cb591e9523a60399efc6a |
