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/luaposix/gen.lua | |
| parent | ed3b50be88c8c1c62c38c959919de131838e3855 (diff) | |
Add luaposix 36.2.1
Diffstat (limited to 'pkg/luaposix/gen.lua')
| -rw-r--r-- | pkg/luaposix/gen.lua | 62 |
1 files changed, 62 insertions, 0 deletions
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') |
