git: 20b08e780fea - main - devel/go-wire: Add new port

From: Dmitri Goutnik <dmgk_at_FreeBSD.org>
Date: Thu, 30 Jun 2022 13:19:02 UTC
The branch main has been updated by dmgk:

URL: https://cgit.FreeBSD.org/ports/commit/?id=20b08e780feadd1faaa43b1de4d4c3e657b4df75

commit 20b08e780feadd1faaa43b1de4d4c3e657b4df75
Author:     Boris Korzun <drtr0jan@yandex.ru>
AuthorDate: 2022-06-30 12:44:48 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-06-30 12:44:48 +0000

    devel/go-wire: Add new port
    
    Wire is a code generation tool that automates connecting components
    using dependency injection. Dependencies between components are
    represented in Wire as function parameters, encouraging explicit
    initialization instead of global variables. Because Wire operates
    without runtime state or reflection, code written to be used with Wire
    is useful even for hand-written initialization.
    
    WWW: https://github.com/google/wire
    
    PR:             264959
---
 devel/Makefile          |  1 +
 devel/go-wire/Makefile  | 20 ++++++++++++++++++++
 devel/go-wire/distinfo  |  5 +++++
 devel/go-wire/pkg-descr |  7 +++++++
 4 files changed, 33 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 56ee5173077c..e3ad19cb9fb9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -840,6 +840,7 @@
     SUBDIR += go-perf
     SUBDIR += go-protobuf
     SUBDIR += go-tools
+    SUBDIR += go-wire
     SUBDIR += gob2
     SUBDIR += gobject-introspection
     SUBDIR += gocheese
diff --git a/devel/go-wire/Makefile b/devel/go-wire/Makefile
new file mode 100644
index 000000000000..1c86a347e5bd
--- /dev/null
+++ b/devel/go-wire/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	wire
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.5.0
+CATEGORIES=	devel
+PKGNAMEPREFIX=	go-
+
+MAINTAINER=	drtr0jan@yandex.ru
+COMMENT=	Compile-time Dependency Injection for Go
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+
+GO_MODULE=	github.com/google/wire
+GO_TARGET=	./cmd/wire
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/devel/go-wire/distinfo b/devel/go-wire/distinfo
new file mode 100644
index 000000000000..5eb271e948ec
--- /dev/null
+++ b/devel/go-wire/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1656592374
+SHA256 (go/devel_go-wire/wire-v0.5.0/v0.5.0.mod) = 949a9c283cae78d684b9708fbc723577d3f6abb1eea776ee418d3a6945540c70
+SIZE (go/devel_go-wire/wire-v0.5.0/v0.5.0.mod) = 216
+SHA256 (go/devel_go-wire/wire-v0.5.0/v0.5.0.zip) = 7d6ed4cd7ff88f178e8bc19d50b06ad8607766d802d1998fd5c5cb7ac383322e
+SIZE (go/devel_go-wire/wire-v0.5.0/v0.5.0.zip) = 256553
diff --git a/devel/go-wire/pkg-descr b/devel/go-wire/pkg-descr
new file mode 100644
index 000000000000..46b7c5343fcd
--- /dev/null
+++ b/devel/go-wire/pkg-descr
@@ -0,0 +1,7 @@
+Wire is a code generation tool that automates connecting components using
+dependency injection. Dependencies between components are represented in Wire
+as function parameters, encouraging explicit initialization instead of global
+variables. Because Wire operates without runtime state or reflection, code
+written to be used with Wire is useful even for hand-written initialization.
+
+WWW: https://github.com/google/wire