aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Kimura <yasu@FreeBSD.org>2023-07-07 00:18:31 +0000
committerYasuhiro Kimura <yasu@FreeBSD.org>2023-07-07 00:18:31 +0000
commit8dd4c1e4cd5ce4d341302a1c1bc26624fb3e6403 (patch)
tree3ecad64ce2cd1107b22b0018814178f429b2ad68
parent93bb84b3c8e7365b6aa238eb5b9ebbeca0b5dec3 (diff)
textproc/adoc-mode.el: Add new port
Add adoc-mode, major-mode for editing AsciiDoc files in Emacs.
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/adoc-mode.el/Makefile40
-rw-r--r--textproc/adoc-mode.el/distinfo3
-rw-r--r--textproc/adoc-mode.el/pkg-descr5
4 files changed, 49 insertions, 0 deletions
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.