diff options
author | swills <swills@FreeBSD.org> | 2015-05-07 01:47:55 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2015-05-07 01:47:55 +0800 |
commit | de934947af4a454f5ea9cacae7d3bfe91c659ec4 (patch) | |
tree | 770850ac250565fd546eee04e90c1c1c0681ae62 /devel | |
parent | 20fb32438ef9979afbfcc9d5d7c402f6bbbfe71c (diff) | |
download | freebsd-ports-gnome-de934947af4a454f5ea9cacae7d3bfe91c659ec4.tar.gz freebsd-ports-gnome-de934947af4a454f5ea9cacae7d3bfe91c659ec4.tar.zst freebsd-ports-gnome-de934947af4a454f5ea9cacae7d3bfe91c659ec4.zip |
devel/go-bindata: add port
A small utility which generates Go code from any file. Useful for embedding
binary data in a Go program.
WWW: https://github.com/jteeuwen/go-bindata
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/go-bindata/Makefile | 49 | ||||
-rw-r--r-- | devel/go-bindata/distinfo | 2 | ||||
-rw-r--r-- | devel/go-bindata/pkg-descr | 4 |
4 files changed, 56 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 4f96705f8bdf..c44e64abc9cc 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -595,6 +595,7 @@ SUBDIR += gnulibiberty SUBDIR += gnustep SUBDIR += gnustep-make + SUBDIR += go-bindata SUBDIR += go-flags SUBDIR += go-hashicorp-logutils SUBDIR += go-json-rest diff --git a/devel/go-bindata/Makefile b/devel/go-bindata/Makefile new file mode 100644 index 000000000000..9d466f127ac1 --- /dev/null +++ b/devel/go-bindata/Makefile @@ -0,0 +1,49 @@ +# $FreeBSD$ + +PORTNAME= go-bindata +PORTVERSION= 3.0.5 +DISTVERSIONPREFIX= v +CATEGORIES= devel + +MAINTAINER= swills@FreeBSD.org +COMMENT= Generates Go code from any file + +BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go + +USE_GITHUB= yes +GH_ACCOUNT= jteeuwen +GH_PROJECT= go-bindata + +PLIST_FILES= bin/go-bindata + +PORTDOCS= CONTRIBUTING.md LICENSE README.md + +STRIP= # stripping can break go binaries + +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + +post-patch: + @cd ${WRKSRC} ; ${MKDIR} src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \ + ${CP} -R CONTRIBUTING.md LICENSE README.md asset.go bytewriter.go \ + config.go convert.go debug.go doc.go go-bindata release.go \ + stringwriter.go testdata toc.go \ + src/github.com/${GH_ACCOUNT}/${GH_PROJECT} + +do-build: + cd ${WRKSRC} ; \ + ${SETENV} GOPATH=${WRKSRC} go build -o ${PORTNAME}/${PORTNAME} ${PORTNAME}/main.go ${PORTNAME}/version.go + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} +.for x in ${PORTDOCS} + ${INSTALL_MAN} ${WRKSRC}/${x} \ + ${STAGEDIR}${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/devel/go-bindata/distinfo b/devel/go-bindata/distinfo new file mode 100644 index 000000000000..4387ebd37652 --- /dev/null +++ b/devel/go-bindata/distinfo @@ -0,0 +1,2 @@ +SHA256 (jteeuwen-go-bindata-v3.0.5_GH0.tar.gz) = 8cdeda986e457e079d8d241906fc824688f51e33be21b793f34f3025322bdb61 +SIZE (jteeuwen-go-bindata-v3.0.5_GH0.tar.gz) = 11604 diff --git a/devel/go-bindata/pkg-descr b/devel/go-bindata/pkg-descr new file mode 100644 index 000000000000..73e31a6122e4 --- /dev/null +++ b/devel/go-bindata/pkg-descr @@ -0,0 +1,4 @@ +A small utility which generates Go code from any file. Useful for embedding +binary data in a Go program. + +WWW: https://github.com/jteeuwen/go-bindata |