diff --git a/devel/eglot/Makefile b/devel/eglot/Makefile new file mode 100644 index 000000000000..4a17d86ba57e --- /dev/null +++ b/devel/eglot/Makefile @@ -0,0 +1,45 @@ +PORTNAME= eglot +PORTVERSION= 0.14.0 +CATEGORIES= devel elisp +PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} + +MAINTAINER= lab@thinkum.space +COMMENT= Language server client for Emacs +LICENSE= GPLv3+ + +USES= emacs +USE_GITHUB= yes +GH_ACCOUNT= joaotavora +GH_TAGNAME= 9389d2e + +SUB_FILES= pkg-message + +_EL_FILES= eglot.el +_DOC_FILES= README.md \ + gif-examples/eglot-code-actions.gif \ + gif-examples/eglot-completions.gif \ + gif-examples/eglot-diagnostics.gif \ + gif-examples/eglot-hover-on-symbol.gif \ + gif-examples/eglot-rename.gif \ + gif-examples/eglot-snippets-on-completion.gif \ + gif-examples/eglot-xref-find-definition.gif \ + gif-examples/eglot-xref-find-references.gif + +do-build: + cd ${WRKSRC}; ${EMACS_CMD} -batch -f batch-byte-compile ${_EL_FILES} + +do-install: + ${INSTALL} -d ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} +.for F in ${_EL_FILES} + ${INSTALL_DATA} ${WRKSRC}/${F} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${F} + ${INSTALL_DATA} ${WRKSRC}/${F:R}.elc ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${F:R}.elc +.endfor + ${INSTALL} -d ${STAGEDIR}${DOCSDIR} +.for D in ${_DOC_FILES:H:u} + ${INSTALL} -d ${STAGEDIR}${DOCSDIR}/${D} +.endfor +.for F in ${_DOC_FILES} + ${INSTALL_DATA} ${WRKSRC}/${F} ${STAGEDIR}${DOCSDIR}/${F} +.endfor + +.include diff --git a/devel/eglot/distinfo b/devel/eglot/distinfo new file mode 100644 index 000000000000..ebdef35c99ff --- /dev/null +++ b/devel/eglot/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1647209391 +SHA256 (joaotavora-eglot-0.14.0-9389d2e_GH0.tar.gz) = 6229eaaef0a0ff2a4af60214fbd20ef0bfcfb5904706e89fc71e19daf892b16f +SIZE (joaotavora-eglot-0.14.0-9389d2e_GH0.tar.gz) = 302411 diff --git a/devel/eglot/files/pkg-message.in b/devel/eglot/files/pkg-message.in new file mode 100644 index 000000000000..5dd7519a2725 --- /dev/null +++ b/devel/eglot/files/pkg-message.in @@ -0,0 +1,2 @@ +Documentation is available under the directory +%%DOCSDIR%%/ diff --git a/devel/eglot/pkg-descr b/devel/eglot/pkg-descr new file mode 100644 index 000000000000..6e0d0bd85de2 --- /dev/null +++ b/devel/eglot/pkg-descr @@ -0,0 +1,7 @@ +Eglot ("Emacs Polyglot") is an Emacs Lisp client for the LSP, the +Language Server Protocol. + +Eglot can communicate with indvidual LSP servers via UNIX pipe or +TCP socket communications. + +WWW: https://github.com/joaotavora/eglot diff --git a/devel/eglot/pkg-plist b/devel/eglot/pkg-plist new file mode 100644 index 000000000000..6675ce38f05e --- /dev/null +++ b/devel/eglot/pkg-plist @@ -0,0 +1,11 @@ +%%DOCSDIR%%/README.md +%%DOCSDIR%%/gif-examples/eglot-code-actions.gif +%%DOCSDIR%%/gif-examples/eglot-completions.gif +%%DOCSDIR%%/gif-examples/eglot-diagnostics.gif +%%DOCSDIR%%/gif-examples/eglot-hover-on-symbol.gif +%%DOCSDIR%%/gif-examples/eglot-rename.gif +%%DOCSDIR%%/gif-examples/eglot-snippets-on-completion.gif +%%DOCSDIR%%/gif-examples/eglot-xref-find-definition.gif +%%DOCSDIR%%/gif-examples/eglot-xref-find-references.gif +%%EMACS_VERSION_SITE_LISPDIR%%/eglot.el +%%EMACS_VERSION_SITE_LISPDIR%%/eglot.elc