pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
luarocks: Import luarocks-3.12.2
Module Name: pkgsrc-wip
Committed By: PHO <pho%cielonegro.org@localhost>
Pushed By: pho
Date: Thu Jan 8 17:23:22 2026 +0900
Changeset: 8d018b614d49379a285522a85427c678df431ae5
Modified Files:
Makefile
Added Files:
luarocks/COMMIT_MSG
luarocks/DESCR
luarocks/Makefile
luarocks/PLIST
luarocks/TODO
luarocks/distinfo
Log Message:
luarocks: Import luarocks-3.12.2
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8d018b614d49379a285522a85427c678df431ae5
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
luarocks/COMMIT_MSG | 6 +++
luarocks/DESCR | 4 ++
luarocks/Makefile | 38 +++++++++++++++++++
luarocks/PLIST | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++
luarocks/TODO | 7 ++++
luarocks/distinfo | 5 +++
7 files changed, 167 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index b305fe34a8..1b664868e1 100644
--- a/Makefile
+++ b/Makefile
@@ -2304,6 +2304,7 @@ SUBDIR+= lua-ldoc
SUBDIR+= lua-luacheck
SUBDIR+= luabind
SUBDIR+= luakit-git
+SUBDIR+= luarocks
SUBDIR+= lucene
SUBDIR+= lumina
SUBDIR+= lumina-desktop
diff --git a/luarocks/COMMIT_MSG b/luarocks/COMMIT_MSG
new file mode 100644
index 0000000000..cdeb95745e
--- /dev/null
+++ b/luarocks/COMMIT_MSG
@@ -0,0 +1,6 @@
+misc/luarocks: Import luarocks-3.12.2
+
+LuaRocks is the package manager for Lua modules.
+
+It allows you to create and install Lua modules as self-contained packages
+called rocks.
diff --git a/luarocks/DESCR b/luarocks/DESCR
new file mode 100644
index 0000000000..c1b18114cc
--- /dev/null
+++ b/luarocks/DESCR
@@ -0,0 +1,4 @@
+LuaRocks is the package manager for Lua modules.
+
+It allows you to create and install Lua modules as self-contained packages
+called rocks.
diff --git a/luarocks/Makefile b/luarocks/Makefile
new file mode 100644
index 0000000000..2fabe42bd9
--- /dev/null
+++ b/luarocks/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+
+DISTNAME= luarocks-3.12.2
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=luarocks/}
+GITHUB_RELEASE= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://luarocks.org/
+COMMENT= Package manager for Lua modules
+LICENSE= mit
+
+USE_TOOLS+= gmake
+HAS_CONFIGURE= yes
+
+DEPENDS+= unzip-[0-9]*:../../archivers/unzip
+
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --rocks-tree=${PREFIX}/rocks
+CONFIGURE_ARGS+= --with-lua-bin=${LUA_INTERPRETER:H:Q}
+CONFIGURE_ARGS+= --with-lua-interpreter=${LUA_INTERPRETER:T:Q}
+
+REQD_DIRS+= ${PKG_SYSCONFDIR}/luarocks
+REQD_FILES+= share/examples/luarocks/config-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}.lua \
+ ${PKG_SYSCONFDIR}/luarocks/config-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}.lua
+
+INSTALLATION_DIRS+= share/examples/luarocks
+post-install:
+ ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/luarocks/config-*.lua ${DESTDIR}${PREFIX}/share/examples/luarocks/
+
+PRINT_PLIST_AWK+= /\/config-${LUA_VERSION_MAJOR}\.${LUA_VERSION_MINOR}.lua$$/ \
+ { gsub(/${LUA_VERSION_MAJOR}\.${LUA_VERSION_MINOR}/, "$${LUA_VERSION_MAJOR}.$${LUA_VERSION_MINOR}") }
+PLIST_SUBST+= LUA_VERSION_MAJOR=${LUA_VERSION_MAJOR}
+PLIST_SUBST+= LUA_VERSION_MINOR=${LUA_VERSION_MINOR}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/luarocks/PLIST b/luarocks/PLIST
new file mode 100644
index 0000000000..a4a549842e
--- /dev/null
+++ b/luarocks/PLIST
@@ -0,0 +1,106 @@
+@comment $NetBSD$
+bin/luarocks
+bin/luarocks-admin
+${LUA_EXAMPLESDIR}/config-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}.lua
+${LUA_LDIR}/luarocks/admin/cache.lua
+${LUA_LDIR}/luarocks/admin/cmd/add.lua
+${LUA_LDIR}/luarocks/admin/cmd/make_manifest.lua
+${LUA_LDIR}/luarocks/admin/cmd/refresh_cache.lua
+${LUA_LDIR}/luarocks/admin/cmd/remove.lua
+${LUA_LDIR}/luarocks/admin/index.lua
+${LUA_LDIR}/luarocks/build.lua
+${LUA_LDIR}/luarocks/build/builtin.lua
+${LUA_LDIR}/luarocks/build/cmake.lua
+${LUA_LDIR}/luarocks/build/command.lua
+${LUA_LDIR}/luarocks/build/make.lua
+${LUA_LDIR}/luarocks/cmd.lua
+${LUA_LDIR}/luarocks/cmd/build.lua
+${LUA_LDIR}/luarocks/cmd/config.lua
+${LUA_LDIR}/luarocks/cmd/doc.lua
+${LUA_LDIR}/luarocks/cmd/download.lua
+${LUA_LDIR}/luarocks/cmd/init.lua
+${LUA_LDIR}/luarocks/cmd/install.lua
+${LUA_LDIR}/luarocks/cmd/lint.lua
+${LUA_LDIR}/luarocks/cmd/list.lua
+${LUA_LDIR}/luarocks/cmd/make.lua
+${LUA_LDIR}/luarocks/cmd/new_version.lua
+${LUA_LDIR}/luarocks/cmd/pack.lua
+${LUA_LDIR}/luarocks/cmd/path.lua
+${LUA_LDIR}/luarocks/cmd/purge.lua
+${LUA_LDIR}/luarocks/cmd/remove.lua
+${LUA_LDIR}/luarocks/cmd/search.lua
+${LUA_LDIR}/luarocks/cmd/show.lua
+${LUA_LDIR}/luarocks/cmd/test.lua
+${LUA_LDIR}/luarocks/cmd/unpack.lua
+${LUA_LDIR}/luarocks/cmd/upload.lua
+${LUA_LDIR}/luarocks/cmd/which.lua
+${LUA_LDIR}/luarocks/cmd/write_rockspec.lua
+${LUA_LDIR}/luarocks/config.lua
+${LUA_LDIR}/luarocks/core/cfg.lua
+${LUA_LDIR}/luarocks/core/dir.lua
+${LUA_LDIR}/luarocks/core/manif.lua
+${LUA_LDIR}/luarocks/core/path.lua
+${LUA_LDIR}/luarocks/core/persist.lua
+${LUA_LDIR}/luarocks/core/sysdetect.lua
+${LUA_LDIR}/luarocks/core/types/query.lua
+${LUA_LDIR}/luarocks/core/types/result.lua
+${LUA_LDIR}/luarocks/core/types/rockspec.lua
+${LUA_LDIR}/luarocks/core/util.lua
+${LUA_LDIR}/luarocks/core/vers.lua
+${LUA_LDIR}/luarocks/deplocks.lua
+${LUA_LDIR}/luarocks/deps.lua
+${LUA_LDIR}/luarocks/dir.lua
+${LUA_LDIR}/luarocks/download.lua
+${LUA_LDIR}/luarocks/fetch.lua
+${LUA_LDIR}/luarocks/fetch/cvs.lua
+${LUA_LDIR}/luarocks/fetch/git.lua
+${LUA_LDIR}/luarocks/fetch/git_file.lua
+${LUA_LDIR}/luarocks/fetch/git_http.lua
+${LUA_LDIR}/luarocks/fetch/git_https.lua
+${LUA_LDIR}/luarocks/fetch/git_ssh.lua
+${LUA_LDIR}/luarocks/fetch/hg.lua
+${LUA_LDIR}/luarocks/fetch/hg_http.lua
+${LUA_LDIR}/luarocks/fetch/hg_https.lua
+${LUA_LDIR}/luarocks/fetch/hg_ssh.lua
+${LUA_LDIR}/luarocks/fetch/sscm.lua
+${LUA_LDIR}/luarocks/fetch/svn.lua
+${LUA_LDIR}/luarocks/fs.lua
+${LUA_LDIR}/luarocks/fs/linux.lua
+${LUA_LDIR}/luarocks/fs/lua.lua
+${LUA_LDIR}/luarocks/fs/macosx.lua
+${LUA_LDIR}/luarocks/fs/tools.lua
+${LUA_LDIR}/luarocks/fs/unix.lua
+${LUA_LDIR}/luarocks/fs/unix/tools.lua
+${LUA_LDIR}/luarocks/fs/win32.lua
+${LUA_LDIR}/luarocks/fs/win32/tools.lua
+${LUA_LDIR}/luarocks/fun.lua
+${LUA_LDIR}/luarocks/loader.lua
+${LUA_LDIR}/luarocks/manif.lua
+${LUA_LDIR}/luarocks/manif/writer.lua
+${LUA_LDIR}/luarocks/pack.lua
+${LUA_LDIR}/luarocks/path.lua
+${LUA_LDIR}/luarocks/persist.lua
+${LUA_LDIR}/luarocks/queries.lua
+${LUA_LDIR}/luarocks/remove.lua
+${LUA_LDIR}/luarocks/repo_writer.lua
+${LUA_LDIR}/luarocks/repos.lua
+${LUA_LDIR}/luarocks/require.lua
+${LUA_LDIR}/luarocks/results.lua
+${LUA_LDIR}/luarocks/rockspecs.lua
+${LUA_LDIR}/luarocks/search.lua
+${LUA_LDIR}/luarocks/signing.lua
+${LUA_LDIR}/luarocks/test.lua
+${LUA_LDIR}/luarocks/test/busted.lua
+${LUA_LDIR}/luarocks/test/command.lua
+${LUA_LDIR}/luarocks/tools/patch.lua
+${LUA_LDIR}/luarocks/tools/tar.lua
+${LUA_LDIR}/luarocks/tools/zip.lua
+${LUA_LDIR}/luarocks/type/manifest.lua
+${LUA_LDIR}/luarocks/type/rockspec.lua
+${LUA_LDIR}/luarocks/type_check.lua
+${LUA_LDIR}/luarocks/upload/api.lua
+${LUA_LDIR}/luarocks/upload/multipart.lua
+${LUA_LDIR}/luarocks/util.lua
+${LUA_LDIR}/luarocks/vendor/argparse.lua
+${LUA_LDIR}/luarocks/vendor/dkjson.lua
+@pkgdir etc/luarocks
diff --git a/luarocks/TODO b/luarocks/TODO
new file mode 100644
index 0000000000..514e82b37f
--- /dev/null
+++ b/luarocks/TODO
@@ -0,0 +1,7 @@
+To import luarocks properly to pkgsrc, we should modify our infrastructure
+for installing Lua modules. Specifically, our lang/lua/module.mk should
+create INSTALL hooks for generating Rock metadata so that pkgsrc-installed
+Lua modules can be recognized by luarocks.
+
+See:
+https://github.com/luarocks/luarocks/blob/main/docs/integrating_distro_modules_with_luarocks.md
diff --git a/luarocks/distinfo b/luarocks/distinfo
new file mode 100644
index 0000000000..5457215b6f
--- /dev/null
+++ b/luarocks/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (luarocks-3.12.2.tar.gz) = cc58fd4a470be9b3a50a46bec645c4dcc5b70ce80adb51cc3e2af96df30dd99a
+SHA512 (luarocks-3.12.2.tar.gz) = a1182c5f0ba87841014bb8063c170968659e35339d559a56fe8eb007ebfbe0ce356e4c4341bbfe4279986d9ca10f04a38e3fdbc80223251526d2de34b2849cc5
+Size (luarocks-3.12.2.tar.gz) = 441393 bytes
Home |
Main Index |
Thread Index |
Old Index