git: 28b107d8779f - main - devel/lua-mode: add new port of LUA mode for emacs

From: Stefan Eßer <se_at_FreeBSD.org>
Date: Sun, 22 May 2022 13:08:58 UTC
The branch main has been updated by se:

URL: https://cgit.FreeBSD.org/ports/commit/?id=28b107d8779f1c7a8c46f8f6fe0974f8245ee1ea

commit 28b107d8779f1c7a8c46f8f6fe0974f8245ee1ea
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2022-05-22 13:07:21 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2022-05-22 13:07:21 +0000

    devel/lua-mode: add new port of LUA mode for emacs
---
 devel/Makefile             |  1 +
 devel/lua-mode/Makefile    | 26 ++++++++++++++++++++++++++
 devel/lua-mode/distinfo    |  3 +++
 devel/lua-mode/pkg-descr   | 12 ++++++++++++
 devel/lua-mode/pkg-message | 11 +++++++++++
 5 files changed, 53 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index a10e40faf070..09445623287e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1531,6 +1531,7 @@
     SUBDIR += lua-luacheck
     SUBDIR += lua-luarocks
     SUBDIR += lua-lunit
+    SUBDIR += lua-mode
     SUBDIR += lua-posix
     SUBDIR += lua-pty
     SUBDIR += lua-rds-parser
diff --git a/devel/lua-mode/Makefile b/devel/lua-mode/Makefile
new file mode 100644
index 000000000000..1b2d55b1d7de
--- /dev/null
+++ b/devel/lua-mode/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	lua-mode
+PORTVERSION=	20210802
+DISTVERSIONPREFIX=v
+CATEGORIES=	devel elisp
+PKGNAMESUFFIX=	${EMACS_PKGNAMESUFFIX}
+
+MAINTAINER=	se@FreeBSD.org
+COMMENT=	Minor mode for LUA
+
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		emacs
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	immerrr
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+PLIST_FILES=	${EMACS_SITE_LISPDIR}/lua-mode.el
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/lua-mode.el ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/
+
+.include <bsd.port.mk>
diff --git a/devel/lua-mode/distinfo b/devel/lua-mode/distinfo
new file mode 100644
index 000000000000..c60d319256bd
--- /dev/null
+++ b/devel/lua-mode/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1653067134
+SHA256 (immerrr-lua-mode-v20210802_GH0.tar.gz) = c00bca8a99427ea7696838837b45cf0093066e0c463c0c4048f3e413b2b7e0d9
+SIZE (immerrr-lua-mode-v20210802_GH0.tar.gz) = 53708
diff --git a/devel/lua-mode/pkg-descr b/devel/lua-mode/pkg-descr
new file mode 100644
index 000000000000..ebf2c440349d
--- /dev/null
+++ b/devel/lua-mode/pkg-descr
@@ -0,0 +1,12 @@
+lua-mode is an Emacs major mode for editing Lua files.
+
+Main features:
+- syntactic indentation & highlighting (incl. multiline literals/comments)
+- evaluation of lines/regions/functions/files in Lua subprocess or direct
+  interaction with its REPL
+- documentation lookup (using online/offline reference manual, e.g.
+  string.find
+- imenu integration
+- HideShow integration
+
+WWW: http://github.com/immerrr/lua-mode
diff --git a/devel/lua-mode/pkg-message b/devel/lua-mode/pkg-message
new file mode 100644
index 000000000000..b73eadb4ba1e
--- /dev/null
+++ b/devel/lua-mode/pkg-message
@@ -0,0 +1,11 @@
+[
+{ type: install
+  message: <<EOM
+You should add the following line to your ~/.emacs:
+
+    (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
+    (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
+    (add-to-list 'interpreter-mode-alist '("lua" . lua-mode))
+EOM
+}
+]