aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-08-29 21:47:46 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-08-29 21:47:46 +0000
commitf48af54b460bfc2b6370d2541c90a634b06e523c (patch)
tree562097e9a1e6f88269502c3aa59f94e5bd4d3b5d
parent1ae8112d530ccf9ca550ca805cc39d87a8c0ef92 (diff)
downloadports-f48af54b460bfc2b6370d2541c90a634b06e523c.tar.gz
ports-f48af54b460bfc2b6370d2541c90a634b06e523c.zip
Notes
-rw-r--r--devel/Makefile1
-rw-r--r--devel/lua-luarocks/Makefile71
-rw-r--r--devel/lua-luarocks/distinfo2
-rw-r--r--devel/lua-luarocks/pkg-descr9
-rw-r--r--devel/lua-luarocks/pkg-plist69
5 files changed, 152 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 1ab53527622b..5319ea589d9e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1393,6 +1393,7 @@
SUBDIR += lua-lgi
SUBDIR += lua-lpeg
SUBDIR += lua-lpeg51
+ SUBDIR += lua-luarocks
SUBDIR += lua-lunit
SUBDIR += lua-posix
SUBDIR += lua-pty
diff --git a/devel/lua-luarocks/Makefile b/devel/lua-luarocks/Makefile
new file mode 100644
index 000000000000..f11d04d38349
--- /dev/null
+++ b/devel/lua-luarocks/Makefile
@@ -0,0 +1,71 @@
+# $FreeBSD$
+
+PORTNAME= luarocks
+PORTVERSION= 2.2.2
+DISTVERSIONPREFIX= v
+CATEGORIES= devel
+PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
+
+MAINTAINER= jbeich@FreeBSD.org
+COMMENT= Package manager for Lua modules
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+RUN_DEPENDS= zip:${PORTSDIR}/archivers/zip \
+ curl:${PORTSDIR}/ftp/curl
+
+USE_GITHUB= yes
+GH_ACCOUNT= keplerproject
+
+NO_ARCH= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX} \
+ --with-lua-include=${LUA_INCDIR} \
+ --lua-version=${LUA_VER} \
+ --with-downloader=curl \
+ --versioned-rocks-dir
+ALL_TARGET= build
+
+OPTIONS_DEFINE= LUAJIT
+
+OPTIONS_GROUP= BUILD FETCH
+BUILD_DESC= Build backends
+OPTIONS_GROUP_BUILD= CMAKE GMAKE
+FETCH_DESC= Fetch from repositories
+OPTIONS_GROUP_FETCH= CVS GIT HG SVN
+
+CMAKE_DESC= CMake support
+CMAKE_RUN_DEPENDS= cmake:${PORTSDIR}/devel/cmake
+GMAKE_DESC= GNU Make support
+GMAKE_RUN_DEPENDS= gmake:${PORTSDIR}/devel/gmake
+
+CVS_DESC= CVS support
+CVS_RUN_DEPENDS= cvs:${PORTSDIR}/devel/cvs-devel
+GIT_DESC= Git support
+GIT_RUN_DEPENDS= git:${PORTSDIR}/devel/git
+HG_DESC= Mercurial support
+HG_RUN_DEPENDS= hg:${PORTSDIR}/devel/mercurial
+SVN_DESC= Subversion support
+SVN_RUN_DEPENDS= svn:${PORTSDIR}/devel/subversion
+
+LUAJIT_DESC= Use LuaJIT instead of Lua
+LUAJIT_LIB_DEPENDS= libluajit-${LUA_VER}.so:${PORTSDIR}/lang/luajit
+LUAJIT_CONFIGURE_ON= --lua-suffix=jit
+LUAJIT_PLIST_SUB= LUA_VER=${LUA_VER} \
+ LUA_MODSHAREDIR=share/lua/${LUA_VER}
+LUAJIT_VARS= LUA_INCDIR=${LOCALBASE}/include/luajit-2.0 \
+ LUA_VER=5.1 LUA_PKGNAMEPREFIX=lua51-
+LUAJIT_USES_OFF= lua
+
+post-patch:
+# Don't install unprefixed binaries to avoid package conflict with
+# luarocks built against different lang/lua* versions
+ @${REINPLACE_CMD} '/ln -/d' ${WRKSRC}/Makefile.install.inc
+
+post-build:
+# NO_ARCH requires https://bugs.archlinux.org/task/40388
+ @${REINPLACE_CMD} -e '/LUAROCKS_UNAME_M/d' \
+ ${WRKSRC}/src/luarocks/site_config.lua
+
+.include <bsd.port.mk>
diff --git a/devel/lua-luarocks/distinfo b/devel/lua-luarocks/distinfo
new file mode 100644
index 000000000000..f77a4449b31b
--- /dev/null
+++ b/devel/lua-luarocks/distinfo
@@ -0,0 +1,2 @@
+SHA256 (keplerproject-luarocks-v2.2.2_GH0.tar.gz) = ca3b6927756201f4dfe24812a124d2f77cf624534655baf316bbf2152fa59acc
+SIZE (keplerproject-luarocks-v2.2.2_GH0.tar.gz) = 4008540
diff --git a/devel/lua-luarocks/pkg-descr b/devel/lua-luarocks/pkg-descr
new file mode 100644
index 000000000000..1cef8c1bbecc
--- /dev/null
+++ b/devel/lua-luarocks/pkg-descr
@@ -0,0 +1,9 @@
+LuaRocks allows you to install Lua modules as self-contained packages
+called rocks, which also contain version dependency information. This
+information can be used both during installation, so that when one
+rock is requested all rocks it depends on are installed as well, and
+also optionally at run time, so that when a module is required, the
+correct version is loaded. LuaRocks supports both local and remote
+repositories, and multiple local rocks trees.
+
+WWW: https://luarocks.org
diff --git a/devel/lua-luarocks/pkg-plist b/devel/lua-luarocks/pkg-plist
new file mode 100644
index 000000000000..b6e2718c642e
--- /dev/null
+++ b/devel/lua-luarocks/pkg-plist
@@ -0,0 +1,69 @@
+bin/luarocks-%%LUA_VER%%
+bin/luarocks-admin-%%LUA_VER%%
+%%ETCDIR%%/config-%%LUA_VER%%.lua
+%%LUA_MODSHAREDIR%%/luarocks/add.lua
+%%LUA_MODSHAREDIR%%/luarocks/admin_remove.lua
+%%LUA_MODSHAREDIR%%/luarocks/build.lua
+%%LUA_MODSHAREDIR%%/luarocks/build/builtin.lua
+%%LUA_MODSHAREDIR%%/luarocks/build/cmake.lua
+%%LUA_MODSHAREDIR%%/luarocks/build/command.lua
+%%LUA_MODSHAREDIR%%/luarocks/build/make.lua
+%%LUA_MODSHAREDIR%%/luarocks/cache.lua
+%%LUA_MODSHAREDIR%%/luarocks/cfg.lua
+%%LUA_MODSHAREDIR%%/luarocks/command_line.lua
+%%LUA_MODSHAREDIR%%/luarocks/deps.lua
+%%LUA_MODSHAREDIR%%/luarocks/dir.lua
+%%LUA_MODSHAREDIR%%/luarocks/doc.lua
+%%LUA_MODSHAREDIR%%/luarocks/download.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/cvs.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/git.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/git_file.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/git_http.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/git_https.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/hg.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/hg_http.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/hg_https.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/hg_ssh.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/sscm.lua
+%%LUA_MODSHAREDIR%%/luarocks/fetch/svn.lua
+%%LUA_MODSHAREDIR%%/luarocks/fs.lua
+%%LUA_MODSHAREDIR%%/luarocks/fs/lua.lua
+%%LUA_MODSHAREDIR%%/luarocks/fs/unix.lua
+%%LUA_MODSHAREDIR%%/luarocks/fs/unix/tools.lua
+%%LUA_MODSHAREDIR%%/luarocks/fs/win32.lua
+%%LUA_MODSHAREDIR%%/luarocks/fs/win32/tools.lua
+%%LUA_MODSHAREDIR%%/luarocks/help.lua
+%%LUA_MODSHAREDIR%%/luarocks/index.lua
+%%LUA_MODSHAREDIR%%/luarocks/install.lua
+%%LUA_MODSHAREDIR%%/luarocks/lint.lua
+%%LUA_MODSHAREDIR%%/luarocks/list.lua
+%%LUA_MODSHAREDIR%%/luarocks/loader.lua
+%%LUA_MODSHAREDIR%%/luarocks/make.lua
+%%LUA_MODSHAREDIR%%/luarocks/make_manifest.lua
+%%LUA_MODSHAREDIR%%/luarocks/manif.lua
+%%LUA_MODSHAREDIR%%/luarocks/manif_core.lua
+%%LUA_MODSHAREDIR%%/luarocks/new_version.lua
+%%LUA_MODSHAREDIR%%/luarocks/pack.lua
+%%LUA_MODSHAREDIR%%/luarocks/path.lua
+%%LUA_MODSHAREDIR%%/luarocks/path_cmd.lua
+%%LUA_MODSHAREDIR%%/luarocks/persist.lua
+%%LUA_MODSHAREDIR%%/luarocks/purge.lua
+%%LUA_MODSHAREDIR%%/luarocks/refresh_cache.lua
+%%LUA_MODSHAREDIR%%/luarocks/remove.lua
+%%LUA_MODSHAREDIR%%/luarocks/repos.lua
+%%LUA_MODSHAREDIR%%/luarocks/require.lua
+%%LUA_MODSHAREDIR%%/luarocks/search.lua
+%%LUA_MODSHAREDIR%%/luarocks/show.lua
+%%LUA_MODSHAREDIR%%/luarocks/site_config.lua
+%%LUA_MODSHAREDIR%%/luarocks/tools/patch.lua
+%%LUA_MODSHAREDIR%%/luarocks/tools/tar.lua
+%%LUA_MODSHAREDIR%%/luarocks/tools/zip.lua
+%%LUA_MODSHAREDIR%%/luarocks/type_check.lua
+%%LUA_MODSHAREDIR%%/luarocks/unpack.lua
+%%LUA_MODSHAREDIR%%/luarocks/upload.lua
+%%LUA_MODSHAREDIR%%/luarocks/upload/api.lua
+%%LUA_MODSHAREDIR%%/luarocks/upload/multipart.lua
+%%LUA_MODSHAREDIR%%/luarocks/util.lua
+%%LUA_MODSHAREDIR%%/luarocks/validate.lua
+%%LUA_MODSHAREDIR%%/luarocks/write_rockspec.lua