From 08d469d33466785d5843afc270407ebe8bd0096e Mon Sep 17 00:00:00 2001 From: Pat Maddox Date: Sun, 14 Jan 2024 07:43:53 -0800 Subject: [PATCH] textproc/go-mode.el: new port This is go-mode, the Emacs mode for editing Go code. It is a complete rewrite of the go-mode that shipped with Go 1.0.3 and before, and was part of Go 1.1 until Go 1.3. Beginning with Go 1.4, editor integration will not be part of the Go distribution anymore, making this repository the canonical place for go-mode. PR: 276329 --- textproc/Makefile | 1 + textproc/go-mode.el/Makefile | 31 +++++++++++++++++++++++++++++++ textproc/go-mode.el/distinfo | 3 +++ textproc/go-mode.el/pkg-descr | 6 ++++++ textproc/go-mode.el/pkg-plist | 4 ++++ 5 files changed, 45 insertions(+) create mode 100644 textproc/go-mode.el/Makefile create mode 100644 textproc/go-mode.el/distinfo create mode 100644 textproc/go-mode.el/pkg-descr create mode 100644 textproc/go-mode.el/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index a16475d470d2..478fdec921c3 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -244,6 +244,7 @@ SUBDIR += gmetadom SUBDIR += gnugrep SUBDIR += go-md2man + SUBDIR += go-mode.el SUBDIR += go-transifex-client SUBDIR += go-yq SUBDIR += gojq diff --git a/textproc/go-mode.el/Makefile b/textproc/go-mode.el/Makefile new file mode 100644 index 000000000000..0b4c53158db7 --- /dev/null +++ b/textproc/go-mode.el/Makefile @@ -0,0 +1,31 @@ +PORTNAME= go-mode.el +PORTVERSION= v1.6.0 +CATEGORIES= textproc + +MAINTAINER= pat@patmaddox.com +COMMENT= Emacs mode for the Go programming language +WWW= https://github.com/dominikh/go-mode.el + +LICENSE= BSD3CLAUSE + +USES= emacs +EMACS_NO_DEPENDS= yes + +USE_GITHUB= yes +GH_ACCOUNT= dominikh +GH_PROJECT= go-mode.el + +NO_ARCH= yes +NO_BUILD= yes + +OPTIONS_DEFINE= DOCS + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/*.el ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +.include diff --git a/textproc/go-mode.el/distinfo b/textproc/go-mode.el/distinfo new file mode 100644 index 000000000000..2e3246055d23 --- /dev/null +++ b/textproc/go-mode.el/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1705246850 +SHA256 (dominikh-go-mode.el-v1.6.0_GH0.tar.gz) = d480f332bb0e286e41d1592bbce29a70637487788d1ae4ad36f6e7c75eb667d4 +SIZE (dominikh-go-mode.el-v1.6.0_GH0.tar.gz) = 51329 diff --git a/textproc/go-mode.el/pkg-descr b/textproc/go-mode.el/pkg-descr new file mode 100644 index 000000000000..d1c9c86e8be3 --- /dev/null +++ b/textproc/go-mode.el/pkg-descr @@ -0,0 +1,6 @@ +This is go-mode, the Emacs mode for editing Go code. + +It is a complete rewrite of the go-mode that shipped with Go 1.0.3 and +before, and was part of Go 1.1 until Go 1.3. Beginning with Go 1.4, +editor integration will not be part of the Go distribution anymore, +making this repository the canonical place for go-mode. diff --git a/textproc/go-mode.el/pkg-plist b/textproc/go-mode.el/pkg-plist new file mode 100644 index 000000000000..0516aebefb8b --- /dev/null +++ b/textproc/go-mode.el/pkg-plist @@ -0,0 +1,4 @@ +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%EMACS_SITE_LISPDIR%%/go-guru.el +%%EMACS_SITE_LISPDIR%%/go-mode.el +%%EMACS_SITE_LISPDIR%%/go-rename.el -- 2.43.0