aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Korzun <drtr0jan@yandex.ru>2022-06-30 12:44:48 +0000
committerDmitri Goutnik <dmgk@FreeBSD.org>2022-06-30 12:44:48 +0000
commit20b08e780feadd1faaa43b1de4d4c3e657b4df75 (patch)
tree1971b044f33151f523e31c30bb420c74899b13ad
parentbd97b63d8b5d81d2520c6a3b248b63e2d69be59e (diff)
downloadports-20b08e780feadd1faaa43b1de4d4c3e657b4df75.tar.gz
ports-20b08e780feadd1faaa43b1de4d4c3e657b4df75.zip
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
-rw-r--r--devel/Makefile1
-rw-r--r--devel/go-wire/Makefile20
-rw-r--r--devel/go-wire/distinfo5
-rw-r--r--devel/go-wire/pkg-descr7
4 files changed, 33 insertions, 0 deletions
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