Date: Mon, 1 Aug 2022 16:19:29 GMT From: Yasuhiro Kimura <yasu@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 19038c6371d3 - main - devel/transient-devel: Add new port Message-ID: <202208011619.271GJTuY087551@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=19038c6371d34f358988d33a13822b7a25b0b877 commit 19038c6371d34f358988d33a13822b7a25b0b877 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-08-01 06:36:00 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-08-01 16:12:01 +0000 devel/transient-devel: Add new port Add devel/transient-devel, development version of Emacs key and popup interface for complex keybindings. https://github.com/magit/transient --- devel/Makefile | 1 + devel/transient-devel/Makefile | 61 +++++++++++++++++++++++++++++++++++++++++ devel/transient-devel/distinfo | 3 ++ devel/transient-devel/pkg-descr | 21 ++++++++++++++ devel/transient-devel/pkg-plist | 3 ++ devel/transient/Makefile | 2 ++ 6 files changed, 91 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 9cae1bc49588..200d075b6753 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7234,6 +7234,7 @@ SUBDIR += tpasm SUBDIR += tradcpp SUBDIR += transient + SUBDIR += transient-devel SUBDIR += transwarp SUBDIR += tree-sitter SUBDIR += treepy.el diff --git a/devel/transient-devel/Makefile b/devel/transient-devel/Makefile new file mode 100644 index 000000000000..f207263c5e69 --- /dev/null +++ b/devel/transient-devel/Makefile @@ -0,0 +1,61 @@ +PORTNAME= transient +DISTVERSIONPREFIX= v +DISTVERSION= 0.3.7-140 +DISTVERSIONSUFFIX= -gcc887eb +CATEGORIES= devel elisp +PKGNAMESUFFIX= -devel${EMACS_PKGNAMESUFFIX} + +MAINTAINER= yasu@FreeBSD.org +COMMENT= Emacs key and popup interface for complex keybindings + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= compat.el${EMACS_PKGNAMESUFFIX}>=28.1.1.0:misc/compat.el@${EMACS_FLAVOR} +RUN_DEPENDS= compat.el${EMACS_PKGNAMESUFFIX}>=28.1.1.0:misc/compat.el@${EMACS_FLAVOR} + +USES= emacs gmake makeinfo +USE_GITHUB= yes +GH_ACCOUNT= magit + +MAKE_ENV+= LOAD_PATH="-L ${WRKSRC}/lisp -L ${PREFIX}/${EMACS_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/compat" + +ALL_TARGET= lisp info + +CONFLICTS_INSTALL= transient-emacs* + +NO_ARCH= yes + +INFO= transient + +PORTDOCS= CHANGELOG README.org transient.html + +OPTIONS_DEFINE= DOCS PDF + +PDF_DESC= Build and install PDF document + +DOCS_BUILD_DEPENDS= gsed:textproc/gsed +DOCS_ALL_TARGET= html +DOCS_BINARY_ALIAS= sed=gsed +PDF_BUILD_DEPENDS= texi2pdf:print/texinfo +PDF_USE= TEX=dvipdfmx:build +PDF_ALL_TARGET= pdf +PDF_PLIST_FILES= ${DOCSDIR}/transient.pdf + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/lisp/*.el* \ + ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/*.info \ + ${STAGEDIR}${PREFIX}/${INFO_PATH} + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.org ${WRKSRC}/CHANGELOG \ + ${WRKSRC}/docs/transient.html ${STAGEDIR}${DOCSDIR} + +do-install-PDF-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/transient.pdf ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/devel/transient-devel/distinfo b/devel/transient-devel/distinfo new file mode 100644 index 000000000000..5eb8bfc98177 --- /dev/null +++ b/devel/transient-devel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1659335981 +SHA256 (magit-transient-v0.3.7-140-gcc887eb_GH0.tar.gz) = 5767c681bd10a125ebe5b2c6f248b31409d86ce8df5c5e25849b72f19f8a606c +SIZE (magit-transient-v0.3.7-140-gcc887eb_GH0.tar.gz) = 112379 diff --git a/devel/transient-devel/pkg-descr b/devel/transient-devel/pkg-descr new file mode 100644 index 000000000000..5682c2b2d72d --- /dev/null +++ b/devel/transient-devel/pkg-descr @@ -0,0 +1,21 @@ +Taking inspiration from prefix keys and prefix arguments, Transient +implements a similar abstraction involving a prefix command, infix +arguments and suffix commands. We could call this abstraction a +"transient command", but because it always involves at least two +commands (a prefix and a suffix) we prefer to call it just a +"transient". + +When the user calls a transient prefix command, then a transient +(temporary) keymap is activated, which binds the transient's infix +and suffix commands, and functions that control the transient state +are added to `pre-command-hook` and `post-command-hook`. The available +suffix and infix commands and their state are shown in a popup buffer +until the transient is exited by invoking a suffix command. + +Calling an infix command causes its value to be changed, possibly by +reading a new value in the minibuffer. + +Calling a suffix command usually causes the transient to be exited but +suffix commands can also be configured to not exit the transient. + +WWW: https://github.com/magit/transient diff --git a/devel/transient-devel/pkg-plist b/devel/transient-devel/pkg-plist new file mode 100644 index 000000000000..c90f16f93ad0 --- /dev/null +++ b/devel/transient-devel/pkg-plist @@ -0,0 +1,3 @@ +%%EMACS_VERSION_SITE_LISPDIR%%/transient-autoloads.el +%%EMACS_VERSION_SITE_LISPDIR%%/transient.el +%%EMACS_VERSION_SITE_LISPDIR%%/transient.elc diff --git a/devel/transient/Makefile b/devel/transient/Makefile index 8314beb8a62b..4c381ade3512 100644 --- a/devel/transient/Makefile +++ b/devel/transient/Makefile @@ -17,6 +17,8 @@ GH_ACCOUNT= magit ALL_TARGET= lisp info +CONFLICTS_INSTALL= transient-devel-emacs* + NO_ARCH= yes INFO= transient
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208011619.271GJTuY087551>