git: 8dd4c1e4cd5c - main - textproc/adoc-mode.el: Add new port

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Fri, 07 Jul 2023 00:19:09 UTC
The branch main has been updated by yasu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8dd4c1e4cd5ce4d341302a1c1bc26624fb3e6403

commit 8dd4c1e4cd5ce4d341302a1c1bc26624fb3e6403
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2023-07-07 00:18:31 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2023-07-07 00:18:31 +0000

    textproc/adoc-mode.el: Add new port
    
    Add adoc-mode, major-mode for editing AsciiDoc files in Emacs.
---
 textproc/Makefile               |  1 +
 textproc/adoc-mode.el/Makefile  | 40 ++++++++++++++++++++++++++++++++++++++++
 textproc/adoc-mode.el/distinfo  |  3 +++
 textproc/adoc-mode.el/pkg-descr |  5 +++++
 4 files changed, 49 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index a29ea6b042b4..c80cf0211f4f 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -37,6 +37,7 @@
     SUBDIR += UCD
     SUBDIR += add-css-links
     SUBDIR += addts
+    SUBDIR += adoc-mode.el
     SUBDIR += af-aspell
     SUBDIR += aft
     SUBDIR += agrep
diff --git a/textproc/adoc-mode.el/Makefile b/textproc/adoc-mode.el/Makefile
new file mode 100644
index 000000000000..101e9fea2954
--- /dev/null
+++ b/textproc/adoc-mode.el/Makefile
@@ -0,0 +1,40 @@
+PORTNAME=	adoc-mode.el
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.7.0
+CATEGORIES=	textproc elisp
+PKGNAMESUFFIX=	${EMACS_PKGNAMESUFFIX}
+
+MAINTAINER=	yasu@FreeBSD.org
+COMMENT=	Major-mode for editing AsciiDoc files in Emacs
+WWW=		https://github.com/bbatsov/adoc-mode
+
+LICENSE=	GPLv2+
+
+USES=		emacs
+USE_GITHUB=	yes
+GH_ACCOUNT=	bbatsov
+GH_PROJECT=	adoc-mode
+
+NO_ARCH=	yes
+
+PLIST_FILES=	${EMACS_VERSION_SITE_LISPDIR}/adoc-mode.el \
+		${EMACS_VERSION_SITE_LISPDIR}/adoc-mode.elc
+PORTDOCS=	CHANGELOG.md CONTRIBUTING.md README.adoc
+
+OPTIONS_DEFINE=	DOCS
+
+do-build:
+	(cd ${WRKSRC} \
+	&& ${EMACS_CMD} -Q -batch -L . -f batch-byte-compile adoc-mode.el)
+
+do-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
+	${INSTALL_DATA} ${WRKSRC}/adoc-mode.el* \
+		${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:C/^/${WRKSRC}\//} \
+		${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/textproc/adoc-mode.el/distinfo b/textproc/adoc-mode.el/distinfo
new file mode 100644
index 000000000000..d4a75d248aca
--- /dev/null
+++ b/textproc/adoc-mode.el/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688664384
+SHA256 (bbatsov-adoc-mode-v0.7.0_GH0.tar.gz) = 8a402ed889985bb8289214e83b0c42dc4ff1c3c2a469b925a5b86d553a97cf4a
+SIZE (bbatsov-adoc-mode-v0.7.0_GH0.tar.gz) = 230359
diff --git a/textproc/adoc-mode.el/pkg-descr b/textproc/adoc-mode.el/pkg-descr
new file mode 100644
index 000000000000..a2221c6cdb34
--- /dev/null
+++ b/textproc/adoc-mode.el/pkg-descr
@@ -0,0 +1,5 @@
+adoc-mode is an Emacs major mode for editing AsciiDoc files. It
+emphasizes on the idea that the document is highlighted so it pretty
+much looks like the final output. What must be bold is bold, what must
+be italic is italic etc. Meta characters are naturally still visible,
+but in a faint way, so they can be easily ignored.