git: 44034c017474 - main - editors/consult.el: Consulting completing-read for Emacs

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Mon, 17 Nov 2025 05:04:03 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=44034c017474697237ecc1424aabe98e4dcdc032

commit 44034c017474697237ecc1424aabe98e4dcdc032
Author:     Pat Maddox <pat@patmaddox.com>
AuthorDate: 2025-10-25 00:25:33 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2025-11-17 04:38:27 +0000

    editors/consult.el: Consulting completing-read for Emacs
    
    Consult provides search and navigation commands based on the Emacs
    completion function completing-read documented in the Elisp
    manual. Completion allows you to quickly select an item from a list of
    candidates. Consult offers asynchronous and interactive consult-grep
    and consult-ripgrep commands, and the line-based search command
    consult-line. Furthermore Consult provides an advanced buffer
    switching command consult-buffer to switch between buffers, recently
    opened files, bookmarks and buffer-like candidates from other
    sources. Some of the Consult commands are enhanced versions of
    built-in Emacs commands. For example the command consult-imenu
    presents a flat list of the Imenu with live preview, grouping and
    narrowing.
    
    WWW:    https://github.com/minad/consult
    PR:     290545
---
 editors/Makefile             |  1 +
 editors/consult.el/Makefile  | 33 +++++++++++++++++++++++++++++++++
 editors/consult.el/distinfo  |  3 +++
 editors/consult.el/pkg-descr | 16 ++++++++++++++++
 editors/consult.el/pkg-plist | 10 ++++++++++
 5 files changed, 63 insertions(+)

diff --git a/editors/Makefile b/editors/Makefile
index f968c37a80e8..b05a556a5a4f 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -22,6 +22,7 @@
     SUBDIR += calligraplan
     SUBDIR += chexedit
     SUBDIR += cooledit
+    SUBDIR += consult.el
     SUBDIR += cpeditor
     SUBDIR += cream
     SUBDIR += cudatext
diff --git a/editors/consult.el/Makefile b/editors/consult.el/Makefile
new file mode 100644
index 000000000000..cd957873899a
--- /dev/null
+++ b/editors/consult.el/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	consult.el
+PORTVERSION=	2.9
+CATEGORIES=	editors elisp
+PKGNAMESUFFIX=	${EMACS_PKGNAMESUFFIX}
+
+MAINTAINER=	pat@patmaddox.com
+COMMENT=	Consulting completing-read
+WWW=		https://github.com/minad/consult
+
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	compat.el${EMACS_PKGNAMESUFFIX}>=30.1.0.0:misc/compat.el@${EMACS_FLAVOR}
+
+USES=		emacs
+USE_GITHUB=	yes
+GH_ACCOUNT=	minad
+GH_PROJECT=	consult
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+OPTIONS_DEFINE=	DOCS
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/consult
+	${INSTALL_DATA} ${WRKSRC}/consult*.el ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/consult
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.org ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/editors/consult.el/distinfo b/editors/consult.el/distinfo
new file mode 100644
index 000000000000..1e328c294aa7
--- /dev/null
+++ b/editors/consult.el/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1761351835
+SHA256 (minad-consult-2.9_GH0.tar.gz) = 45bd12bda81692de7c0c9472a7bd2c9381111e7d8ad7fc06ac16f5db52bf42b7
+SIZE (minad-consult-2.9_GH0.tar.gz) = 113809
diff --git a/editors/consult.el/pkg-descr b/editors/consult.el/pkg-descr
new file mode 100644
index 000000000000..ecb0a65f1cd0
--- /dev/null
+++ b/editors/consult.el/pkg-descr
@@ -0,0 +1,16 @@
+Consult provides search and navigation commands based on the Emacs
+completion function completing-read documented in the Elisp
+manual. Completion allows you to quickly select an item from a list of
+candidates. Consult offers asynchronous and interactive consult-grep
+and consult-ripgrep commands, and the line-based search command
+consult-line. Furthermore Consult provides an advanced buffer
+switching command consult-buffer to switch between buffers, recently
+opened files, bookmarks and buffer-like candidates from other
+sources. Some of the Consult commands are enhanced versions of
+built-in Emacs commands. For example the command consult-imenu
+presents a flat list of the Imenu with live preview, grouping and
+narrowing.
+
+Consult is fully compatible with completion systems centered around
+the standard Emacs completing-read API, Vertico, Mct, and the built-in
+default completion system and Icomplete.
diff --git a/editors/consult.el/pkg-plist b/editors/consult.el/pkg-plist
new file mode 100644
index 000000000000..2842ca03f04e
--- /dev/null
+++ b/editors/consult.el/pkg-plist
@@ -0,0 +1,10 @@
+%%EMACS_SITE_LISPDIR%%/consult/consult-compile.el
+%%EMACS_SITE_LISPDIR%%/consult/consult-flymake.el
+%%EMACS_SITE_LISPDIR%%/consult/consult-imenu.el
+%%EMACS_SITE_LISPDIR%%/consult/consult-info.el
+%%EMACS_SITE_LISPDIR%%/consult/consult-kmacro.el
+%%EMACS_SITE_LISPDIR%%/consult/consult-org.el
+%%EMACS_SITE_LISPDIR%%/consult/consult-register.el
+%%EMACS_SITE_LISPDIR%%/consult/consult-xref.el
+%%EMACS_SITE_LISPDIR%%/consult/consult.el
+%%PORTDOCS%%%%DOCSDIR%%/README.org