Skip to content

Commit

Permalink
devel/go-wire: Add new port
Browse files Browse the repository at this point in the history
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
  • Loading branch information
drTr0jan authored and dmgk committed Jun 30, 2022
1 parent bd97b63 commit 20b08e7
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -840,6 +840,7 @@
SUBDIR += go-perf
SUBDIR += go-protobuf
SUBDIR += go-tools
SUBDIR += go-wire
SUBDIR += gob2
SUBDIR += gobject-introspection
SUBDIR += gocheese
Expand Down
20 changes: 20 additions & 0 deletions 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>
5 changes: 5 additions & 0 deletions 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
7 changes: 7 additions & 0 deletions 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

0 comments on commit 20b08e7

Please sign in to comment.