diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-06-29 03:51:13 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-06-29 03:51:13 +0000 |
commit | 3726f942547e374490d375baf83216d7644a7162 (patch) | |
tree | 8c7c440762c72012824110ba9cdd44c8c1765017 /print | |
parent | New port: net/ntpsec: Network Time Protocol suite, refactored (diff) |
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
Notes
Notes:
svn path=/head/; revision=505321
Diffstat (limited to 'print')
-rw-r--r-- | print/cloud-print-connector/Makefile | 47 | ||||
-rw-r--r-- | print/cloud-print-connector/distinfo | 6 |
2 files changed, 16 insertions, 37 deletions
diff --git a/print/cloud-print-connector/Makefile b/print/cloud-print-connector/Makefile index 51fdf13b8bdc..dd48e93e511e 100644 --- a/print/cloud-print-connector/Makefile +++ b/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 @@ 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> diff --git a/print/cloud-print-connector/distinfo b/print/cloud-print-connector/distinfo index c28f3b6de34c..5ebe00cbb60b 100644 --- a/print/cloud-print-connector/distinfo +++ b/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 |