Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Sep 2021 08:24:45 GMT
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 77d9f83a4e4e - main - devel/goreleaser: add goreleaser.
Message-ID:  <202109200824.18K8Oj5u061523@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by vanilla:

URL: https://cgit.FreeBSD.org/ports/commit/?id=77d9f83a4e4e50f00dc0f08858fa6f06b8f7d624

commit 77d9f83a4e4e50f00dc0f08858fa6f06b8f7d624
Author:     Vanilla I. Shu <vanilla@FreeBSD.org>
AuthorDate: 2021-09-20 08:19:44 +0000
Commit:     Vanilla I. Shu <vanilla@FreeBSD.org>
CommitDate: 2021-09-20 08:24:38 +0000

    devel/goreleaser: add goreleaser.
    
    PR:             258562
    Reported by:    Robert Clausecker <fuz at fuz.su>
---
 devel/Makefile             |  1 +
 devel/goreleaser/Makefile  | 34 ++++++++++++++++++++++++++++++++++
 devel/goreleaser/distinfo  |  5 +++++
 devel/goreleaser/pkg-descr | 15 +++++++++++++++
 4 files changed, 55 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 7e32fced57c2..2d2040ef26f4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -892,6 +892,7 @@
     SUBDIR += googletest
     SUBDIR += goprotobuf
     SUBDIR += goredo
+    SUBDIR += goreleaser
     SUBDIR += gorm
     SUBDIR += goswagger
     SUBDIR += got
diff --git a/devel/goreleaser/Makefile b/devel/goreleaser/Makefile
new file mode 100644
index 000000000000..dfc07ab23dd4
--- /dev/null
+++ b/devel/goreleaser/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	goreleaser
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.179.0
+CATEGORIES=	devel
+
+MAINTAINER=	fuz@fuz.su
+COMMENT=	Deliver Go binaries as fast and easily as possible
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+USES=		go:modules
+GO_MODULE=	github.com/goreleaser/goreleaser
+GO_BUILDFLAGS=	-ldflags="-X main.version=${DISTVERSION} -X 'main.builtBy=FreeBSD ports'"
+
+# TODO: generate documentation
+PLIST_FILES=	bin/goreleaser \
+		etc/bash_completion.d/goreleaser \
+		share/fish/vendor_completions.d/goreleaser.fish \
+		share/zsh/site-functions/_goreleaser
+
+post-install:
+	@${ECHO_MSG} '=> installing shell completion files'
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
+	${GO_WRKDIR_BIN}/goreleaser completion bash \
+	    >${STAGEDIR}${PREFIX}/etc/bash_completion.d/goreleaser
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d
+	${GO_WRKDIR_BIN}/goreleaser completion fish \
+	    >${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/goreleaser.fish
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+	${GO_WRKDIR_BIN}/goreleaser completion zsh \
+	    >${STAGEDIR}${PREFIX}/share/zsh/site-functions/_goreleaser
+
+.include <bsd.port.mk>
diff --git a/devel/goreleaser/distinfo b/devel/goreleaser/distinfo
new file mode 100644
index 000000000000..1bdb9c93f43b
--- /dev/null
+++ b/devel/goreleaser/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1631890371
+SHA256 (go/devel_goreleaser/goreleaser-v0.179.0/v0.179.0.mod) = 296eca3137c814d3661117f39c27725a5456e5bc62049469f8a3b49c9608e5eb
+SIZE (go/devel_goreleaser/goreleaser-v0.179.0/v0.179.0.mod) = 6349
+SHA256 (go/devel_goreleaser/goreleaser-v0.179.0/v0.179.0.zip) = 68759443063c6874cd268d1273688de844ce8ab8d46bed5b7f1b4cf4a9ce2cbf
+SIZE (go/devel_goreleaser/goreleaser-v0.179.0/v0.179.0.zip) = 779285
diff --git a/devel/goreleaser/pkg-descr b/devel/goreleaser/pkg-descr
new file mode 100644
index 000000000000..edc805594210
--- /dev/null
+++ b/devel/goreleaser/pkg-descr
@@ -0,0 +1,15 @@
+GoReleaser builds Go binaries for several platforms, creates a GitHub
+release and then pushes a Homebrew formula to a tap repository.  All
+that wrapped in your favorite CI.
+
+With GoReleaser, you can:
+
+ - Cross-compile your Go project
+ - Release to GitHub, GitLab and Gitea
+ - Create Docker images and manifests
+ - Create Linux packages and Homebrew taps
+ - Sign artifacts, checksums and Docker images
+ - Announce new releases on Twitter, Slack, Discord and Microsoft Teams
+ - ... and much more!
+
+WWW: https://goreleaser.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109200824.18K8Oj5u061523>