Convert all Go ports to USES=go

This allows for port testing with lang/go-devel via GO_PORT, setting
up the Go build environment in a single place, and is step one in
simplifying Go ports that often define too complicated do-build
targets themselves.

USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and
'no_targets' for ports with composite builds that call 'go' themselves
and do not need the do-build/do-install targets of USES=go.

PR:		238849
Submitted by:	dg@syrec.org (also D20745)
Reviewed by:	mat, tobik
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D20746
This commit is contained in:
Tobias Kortkamp 2019-06-29 03:51:13 +00:00
parent 1de291090d
commit 3726f94254
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=505321
114 changed files with 169 additions and 246 deletions

View File

@ -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_ENV+= GOPATH="${WRKDIR}" \
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 @@ post-extract:
@${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

View File

@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
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

View File

@ -18,10 +18,9 @@ ONLY_FOR_ARCHS_REASON= "Only supported on amd64"
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

View File

@ -12,8 +12,6 @@ COMMENT= Go implementation of carbon
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= go>=1.8:lang/go
USES= go
USE_GITHUB= yes

View File

@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
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

View File

@ -15,9 +15,7 @@ BROKEN_SSL_REASON_openssl111= variable has incomplete type 'BIO_METHOD' (aka 'st
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

View File

@ -17,11 +17,9 @@ BROKEN_SSL_REASON_openssl111= variable has incomplete type 'BIO_METHOD' (aka 'st
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

View File

@ -11,9 +11,10 @@ COMMENT= Collect and display info & stats from a running PostgreSQL server
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}

View File

@ -11,10 +11,9 @@ COMMENT= In-memory geolocation data store, spatial index, and realtime geofence
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

View File

@ -11,7 +11,7 @@ COMMENT= Universal command-line interface for SQL databases
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= xo

View File

@ -11,7 +11,7 @@ COMMENT= CLI tool to create quick plots
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go>=1.10:lang/go
USES= go
USE_GITHUB= yes

View File

@ -11,7 +11,7 @@ COMMENT= Command line tool for building Arduino sketches
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_DESC= Add arduino-tools for a standalone build setup
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 @@ do-patch-TOOLS-on:
${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}

View File

@ -9,7 +9,7 @@ COMMENT= OTA upload tool for Arduino/ESP8266
LICENSE= GPLv3
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= arduino

View File

@ -11,7 +11,7 @@ COMMENT= Fast, powerful and easy-to-use CLI for AWS
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= wallix

View File

@ -12,14 +12,13 @@ COMMENT= Size profiler for binaries
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

View File

@ -7,7 +7,7 @@ CATEGORIES= devel
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

View File

@ -11,9 +11,10 @@ COMMENT= Git extension for generic, high-level git workflow support
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
RUN_DEPENDS= git:devel/git
USES= go
USE_GITHUB= yes
GH_ACCOUNT= Originate
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}

View File

@ -28,13 +28,12 @@ MY_DEPENDS= git>=2.21:devel/git \
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

View File

@ -18,12 +18,13 @@ COMMENT= Official GitLab Runner written in Go
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
# Find tags here:

View File

@ -10,8 +10,9 @@ COMMENT= GitLab Shell handles git commands for GitLab
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

View File

@ -8,7 +8,7 @@ CATEGORIES= devel
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

View File

@ -14,7 +14,7 @@ COMMENT= Protocol Buffers for Go with Gadgets
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= gogo

View File

@ -12,7 +12,7 @@ COMMENT= Go Tools
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 \

View File

@ -11,10 +11,11 @@ COMMENT= Painless self-hosted Git service
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
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}

View File

@ -13,9 +13,10 @@ COMMENT= Go support for Google's protocol buffers
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
RUN_DEPENDS= protoc:devel/protobuf
USES= go
USE_GITHUB= yes
GH_ACCOUNT= golang
GH_PROJECT= protobuf

View File

@ -12,8 +12,9 @@ COMMENT= Go Package Manager
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

View File

@ -13,13 +13,13 @@ COMMENT= HTTP/2-based RPC framework
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

View File

@ -9,14 +9,11 @@ COMMENT= Python to Go source code transcompiler and runtime
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}

View File

@ -12,10 +12,9 @@ COMMENT= Terminal interface for viewing git repositories
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

View File

@ -12,10 +12,9 @@ COMMENT= Go Versioning Manager
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

View File

@ -13,11 +13,12 @@ COMMENT= Tool for multi-repo development
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 @@ pre-extract:
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:

View File

@ -11,7 +11,7 @@ COMMENT= Lab makes it simple to work with repositories on GitLab
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go>=1.10,1:lang/go
USES= go
OPTIONS_DEFINE= GIT_SUBVERSION

View File

@ -11,10 +11,7 @@ COMMENT= Simple, open source, cross-platform Go IDE
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

View File

@ -10,7 +10,7 @@ COMMENT= Count source lines of code in a project
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITLAB= yes
GL_ACCOUNT= esr

View File

@ -11,7 +11,7 @@ COMMENT= Command-line make-like build tool using Go as input files
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= magefile

View File

@ -10,7 +10,7 @@ COMMENT= Tool for visualization and analysis of profiling data
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= google

View File

@ -10,7 +10,7 @@ COMMENT= In-depth DNS enumeration
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

View File

@ -64,7 +64,7 @@ DOXYGEN_MAKE_ARGS= HAS_doxygen=yes
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

View File

@ -11,7 +11,7 @@ COMMENT= Modern and intuitive terminal-based text editor
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= zyedidia

View File

@ -8,7 +8,7 @@ CATEGORIES= finance
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

View File

@ -9,7 +9,7 @@ COMMENT= Cryptographically secure online voting
LICENSE= AGPLv3
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_TAGNAME= 3753e1b

View File

@ -11,7 +11,7 @@ COMMENT= CLI client for exercism.io
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= go
USE_GITHUB= yes

View File

@ -12,11 +12,10 @@ COMMENT= Safe and secure by default chat client
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

View File

@ -11,7 +11,7 @@ COMMENT= Chat network bridge
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= 42wim

View File

@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
BUILD_DEPENDS= go>=1.8:lang/go
USES= go
USE_RC_SUBR= matterircd

View File

@ -11,7 +11,7 @@ COMMENT= Slack client for your terminal
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= erroneousboat

View File

@ -12,7 +12,7 @@ COMMENT= Chat over SSH
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

View File

@ -11,7 +11,7 @@ COMMENT= XMPP client with OTR support
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 \

View File

@ -10,10 +10,9 @@ COMMENT= Go implementation of carbonapi
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

View File

@ -10,8 +10,6 @@ COMMENT= Proxy between carbonapi and go-carbon
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go>=1.8:lang/go
USES= go
USE_GITHUB= yes

View File

@ -10,7 +10,7 @@ COMMENT= Intels open telemetry framework
#LICENSE= APACHE2
BUILD_DEPENDS= go>=1.5:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= stdale

View File

@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
BUILD_DEPENDS= go>=1.6.0:lang/go
USES= go
USE_RC_SUBR= kapacitord

View File

@ -12,7 +12,7 @@ LICENSE= MIT
ONLY_FOR_ARCHS= amd64 i386 armv6 armv7
BUILD_DEPENDS= go>=1.9:lang/go
USES= go
USE_RC_SUBR= telegraf

View File

@ -11,7 +11,7 @@ COMMENT= Go implementation of the Ethereum y/w paper
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= go>=1.9.2:lang/go
USES= go:no_targets
USE_GITHUB= yes
GH_ACCOUNT= ethereum

View File

@ -11,7 +11,7 @@ COMMENT= Rule-based tunnel in Go
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= Dreamacro

View File

@ -14,10 +14,9 @@ LICENSE_COMB= dual
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

View File

@ -11,7 +11,7 @@ COMMENT= Tool for capturing and replaying live HTTP traffic
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= buger

View File

@ -11,7 +11,7 @@ COMMENT= Command-line tool that lets you interact with gRPC servers
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= fullstorydev

View File

@ -11,9 +11,7 @@ COMMENT= Utilities for secure store-and-forward files, mail, command exchanging
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

View File

@ -12,8 +12,6 @@ LICENSE= MIT
ONLY_FOR_ARCHS= amd64
BUILD_DEPENDS= go>=1.7:lang/go
USES= compiler go
USE_RC_SUBR= nsqd nsqlookupd nsqadmin

View File

@ -13,7 +13,7 @@ COMMENT= Encrypted file sync tool
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

View File

@ -12,16 +12,14 @@ COMMENT= WireGuard implementation in Go
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= go:lang/go
USES= gmake tar:xz
USES= gmake go:modules,no_targets 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}

View File

@ -2,6 +2,7 @@
PORTNAME= cloud-print-connector
PORTVERSION= 1.16
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= print
@ -11,55 +12,33 @@ COMMENT= Share CUPS printers via Google Cloud Print
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>

View File

@ -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

View File

@ -10,7 +10,7 @@ COMMENT= Tool to create GIF animations of molecules
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= ilyak

View File

@ -11,7 +11,7 @@ COMMENT= Two-factor authentication on the command line
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= rsc

View File

@ -10,7 +10,7 @@ COMMENT= CLI tool for automatically acquiring certificates from ACME servers
LICENSE= MIT
BUILD_DEPENDS= go>=1.8:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= hlandau

View File

@ -7,12 +7,10 @@ CATEGORIES= security
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

View File

@ -13,9 +13,7 @@ COMMENT= Simple secure, DPI-resistant VPN daemon
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

View File

@ -9,7 +9,7 @@ COMMENT= Quantum Insert detector and 0-day catcher
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 \

View File

@ -14,7 +14,7 @@ COMMENT= Pluggable transport proxy that relays through third-party server
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 \

View File

@ -11,8 +11,6 @@ COMMENT= Free and open source tool for investigating Onion Services
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes

View File

@ -13,10 +13,9 @@ LICENSE= APACHE20
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

View File

@ -12,7 +12,7 @@ COMMENT= Tool for securely accessing secrets
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} \

View File

@ -10,9 +10,10 @@ COMMENT= Amazon Simple Systems Manager Agent
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
GH_SUBDIR= src/github.com/aws/amazon-ssm-agent

View File

@ -11,7 +11,7 @@ COMMENT= Circonus host agent for metric collection
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go>=1.10:lang/go
USES= go
USE_GITHUB= yes

View File

@ -10,8 +10,6 @@ COMMENT= Simple daemon to send notifications based on Consul health checks
LICENSE= GPLv2+
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= compiler go
USE_GITHUB= yes

View File

@ -11,9 +11,7 @@ COMMENT= Consul cross-DC KV replication daemon
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= compiler
USES= compiler go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp

View File

@ -10,9 +10,7 @@ COMMENT= Service discovery and configuration made easy
LICENSE= MPL20
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= compiler
USES= compiler go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp

View File

@ -10,9 +10,7 @@ COMMENT= Exporter for Consul metrics
LICENSE= APACHE20
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= compiler
USES= compiler go
USE_GITHUB= yes
GH_ACCOUNT= prometheus

View File

@ -11,10 +11,9 @@ COMMENT= Environment variable manager for your shell
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

View File

@ -14,13 +14,13 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
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
GH_PROJECT= docker

View File

@ -11,7 +11,7 @@ COMMENT= Populate values from Consul into a process environment
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp

View File

@ -10,9 +10,7 @@ COMMENT= Automated HTTP (microservices) supervisor
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 \

View File

@ -11,7 +11,7 @@ COMMENT= AWK interpreter written in Go
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

View File

@ -11,7 +11,7 @@ COMMENT= Command-line tool for rendering templates before executing binaries
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= hairyhenderson

View File

@ -12,7 +12,7 @@ COMMENT= Quick and Easy server validation
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

View File

@ -10,8 +10,6 @@ COMMENT= Terminal based graphical activity monitor inspired by gtop and vtop
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= cjbassi

View File

@ -13,11 +13,10 @@ LICENSE= BSD2CLAUSE
# 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

View File

@ -12,8 +12,6 @@ LICENSE= APACHE20
BROKEN= fails to build
BUILD_DEPENDS= go:lang/go
USES= go gmake
USE_GITHUB= yes
GH_ACCOUNT= driskell

View File

@ -12,8 +12,6 @@ LICENSE= APACHE20
DEPRECATED= Migrate to sysutils/beats
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= elasticsearch

View File

@ -14,9 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
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

View File

@ -11,7 +11,7 @@ COMMENT= Service discovery and configuration made easy
LICENSE= MPL20
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes

View File

@ -10,7 +10,7 @@ COMMENT= Command line utility for querying IP information
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITHUB= yes
GH_SUBDIR= src/github.com/hashicorp/go-sockaddr

View File

@ -11,7 +11,7 @@ COMMENT= Generic template rendering and notifications with Consul
LICENSE= MPL20
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp

View File

@ -8,7 +8,7 @@ CATEGORIES= textproc
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

View File

@ -10,9 +10,7 @@ COMMENT= Go implementation of carbonapi
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

View File

@ -10,7 +10,7 @@ COMMENT= Official GitLab Pages daemon
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USES= go
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org

View File

@ -11,11 +11,10 @@ COMMENT= Smart reverse proxy for GitLab
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

View File

@ -17,12 +17,11 @@ LICENSE_FILE_MIT= ${WRKSRC}/LICENSE
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

Some files were not shown because too many files have changed in this diff Show More