Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142359566
D20746.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
48 KB
Referenced Files
None
Subscribers
None
D20746.diff
View Options
Index: head/Mk/Uses/go.mk
===================================================================
--- head/Mk/Uses/go.mk
+++ head/Mk/Uses/go.mk
@@ -5,11 +5,17 @@
#
# Feature: go
# Usage: USES=go
-# Valid ARGS: (none), modules
+# Valid ARGS: (none), modules, no_targets, run
#
# (none) Setup GOPATH and build in GOPATH mode.
# modules If the upstream uses Go modules, this can be set to build
# in modules-aware mode.
+# no_targets Indicates that Go is needed at build time as a part of
+# make/CMake build. This will setup build environment like
+# GO_ENV, GO_BUILDFLAGS but will not create post-extract, do-build
+# and do-install targets.
+# run Indicates that Go is needed at run time and adds it to
+# RUN_DEPENDS.
#
# You can set the following variables to control the process.
#
@@ -40,15 +46,15 @@
# The Go port to use. By default this is lang/go but can be set
# to lang/go-devel in make.conf for testing with future Go versions.
#
-# This variable should not be set by individual ports!
+# This variable must not be set by individual ports!
#
# MAINTAINER: jlaffaye@FreeBSD.org
.if !defined(_INCLUDE_USES_GO_MK)
_INCLUDE_USES_GO_MK= yes
-.if !empty(go_ARGS) && ${go_ARGS:Nmodules}
-IGNORE= USES=go only accepts no arguments or 'modules'
+.if !empty(go_ARGS:Nmodules:Nno_targets:Nrun)
+IGNORE= USES=go has invalid arguments: ${go_ARGS:Nmodules:Nno_targets:Nrun}
.endif
# Settable variables
@@ -91,6 +97,9 @@
GO_PORT?= lang/go
BUILD_DEPENDS+= ${GO_CMD}:${GO_PORT}
+.if ${go_ARGS:Mrun}
+RUN_DEPENDS+= ${GO_CMD}:${GO_PORT}
+.endif
PLIST_SUB+= GO_PKGNAME=${GO_PKGNAME}
_USES_POST+= go
@@ -105,13 +114,13 @@
@${LN} -sf ${WRKSRC} ${GO_WRKSRC}
.endif
-.if !target(do-build)
+.if !target(do-build) && empty(go_ARGS:Mno_targets)
do-build:
(cd ${GO_WRKSRC}; \
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install ${GO_BUILDFLAGS} ${GO_TARGET})
.endif
-.if !target(do-install)
+.if !target(do-install) && empty(go_ARGS:Mno_targets)
do-install:
.for _TARGET in ${GO_TARGET}
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/${_TARGET:T} ${STAGEDIR}${PREFIX}/bin
Index: head/databases/cayley/Makefile
===================================================================
--- head/databases/cayley/Makefile
+++ head/databases/cayley/Makefile
@@ -14,7 +14,7 @@
BROKEN_i386= gopkg.in/mgo.v2/bson/json.go:320:7: constant 9007199254740992 overflows int
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}graph
Index: head/databases/cockroach/Makefile
===================================================================
--- head/databases/cockroach/Makefile
+++ head/databases/cockroach/Makefile
@@ -18,10 +18,9 @@
BUILD_DEPENDS= autoconf:devel/autoconf \
bash:shells/bash \
- cmake:devel/cmake \
- go:lang/go
+ cmake:devel/cmake
-USES= gmake libedit
+USES= gmake go libedit
USE_RC_SUBR= cockroach
Index: head/databases/go-carbon/Makefile
===================================================================
--- head/databases/go-carbon/Makefile
+++ head/databases/go-carbon/Makefile
@@ -12,8 +12,6 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-BUILD_DEPENDS= go>=1.8:lang/go
-
USES= go
USE_GITHUB= yes
Index: head/databases/influxdb/Makefile
===================================================================
--- head/databases/influxdb/Makefile
+++ head/databases/influxdb/Makefile
@@ -14,7 +14,7 @@
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
ONLY_FOR_ARCHS_REASON= depends on go which is not supported in this architecture
-BUILD_DEPENDS= go>=1.10.3:lang/go
+USES= go
USE_RC_SUBR= influxd
Index: head/databases/mongodb34-tools/Makefile
===================================================================
--- head/databases/mongodb34-tools/Makefile
+++ head/databases/mongodb34-tools/Makefile
@@ -15,9 +15,7 @@
BROKEN_SSL_REASON_libressl= could not determine kind of name for C.EVP_sha
BROKEN_SSL_REASON_libressl-devel= ${BROKEN_SSL_REASON_libressl}
-BUILD_DEPENDS= go>0:lang/go
-
-USES= localbase
+USES= go localbase
USE_GITHUB= yes
GH_ACCOUNT= mongodb
Index: head/databases/mongodb36-tools/Makefile
===================================================================
--- head/databases/mongodb36-tools/Makefile
+++ head/databases/mongodb36-tools/Makefile
@@ -17,11 +17,9 @@
BROKEN_SSL_REASON_libressl= could not determine kind of name for C.EVP_sha
BROKEN_SSL_REASON_libressl-devel= ${BROKEN_SSL_REASON_libressl}
-BUILD_DEPENDS= go>0:lang/go
-
CONFLICTS_INSTALL= mongodb mongodb[32-34]-tools
-USES= localbase
+USES= go localbase
USE_GITHUB= yes
GH_ACCOUNT= mongodb
Index: head/databases/pgmetrics/Makefile
===================================================================
--- head/databases/pgmetrics/Makefile
+++ head/databases/pgmetrics/Makefile
@@ -11,9 +11,10 @@
LICENSE= APACHE20
+USES= go
+
USE_GITHUB= yes
-BUILD_DEPENDS= go>=1.9:lang/go
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
GH_ACCOUNT= rapidloop
GH_SUBDIR= src/github.com/${GH_ACCOUNT_DEFAULT}/${GH_PROJECT_DEFAULT}
Index: head/databases/tile38/Makefile
===================================================================
--- head/databases/tile38/Makefile
+++ head/databases/tile38/Makefile
@@ -11,10 +11,9 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.7:lang/go \
- bash:shells/bash
+BUILD_DEPENDS= bash:shells/bash
-USES= shebangfix
+USES= go shebangfix
SHEBANG_FILES= build.sh
USE_GITHUB= yes
GH_ACCOUNT= tidwall
Index: head/databases/usql/Makefile
===================================================================
--- head/databases/usql/Makefile
+++ head/databases/usql/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= xo
Index: head/deskutils/chart/Makefile
===================================================================
--- head/deskutils/chart/Makefile
+++ head/deskutils/chart/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.10:lang/go
+USES= go
USE_GITHUB= yes
Index: head/devel/arduino-builder/Makefile
===================================================================
--- head/devel/arduino-builder/Makefile
+++ head/devel/arduino-builder/Makefile
@@ -11,7 +11,7 @@
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= arduino
@@ -27,7 +27,6 @@
TOOLS_RUN_DEPENDS= arduino-tools>=${_COMPAT_VER}:devel/arduino-tools
TOOLS_PLIST_FILES= arduino/arduino-builder.options
-GO_ENV+= GOPATH=${WRKSRC}
_COMPAT_VER= 1.6.12
_IDE_VER= 10612
@@ -42,7 +41,7 @@
${WRKSRC}/arduino-builder.options
do-build:
- @( cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GO_ENV} go build arduino.cc/arduino-builder )
+ @( cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GO_ENV} GOPATH=${WRKSRC} go build arduino.cc/arduino-builder )
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
Index: head/devel/arduinoOTA/Makefile
===================================================================
--- head/devel/arduinoOTA/Makefile
+++ head/devel/arduinoOTA/Makefile
@@ -9,7 +9,7 @@
LICENSE= GPLv3
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= arduino
Index: head/devel/awless/Makefile
===================================================================
--- head/devel/awless/Makefile
+++ head/devel/awless/Makefile
@@ -11,7 +11,7 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= wallix
Index: head/devel/bloaty/Makefile
===================================================================
--- head/devel/bloaty/Makefile
+++ head/devel/bloaty/Makefile
@@ -12,14 +12,13 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go \
- cmake:devel/cmake \
+BUILD_DEPENDS= cmake:devel/cmake \
ninja:devel/ninja
LIB_DEPENDS= libre2.so:devel/re2 \
libcapstone.so:devel/capstone4 \
libprotobuf.so:devel/protobuf
-USES= cmake pkgconfig
+USES= cmake go:no_targets pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= google
Index: head/devel/git-codereview/Makefile
===================================================================
--- head/devel/git-codereview/Makefile
+++ head/devel/git-codereview/Makefile
@@ -7,7 +7,7 @@
MAINTAINER= swills@FreeBSD.org
COMMENT= Command-line tool for working with Gerrit
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= golang
Index: head/devel/git-town/Makefile
===================================================================
--- head/devel/git-town/Makefile
+++ head/devel/git-town/Makefile
@@ -11,8 +11,9 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
RUN_DEPENDS= git:devel/git
+
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= Originate
Index: head/devel/gitaly/Makefile
===================================================================
--- head/devel/gitaly/Makefile
+++ head/devel/gitaly/Makefile
@@ -28,13 +28,12 @@
rubygem-rbtrace>0:devel/rubygem-rbtrace \
rubygem-licensee8>=8.9.0:devel/rubygem-licensee8 \
rubygem-google-protobuf371>=3.7.1:devel/rubygem-google-protobuf371
-BUILD_DEPENDS= go>=1.11:lang/go \
- gem:devel/ruby-gems \
+BUILD_DEPENDS= gem:devel/ruby-gems \
${MY_DEPENDS}
RUN_DEPENDS= ${MY_DEPENDS} \
gitlab-shell>=6.0.4:devel/gitlab-shell
-USES= gmake
+USES= gmake go:no_targets
USE_RUBY= yes
USE_GITLAB= yes
Index: head/devel/gitlab-runner/Makefile
===================================================================
--- head/devel/gitlab-runner/Makefile
+++ head/devel/gitlab-runner/Makefile
@@ -18,11 +18,12 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go \
- go-bindata:devel/go-bindata
+BUILD_DEPENDS= go-bindata:devel/go-bindata
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \
bash:shells/bash \
git:devel/git
+
+USES= go
USE_GITLAB= yes
Index: head/devel/gitlab-shell/Makefile
===================================================================
--- head/devel/gitlab-shell/Makefile
+++ head/devel/gitlab-shell/Makefile
@@ -10,8 +10,9 @@
LICENSE= MIT
-BUILD_DEPENDS= gem:devel/ruby-gems \
- go>=1.5.3:lang/go
+BUILD_DEPENDS= gem:devel/ruby-gems
+
+USES= go
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
Index: head/devel/go-bindata/Makefile
===================================================================
--- head/devel/go-bindata/Makefile
+++ head/devel/go-bindata/Makefile
@@ -8,7 +8,7 @@
MAINTAINER= swills@FreeBSD.org
COMMENT= Generates Go code from any file
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= jteeuwen
Index: head/devel/go-protobuf/Makefile
===================================================================
--- head/devel/go-protobuf/Makefile
+++ head/devel/go-protobuf/Makefile
@@ -14,7 +14,7 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= gogo
Index: head/devel/go-tools/Makefile
===================================================================
--- head/devel/go-tools/Makefile
+++ head/devel/go-tools/Makefile
@@ -12,7 +12,7 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_TUPLE= golang:tools:bfb5194:DEFAULT/src/golang.org/x/tools \
Index: head/devel/gogs/Makefile
===================================================================
--- head/devel/gogs/Makefile
+++ head/devel/gogs/Makefile
@@ -11,9 +11,10 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
RUN_DEPENDS= git:devel/git \
bash:shells/bash
+
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= gogs
Index: head/devel/goprotobuf/Makefile
===================================================================
--- head/devel/goprotobuf/Makefile
+++ head/devel/goprotobuf/Makefile
@@ -13,8 +13,9 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
RUN_DEPENDS= protoc:devel/protobuf
+
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= golang
Index: head/devel/gpm/Makefile
===================================================================
--- head/devel/gpm/Makefile
+++ head/devel/gpm/Makefile
@@ -12,8 +12,9 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-RUN_DEPENDS= bash:shells/bash \
- go:lang/go
+RUN_DEPENDS= bash:shells/bash
+
+USES= go:run
USE_GITHUB= yes
GH_ACCOUNT= pote
Index: head/devel/grpc/Makefile
===================================================================
--- head/devel/grpc/Makefile
+++ head/devel/grpc/Makefile
@@ -13,13 +13,13 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go \
- yasm:devel/yasm
+BUILD_DEPENDS= yasm:devel/yasm
LIB_DEPENDS= libgflags.so:devel/gflags \
libprotobuf.so:devel/protobuf \
libcares.so:dns/c-ares
-USES= cmake localbase:ldflags perl5 pkgconfig ssl
+USES= cmake go:no_targets localbase:ldflags perl5 pkgconfig ssl
+
USE_GITHUB= yes
GH_TUPLE= google:benchmark:v1.4.1:benchmark/third_party/benchmark
USE_LDCONFIG= yes
Index: head/devel/grumpy/Makefile
===================================================================
--- head/devel/grumpy/Makefile
+++ head/devel/grumpy/Makefile
@@ -9,14 +9,11 @@
BROKEN_i386= constant 2147762812 overflows int
-BUILD_DEPENDS= go:lang/go
-RUN_DEPENDS:= ${BUILD_DEPENDS}
-
USE_GITHUB= yes
GH_ACCOUNT= google
GH_TAGNAME= 3ec8795
-USES= gmake python:2.7 shebangfix
+USES= gmake go:no_targets,run python:2.7 shebangfix
SHEBANG_FILES= tools/benchcmp tools/coverparse tools/diffrange tools/grumpc
BINARY_ALIAS= python=${PYTHON_CMD}
Index: head/devel/grv/Makefile
===================================================================
--- head/devel/grv/Makefile
+++ head/devel/grv/Makefile
@@ -12,10 +12,9 @@
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
LIB_DEPENDS= libgit2.so:devel/libgit2
-USES= ncurses pkgconfig readline:port
+USES= go ncurses pkgconfig readline:port
USE_GITHUB= yes
GH_ACCOUNT= rgburke
GH_SUBDIR= src/github.com/rgburke/grv
Index: head/devel/gvp/Makefile
===================================================================
--- head/devel/gvp/Makefile
+++ head/devel/gvp/Makefile
@@ -12,10 +12,9 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENCE
-RUN_DEPENDS= bash:shells/bash \
- go:lang/go
+RUN_DEPENDS= bash:shells/bash
-USES= shebangfix
+USES= go:run shebangfix
SHEBANG_FILES= bin/gvp
Index: head/devel/jiri/Makefile
===================================================================
--- head/devel/jiri/Makefile
+++ head/devel/jiri/Makefile
@@ -13,11 +13,12 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/go/src/fuchsia.googlesource.com/jiri/LICENSE
-BUILD_DEPENDS= go:lang/go \
- cmake:devel/cmake \
+BUILD_DEPENDS= cmake:devel/cmake \
ninja:devel/ninja
RUN_DEPENDS= git:devel/git
+USES= go
+
GITHASH= 56b2a541f92f3bd9d28b29e1cbcb16f96d6bc6c1
TIMESTAMP= 2019-01-03T00:00:00.000000
EXTRACT_AFTER_ARGS= -s "!^!${DISTNAME}/go/src/fuchsia.googlesource.com/jiri/!"
@@ -28,7 +29,7 @@
do-build:
cd ${WRKSRC}/go/src/fuchsia.googlesource.com/jiri && \
- ${SETENV} GOPATH=${WRKSRC}/go \
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOPATH=${WRKSRC}/go \
go build -ldflags "-s -w -X \"fuchsia.googlesource.com/jiri/version.GitCommit=${GITHASH}\" -X \"fuchsia.googlesource.com/jiri/version.BuildTime=${TIMESTAMP}\"" -a -o jiri fuchsia.googlesource.com/jiri/cmd/jiri
do-install:
Index: head/devel/lab/Makefile
===================================================================
--- head/devel/lab/Makefile
+++ head/devel/lab/Makefile
@@ -11,7 +11,7 @@
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.10,1:lang/go
+USES= go
OPTIONS_DEFINE= GIT_SUBVERSION
Index: head/devel/liteide/Makefile
===================================================================
--- head/devel/liteide/Makefile
+++ head/devel/liteide/Makefile
@@ -11,10 +11,7 @@
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/LICENSE.LGPL
-BUILD_DEPENDS= go:lang/go
-RUN_DEPENDS= go:lang/go
-
-USES= gl qmake qt:5
+USES= gl go:no_targets,run qmake qt:5
USE_GL= gl
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
USE_QT= buildtools_build core gui network printsupport widgets xml
Index: head/devel/loccount/Makefile
===================================================================
--- head/devel/loccount/Makefile
+++ head/devel/loccount/Makefile
@@ -10,7 +10,7 @@
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITLAB= yes
GL_ACCOUNT= esr
Index: head/devel/mage/Makefile
===================================================================
--- head/devel/mage/Makefile
+++ head/devel/mage/Makefile
@@ -11,7 +11,7 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= magefile
Index: head/devel/pprof/Makefile
===================================================================
--- head/devel/pprof/Makefile
+++ head/devel/pprof/Makefile
@@ -10,7 +10,7 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= google
Index: head/dns/amass/Makefile
===================================================================
--- head/dns/amass/Makefile
+++ head/dns/amass/Makefile
@@ -10,7 +10,7 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= nodefault # main code is in GH_TUPLE, otherwise build fails with circular dependency errors
GH_ACCOUNT= OWASP
Index: head/dns/knot-resolver/Makefile
===================================================================
--- head/dns/knot-resolver/Makefile
+++ head/dns/knot-resolver/Makefile
@@ -64,7 +64,7 @@
DOXYGEN_MAKE_ARGS_OFF= HAS_doxygen=no
GO_DESC= go
-GO_BUILD_DEPENDS= go>=1.5:lang/go
+GO_USES= go:no_targets
GO_MAKE_ARGS= HAS_go=yes
GO_MAKE_ARGS_OFF= HAS_go=no
Index: head/editors/micro/Makefile
===================================================================
--- head/editors/micro/Makefile
+++ head/editors/micro/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= zyedidia
Index: head/finance/fixc/Makefile
===================================================================
--- head/finance/fixc/Makefile
+++ head/finance/fixc/Makefile
@@ -8,7 +8,7 @@
MAINTAINER= blttll@gmail.com
COMMENT= Simple Financial Information eXchange (FIX) protocol console client
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
PLIST_FILES= bin/fixc
USE_GITHUB= yes
Index: head/misc/cryptoballot/Makefile
===================================================================
--- head/misc/cryptoballot/Makefile
+++ head/misc/cryptoballot/Makefile
@@ -9,7 +9,7 @@
LICENSE= AGPLv3
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_TAGNAME= 3753e1b
Index: head/misc/exercism/Makefile
===================================================================
--- head/misc/exercism/Makefile
+++ head/misc/exercism/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
USE_GITHUB= yes
Index: head/net-im/coyim/Makefile
===================================================================
--- head/net-im/coyim/Makefile
+++ head/net-im/coyim/Makefile
@@ -12,11 +12,10 @@
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
-USES= gnome pkgconfig shebangfix
+USES= gnome go pkgconfig shebangfix
USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk30 pango
Index: head/net-im/matterbridge/Makefile
===================================================================
--- head/net-im/matterbridge/Makefile
+++ head/net-im/matterbridge/Makefile
@@ -11,7 +11,7 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= 42wim
Index: head/net-im/matterircd/Makefile
===================================================================
--- head/net-im/matterircd/Makefile
+++ head/net-im/matterircd/Makefile
@@ -13,7 +13,7 @@
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
-BUILD_DEPENDS= go>=1.8:lang/go
+USES= go
USE_RC_SUBR= matterircd
Index: head/net-im/slack-term/Makefile
===================================================================
--- head/net-im/slack-term/Makefile
+++ head/net-im/slack-term/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= erroneousboat
Index: head/net-im/ssh-chat/Makefile
===================================================================
--- head/net-im/ssh-chat/Makefile
+++ head/net-im/ssh-chat/Makefile
@@ -12,7 +12,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= nodefault # the main code is in GH_TUPLE
GH_ACCOUNT= shazow
Index: head/net-im/xmpp-client/Makefile
===================================================================
--- head/net-im/xmpp-client/Makefile
+++ head/net-im/xmpp-client/Makefile
@@ -11,7 +11,7 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_TUPLE= agl:xmpp-client:3030ad4:DEFAULT/src/github.com/agl/xmpp-client \
Index: head/net-mgmt/carbon-relay-ng/Makefile
===================================================================
--- head/net-mgmt/carbon-relay-ng/Makefile
+++ head/net-mgmt/carbon-relay-ng/Makefile
@@ -10,10 +10,9 @@
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.8:lang/go \
- go-bindata:devel/go-bindata
+BUILD_DEPENDS= go-bindata:devel/go-bindata
-USES= gmake
+USES= gmake go
USE_GITHUB= yes
GH_ACCOUNT= graphite-ng
Index: head/net-mgmt/carbonzipper/Makefile
===================================================================
--- head/net-mgmt/carbonzipper/Makefile
+++ head/net-mgmt/carbonzipper/Makefile
@@ -10,8 +10,6 @@
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.8:lang/go
-
USES= go
USE_GITHUB= yes
Index: head/net-mgmt/intel-snap/Makefile
===================================================================
--- head/net-mgmt/intel-snap/Makefile
+++ head/net-mgmt/intel-snap/Makefile
@@ -10,7 +10,7 @@
#LICENSE= APACHE2
-BUILD_DEPENDS= go>=1.5:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= stdale
Index: head/net-mgmt/kapacitor/Makefile
===================================================================
--- head/net-mgmt/kapacitor/Makefile
+++ head/net-mgmt/kapacitor/Makefile
@@ -14,7 +14,7 @@
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
-BUILD_DEPENDS= go>=1.6.0:lang/go
+USES= go
USE_RC_SUBR= kapacitord
Index: head/net-mgmt/telegraf/Makefile
===================================================================
--- head/net-mgmt/telegraf/Makefile
+++ head/net-mgmt/telegraf/Makefile
@@ -12,7 +12,7 @@
ONLY_FOR_ARCHS= amd64 i386 armv6 armv7
-BUILD_DEPENDS= go>=1.9:lang/go
+USES= go
USE_RC_SUBR= telegraf
Index: head/net-p2p/go-ethereum/Makefile
===================================================================
--- head/net-p2p/go-ethereum/Makefile
+++ head/net-p2p/go-ethereum/Makefile
@@ -11,7 +11,7 @@
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= go>=1.9.2:lang/go
+USES= go:no_targets
USE_GITHUB= yes
GH_ACCOUNT= ethereum
Index: head/net/clash/Makefile
===================================================================
--- head/net/clash/Makefile
+++ head/net/clash/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= Dreamacro
Index: head/net/geoipupdate/Makefile
===================================================================
--- head/net/geoipupdate/Makefile
+++ head/net/geoipupdate/Makefile
@@ -14,10 +14,9 @@
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
-BUILD_DEPENDS= go:lang/go
RUN_DEPENDS= ca_root_nss>=3:security/ca_root_nss
-USES= gmake
+USES= gmake go:no_targets
USE_GITHUB= yes
GH_ACCOUNT= maxmind
Index: head/net/goreplay/Makefile
===================================================================
--- head/net/goreplay/Makefile
+++ head/net/goreplay/Makefile
@@ -11,7 +11,7 @@
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= buger
Index: head/net/grpcurl/Makefile
===================================================================
--- head/net/grpcurl/Makefile
+++ head/net/grpcurl/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= fullstorydev
Index: head/net/nncp/Makefile
===================================================================
--- head/net/nncp/Makefile
+++ head/net/nncp/Makefile
@@ -11,9 +11,7 @@
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= go:lang/go
-
-USES= tar:xz
+USES= go:no_targets tar:xz
MAKEFILE= BSDmakefile
USE_RC_SUBR= nncp-caller nncp-daemon nncp-toss
INSTALL_TARGET= install-strip
Index: head/net/nsq/Makefile
===================================================================
--- head/net/nsq/Makefile
+++ head/net/nsq/Makefile
@@ -12,8 +12,6 @@
ONLY_FOR_ARCHS= amd64
-BUILD_DEPENDS= go>=1.7:lang/go
-
USES= compiler go
USE_RC_SUBR= nsqd nsqlookupd nsqadmin
Index: head/net/syncthing/Makefile
===================================================================
--- head/net/syncthing/Makefile
+++ head/net/syncthing/Makefile
@@ -13,7 +13,7 @@
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/${PORTNAME}/LICENSE
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
USE_RC_SUBR= syncthing syncthing-discosrv syncthing-relaysrv syncthing-relaypoolsrv
Index: head/net/wireguard-go/Makefile
===================================================================
--- head/net/wireguard-go/Makefile
+++ head/net/wireguard-go/Makefile
@@ -12,16 +12,14 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= go:lang/go
+USES= gmake go:modules,no_targets tar:xz
-USES= gmake tar:xz
-
USE_GITHUB= nodefault
GH_TUPLE= golang:crypto:b7391e95e576:crypto/vendor/golang.org/x/crypto \
golang:net:1272bf9dcd53:net/vendor/golang.org/x/net \
golang:sys:f7bb7a8bee54:sys/vendor/golang.org/x/sys
-MAKE_ENV+= GOFLAGS=-mod=vendor
+MAKE_ENV+= GOFLAGS="${GO_BUILDFLAGS}"
PLIST_FILES= bin/${PORTNAME}
Index: head/print/cloud-print-connector/Makefile
===================================================================
--- head/print/cloud-print-connector/Makefile
+++ head/print/cloud-print-connector/Makefile
@@ -2,6 +2,7 @@
PORTNAME= cloud-print-connector
PORTVERSION= 1.16
+DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= print
@@ -11,55 +12,33 @@
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
-
LIB_DEPENDS= libcups.so:print/cups \
libavahi-client.so:net/avahi-app \
libavahi-common.so:net/avahi-app
-USES= compiler pkgconfig
+USES= compiler go pkgconfig
USE_GITHUB= yes
+GH_ACCOUNT= google
+GH_SUBDIR= src/github.com/google/cloud-print-connector
+GH_TUPLE= urfave:cli:8e01ec4:cli/vendor/github.com/urfave/cli \
+ satori:go.uuid:36e9d2e:gouuid/vendor/github.com/satori/go.uuid \
+ coreos:go-systemd:88bfeed:gosystemd/vendor/github.com/coreos/go-systemd \
+ golang:oauth2:ef14785:oauth2/vendor/golang.org/x/oauth2 \
+ golang:net:039a425:net/vendor/golang.org/x/net \
+ mildred:go-xdg:96b70c9:xdg/vendor/launchpad.net/go-xdg/v0
USE_RC_SUBR= gcp-cups-connectord
-GH_TUPLE= google:cloud-print-connector:7d5f127:DEFAULT/src/github.com/google/cloud-print-connector \
- urfave:cli:8e01ec4:cli/src/github.com/urfave/cli \
- satori:go.uuid:36e9d2e:gouuid/src/github.com/satori/go.uuid \
- coreos:go-systemd:88bfeed:gosystemd/src/github.com/coreos/go-systemd \
- golang:oauth2:ef14785:oauth2/src/golang.org/x/oauth2 \
- golang:net:039a425:net/src/golang.org/x/net \
- mildred:go-xdg:96b70c9:xdg/src/launchpad.net/go-xdg/v0
-BIN_FILES= gcp-connector-util gcp-cups-connector
-PLIST_FILES= ${BIN_FILES:S/^/bin\//}
+GO_TARGET= ./gcp-connector-util ./gcp-cups-connector
+PLIST_FILES= ${GO_TARGET:S/./bin/}
OPTIONS_DEFINE= DOCS
PORTDOCS= CONTRIBUTING.md README.md
-do-build:
-.for bin in ${BIN_FILES}
- @cd ${WRKSRC}/src/github.com/google/cloud-print-connector; ${SETENV} \
- ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -o \
- ${WRKSRC}/bin/${bin} ./${bin}
-.endfor
-
-do-install:
-.for bin in ${BIN_FILES}
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/${bin} \
- ${STAGEDIR}${PREFIX}/bin/${bin}
-.endfor
-
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${CP} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
-.include <bsd.port.pre.mk>
-
-# golang assumes that if clang is in use, it is called "clang" and not "cc". If
-# it's called "cc", go may fail
-.if ${COMPILER_TYPE} == clang
-BUILD_ENV= CC=clang
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: head/print/cloud-print-connector/distinfo
===================================================================
--- head/print/cloud-print-connector/distinfo
+++ head/print/cloud-print-connector/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1531335199
-SHA256 (google-cloud-print-connector-1.16-7d5f127_GH0.tar.gz) = abd89462880284d8c8d42b6ddd7bf2517881f21ad62619124715c7b4f230ab02
-SIZE (google-cloud-print-connector-1.16-7d5f127_GH0.tar.gz) = 122101
+TIMESTAMP = 1561470998
+SHA256 (google-cloud-print-connector-v1.16_GH0.tar.gz) = e7ef1dbc9e326c59a08fea1a37b62d2e689d2a1aed8c717969be89055c4996c8
+SIZE (google-cloud-print-connector-v1.16_GH0.tar.gz) = 122106
SHA256 (urfave-cli-8e01ec4_GH0.tar.gz) = d8654573173cef6b639f00884c146bdb7f9130817e0b2d3f44d86d701428a63d
SIZE (urfave-cli-8e01ec4_GH0.tar.gz) = 64657
SHA256 (satori-go.uuid-36e9d2e_GH0.tar.gz) = aa54b317ac4122e7a4db33f84bac64fa9079637f4fd0517206c06d1aa1341b2d
Index: head/science/molgif/Makefile
===================================================================
--- head/science/molgif/Makefile
+++ head/science/molgif/Makefile
@@ -10,7 +10,7 @@
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= ilyak
Index: head/security/2fa/Makefile
===================================================================
--- head/security/2fa/Makefile
+++ head/security/2fa/Makefile
@@ -11,7 +11,7 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= rsc
Index: head/security/acmetool/Makefile
===================================================================
--- head/security/acmetool/Makefile
+++ head/security/acmetool/Makefile
@@ -10,7 +10,7 @@
LICENSE= MIT
-BUILD_DEPENDS= go>=1.8:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= hlandau
Index: head/security/boringssl/Makefile
===================================================================
--- head/security/boringssl/Makefile
+++ head/security/boringssl/Makefile
@@ -7,12 +7,10 @@
MAINTAINER= swills@FreeBSD.org
COMMENT= Fork of OpenSSL
-BUILD_DEPENDS= go:lang/go
-
USE_GITHUB= yes
GH_ACCOUNT= google
GH_TAGNAME= 144d924
-USES= cmake:insource localbase perl5
+USES= cmake:insource go:no_targets localbase perl5
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1
USE_LDCONFIG= yes
LDFLAGS+= -Wl,-rpath,${PREFIX}/lib
Index: head/security/govpn/Makefile
===================================================================
--- head/security/govpn/Makefile
+++ head/security/govpn/Makefile
@@ -13,9 +13,7 @@
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= go:lang/go
-
-USES= tar:xz
+USES= go:no_targets tar:xz
MAKEFILE= BSDmakefile
PORTDOCS= AUTHORS INSTALL NEWS NEWS.RU README README.RU THANKS
Index: head/security/honeybadger/Makefile
===================================================================
--- head/security/honeybadger/Makefile
+++ head/security/honeybadger/Makefile
@@ -9,7 +9,7 @@
BROKEN= fails to build
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_TUPLE= david415:HoneyBadger:11dc0ca:DEFAULT/src/github.com/david415/HoneyBadger \
Index: head/security/meek/Makefile
===================================================================
--- head/security/meek/Makefile
+++ head/security/meek/Makefile
@@ -14,7 +14,7 @@
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= nodefault
GH_TUPLE= golang:crypto:c126467:crypto/src/golang.org/x/crypto \
Index: head/security/onionscan/Makefile
===================================================================
--- head/security/onionscan/Makefile
+++ head/security/onionscan/Makefile
@@ -11,8 +11,6 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
-
USES= go
USE_GITHUB= yes
Index: head/security/teleport/Makefile
===================================================================
--- head/security/teleport/Makefile
+++ head/security/teleport/Makefile
@@ -13,10 +13,9 @@
NOT_FOR_ARCHS= i386
NOT_FOR_ARCHS_REASON= Uses 64bit types
-BUILD_DEPENDS= go:lang/go \
- zip:archivers/zip
+BUILD_DEPENDS= zip:archivers/zip
-USES= compiler gmake
+USES= compiler gmake go
USE_GITHUB= yes
GH_ACCOUNT= gravitational
Index: head/security/vault/Makefile
===================================================================
--- head/security/vault/Makefile
+++ head/security/vault/Makefile
@@ -12,7 +12,7 @@
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.9:lang/go
+USES= go
USE_GITHUB= yes
GH_TUPLE= hashicorp:${PORTNAME}:${VAULTTAG}:DEFAULT/src/github.com/hashicorp/${PORTNAME} \
Index: head/sysutils/amazon-ssm-agent/Makefile
===================================================================
--- head/sysutils/amazon-ssm-agent/Makefile
+++ head/sysutils/amazon-ssm-agent/Makefile
@@ -10,8 +10,9 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
+
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= aws
Index: head/sysutils/circonus-agent/Makefile
===================================================================
--- head/sysutils/circonus-agent/Makefile
+++ head/sysutils/circonus-agent/Makefile
@@ -11,7 +11,7 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.10:lang/go
+USES= go
USE_GITHUB= yes
Index: head/sysutils/consul-alerts/Makefile
===================================================================
--- head/sysutils/consul-alerts/Makefile
+++ head/sysutils/consul-alerts/Makefile
@@ -10,8 +10,6 @@
LICENSE= GPLv2+
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
USES= compiler go
USE_GITHUB= yes
Index: head/sysutils/consul-replicate/Makefile
===================================================================
--- head/sysutils/consul-replicate/Makefile
+++ head/sysutils/consul-replicate/Makefile
@@ -11,9 +11,7 @@
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
-USES= compiler
+USES= compiler go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
Index: head/sysutils/consul/Makefile
===================================================================
--- head/sysutils/consul/Makefile
+++ head/sysutils/consul/Makefile
@@ -10,9 +10,7 @@
LICENSE= MPL20
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
-USES= compiler
+USES= compiler go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
Index: head/sysutils/consul_exporter/Makefile
===================================================================
--- head/sysutils/consul_exporter/Makefile
+++ head/sysutils/consul_exporter/Makefile
@@ -10,9 +10,7 @@
LICENSE= APACHE20
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
-USES= compiler
+USES= compiler go
USE_GITHUB= yes
GH_ACCOUNT= prometheus
Index: head/sysutils/direnv/Makefile
===================================================================
--- head/sysutils/direnv/Makefile
+++ head/sysutils/direnv/Makefile
@@ -11,10 +11,9 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go \
- bash:shells/bash
+BUILD_DEPENDS= bash:shells/bash
-USES= gmake
+USES= gmake go:no_targets
USE_GITHUB= yes
GH_ACCOUNT= direnv
Index: head/sysutils/docker-freebsd/Makefile
===================================================================
--- head/sysutils/docker-freebsd/Makefile
+++ head/sysutils/docker-freebsd/Makefile
@@ -14,12 +14,12 @@
BROKEN= fails to build
-BUILD_DEPENDS= go>=1.4:lang/go \
- bash:shells/bash \
+BUILD_DEPENDS= bash:shells/bash \
sqlite3:databases/sqlite3
-RUN_DEPENDS= go>=1.4:lang/go \
- bash:shells/bash \
+RUN_DEPENDS= bash:shells/bash \
sqlite3:databases/sqlite3
+
+USES= go:run
USE_GITHUB= yes
GH_ACCOUNT= kvasdopil
Index: head/sysutils/envconsul/Makefile
===================================================================
--- head/sysutils/envconsul/Makefile
+++ head/sysutils/envconsul/Makefile
@@ -11,7 +11,7 @@
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
Index: head/sysutils/epazote/Makefile
===================================================================
--- head/sysutils/epazote/Makefile
+++ head/sysutils/epazote/Makefile
@@ -10,9 +10,7 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.7:lang/go
-
-USES= compiler
+USES= compiler go
USE_GITHUB= yes
GH_TUPLE= epazote:scheduler:0.1.0:scheduler/src/github.com/epazote/scheduler \
Index: head/sysutils/goawk/Makefile
===================================================================
--- head/sysutils/goawk/Makefile
+++ head/sysutils/goawk/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/LICENSE.txt
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= nodefault # the main code is in GH_TUPLE
GH_ACCOUNT= benhoyt
Index: head/sysutils/gomplate/Makefile
===================================================================
--- head/sysutils/gomplate/Makefile
+++ head/sysutils/gomplate/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= hairyhenderson
Index: head/sysutils/goss/Makefile
===================================================================
--- head/sysutils/goss/Makefile
+++ head/sysutils/goss/Makefile
@@ -12,7 +12,7 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= go-ps only supports amd64
Index: head/sysutils/gotop/Makefile
===================================================================
--- head/sysutils/gotop/Makefile
+++ head/sysutils/gotop/Makefile
@@ -10,8 +10,6 @@
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
-
USES= go
USE_GITHUB= yes
GH_ACCOUNT= cjbassi
Index: head/sysutils/hfm/Makefile
===================================================================
--- head/sysutils/hfm/Makefile
+++ head/sysutils/hfm/Makefile
@@ -13,11 +13,10 @@
# gb 0.4 includes FreeBSD-specific fixes that this port requires
# https://github.com/constabulary/gb/issues/506
-BUILD_DEPENDS= go>=1.5:lang/go \
- gb>=0.4:devel/gb \
+BUILD_DEPENDS= gb>=0.4:devel/gb \
${LOCALBASE}/lib/libucl.a:textproc/libucl
-USES= compiler:c++11-lang
+USES= compiler:c++11-lang go:no_targets
USE_GITHUB= yes
GH_ACCOUNT= derekmarcotte
Index: head/sysutils/log-courier/Makefile
===================================================================
--- head/sysutils/log-courier/Makefile
+++ head/sysutils/log-courier/Makefile
@@ -12,8 +12,6 @@
BROKEN= fails to build
-BUILD_DEPENDS= go:lang/go
-
USES= go gmake
USE_GITHUB= yes
GH_ACCOUNT= driskell
Index: head/sysutils/logstash-forwarder/Makefile
===================================================================
--- head/sysutils/logstash-forwarder/Makefile
+++ head/sysutils/logstash-forwarder/Makefile
@@ -12,8 +12,6 @@
DEPRECATED= Migrate to sysutils/beats
-BUILD_DEPENDS= go:lang/go
-
USES= go
USE_GITHUB= yes
GH_ACCOUNT= elasticsearch
Index: head/sysutils/nomad/Makefile
===================================================================
--- head/sysutils/nomad/Makefile
+++ head/sysutils/nomad/Makefile
@@ -14,9 +14,7 @@
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= On i386: go compiler crashes: https://github.com/golang/go/issues/23763
-BUILD_DEPENDS= go:lang/go
-
-USES= compiler
+USES= compiler go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
GH_SUBDIR= src/github.com/hashicorp/nomad
Index: head/sysutils/serf/Makefile
===================================================================
--- head/sysutils/serf/Makefile
+++ head/sysutils/serf/Makefile
@@ -11,7 +11,7 @@
LICENSE= MPL20
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
Index: head/sysutils/sockaddr/Makefile
===================================================================
--- head/sysutils/sockaddr/Makefile
+++ head/sysutils/sockaddr/Makefile
@@ -10,7 +10,7 @@
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_SUBDIR= src/github.com/hashicorp/go-sockaddr
Index: head/textproc/consul-template/Makefile
===================================================================
--- head/textproc/consul-template/Makefile
+++ head/textproc/consul-template/Makefile
@@ -11,7 +11,7 @@
LICENSE= MPL20
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
Index: head/textproc/spiff/Makefile
===================================================================
--- head/textproc/spiff/Makefile
+++ head/textproc/spiff/Makefile
@@ -8,7 +8,7 @@
MAINTAINER= swills@FreeBSD.org
COMMENT= Declarative YAML templating system tuned for BOSH deployment manifests
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= cloudfoundry-incubator
Index: head/www/carbonapi/Makefile
===================================================================
--- head/www/carbonapi/Makefile
+++ head/www/carbonapi/Makefile
@@ -10,9 +10,7 @@
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.8:lang/go
-
-USES= gmake
+USES= gmake go
USE_GITHUB= yes
GH_ACCOUNT= go-graphite
Index: head/www/gitlab-pages/Makefile
===================================================================
--- head/www/gitlab-pages/Makefile
+++ head/www/gitlab-pages/Makefile
@@ -10,7 +10,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
Index: head/www/gitlab-workhorse/Makefile
===================================================================
--- head/www/gitlab-workhorse/Makefile
+++ head/www/gitlab-workhorse/Makefile
@@ -11,11 +11,10 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.8.0:lang/go \
- git>=2.16.2:devel/git
+BUILD_DEPENDS= git>=2.16.2:devel/git
RUN_DEPENDS= p5-Image-ExifTool>=0:graphics/p5-Image-ExifTool
-USES= gmake
+USES= gmake go:no_targets
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
Index: head/www/go-appengine-sdk/Makefile
===================================================================
--- head/www/go-appengine-sdk/Makefile
+++ head/www/go-appengine-sdk/Makefile
@@ -17,12 +17,11 @@
ONLY_FOR_ARCHS= amd64 i386
-BUILD_DEPENDS= go:lang/go
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=${PYTHON_VER}:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycrypto>=2.6:security/py-pycrypto@${PY_FLAVOR}
-USES= gettext python:2.7 shebangfix zip
+USES= gettext go python:2.7 shebangfix zip
SHEBANG_GLOB= *.py *.bash *.sh *.pl *.cgi goapp
WRKSRC= ${WRKDIR}/go_appengine
Index: head/www/gobuffalo/Makefile
===================================================================
--- head/www/gobuffalo/Makefile
+++ head/www/gobuffalo/Makefile
@@ -11,10 +11,9 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-RUN_DEPENDS= go:lang/go \
- git:devel/git
+RUN_DEPENDS= git:devel/git
-USES= go:modules
+USES= go:modules,run
GO_PKGNAME= github.com/gobuffalo/buffalo
GO_TARGET= ./buffalo
Index: head/www/grafana2/Makefile
===================================================================
--- head/www/grafana2/Makefile
+++ head/www/grafana2/Makefile
@@ -14,13 +14,11 @@
LICENSE= APACHE20
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
ONLY_FOR_ARCHS= i386 amd64
USE_RC_SUBR= grafana2
-USES= compiler
+USES= compiler go
USE_GITHUB= yes
GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME}
Index: head/www/grafana3/Makefile
===================================================================
--- head/www/grafana3/Makefile
+++ head/www/grafana3/Makefile
@@ -12,8 +12,6 @@
LICENSE= APACHE20
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
RUN_DEPENDS= ${LOCALBASE}/bin/phantomjs:lang/phantomjs \
webfonts>=0:x11-fonts/webfonts
@@ -21,7 +19,7 @@
USE_RC_SUBR= grafana3
-USES= compiler
+USES= compiler go
USE_GITHUB= yes
Index: head/www/grafana4/Makefile
===================================================================
--- head/www/grafana4/Makefile
+++ head/www/grafana4/Makefile
@@ -14,13 +14,11 @@
LICENSE= APACHE20
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
ONLY_FOR_ARCHS= i386 amd64
USE_RC_SUBR= grafana
-USES= compiler
+USES= compiler go
USE_GITHUB= yes
GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME}
Index: head/www/grafana5/Makefile
===================================================================
--- head/www/grafana5/Makefile
+++ head/www/grafana5/Makefile
@@ -17,9 +17,7 @@
ONLY_FOR_ARCHS= amd64 i386
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
-USES= compiler
+USES= compiler go
USE_RC_SUBR= grafana
USE_GITHUB= yes
Index: head/www/grafana6/Makefile
===================================================================
--- head/www/grafana6/Makefile
+++ head/www/grafana6/Makefile
@@ -17,9 +17,7 @@
ONLY_FOR_ARCHS= amd64 i386
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
-
-USES= compiler
+USES= compiler go
USE_RC_SUBR= grafana
USE_GITHUB= yes
Index: head/www/kurly/Makefile
===================================================================
--- head/www/kurly/Makefile
+++ head/www/kurly/Makefile
@@ -11,7 +11,7 @@
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC_kurly}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITLAB= nodefault
GL_TUPLE= davidjpeacock:kurly:369c1998dfbfca7043f8c995c8ef8714496530ea:kurly/src/gitlab.com/davidjpeacock/kurly
Index: head/www/mattermost-server/Makefile
===================================================================
--- head/www/mattermost-server/Makefile
+++ head/www/mattermost-server/Makefile
@@ -13,9 +13,10 @@
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
-BUILD_DEPENDS= go>=1.8.1:lang/go
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \
mattermost-webapp>=${PORTVERSION}:www/mattermost-webapp
+
+USES= go
GO_LDFLAGS= -X github.com/mattermost/mattermost-server/model.BuildNumber=${PORTVERSION}
Index: head/www/minio-client/Makefile
===================================================================
--- head/www/minio-client/Makefile
+++ head/www/minio-client/Makefile
@@ -9,8 +9,9 @@
LICENSE= APACHE20
-BUILD_DEPENDS= go>=1.9.4:lang/go \
- bash:shells/bash
+BUILD_DEPENDS= bash:shells/bash
+
+USES= go
OPTIONS_DEFINE= MC
Index: head/www/minio/Makefile
===================================================================
--- head/www/minio/Makefile
+++ head/www/minio/Makefile
@@ -9,9 +9,7 @@
LICENSE= APACHE20
-BUILD_DEPENDS= go>=1.9.4:lang/go
-
-USES= compiler
+USES= compiler go
USE_GITHUB= yes
GHTAG= RELEASE.2019-06-15T23-07-18Z
Index: head/www/s/Makefile
===================================================================
--- head/www/s/Makefile
+++ head/www/s/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= zquestz
Index: head/www/uchiwa/Makefile
===================================================================
--- head/www/uchiwa/Makefile
+++ head/www/uchiwa/Makefile
@@ -10,7 +10,7 @@
LICENSE= MIT
-BUILD_DEPENDS= go>=1.6.0:lang/go
+USES= go
UCHIWA_LOGDIR= /var/log/uchiwa
UCHIWA_CONFDIR= ${PREFIX}/etc/uchiwa
Index: head/www/ytdl/Makefile
===================================================================
--- head/www/ytdl/Makefile
+++ head/www/ytdl/Makefile
@@ -11,7 +11,7 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go:lang/go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= rylio
Index: head/x11/aminal/Makefile
===================================================================
--- head/x11/aminal/Makefile
+++ head/x11/aminal/Makefile
@@ -11,9 +11,7 @@
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/LICENSE
-BUILD_DEPENDS= go:lang/go
-
-USES= gl
+USES= gl go
USE_GITHUB= nodefault # the main code is in GH_TUPLE
GH_ACCOUNT= liamg
GH_TUPLE= liamg:aminal:${DISTVERSIONFULL}:main/src/github.com/liamg/aminal \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 20, 1:20 AM (15 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27757367
Default Alt Text
D20746.diff (48 KB)
Attached To
Mode
D20746: Convert all Go ports to USES=go
Attached
Detach File
Event Timeline
Log In to Comment