Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2015 17:47:56 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r385532 - in head/devel: . go-bindata
Message-ID:  <201505061747.t46HlumF032308@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Wed May  6 17:47:55 2015
New Revision: 385532
URL: https://svnweb.freebsd.org/changeset/ports/385532

Log:
  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

Added:
  head/devel/go-bindata/
  head/devel/go-bindata/Makefile   (contents, props changed)
  head/devel/go-bindata/distinfo   (contents, props changed)
  head/devel/go-bindata/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed May  6 17:42:40 2015	(r385531)
+++ head/devel/Makefile	Wed May  6 17:47:55 2015	(r385532)
@@ -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

Added: head/devel/go-bindata/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/go-bindata/Makefile	Wed May  6 17:47:55 2015	(r385532)
@@ -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>

Added: head/devel/go-bindata/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/go-bindata/distinfo	Wed May  6 17:47:55 2015	(r385532)
@@ -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

Added: head/devel/go-bindata/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/go-bindata/pkg-descr	Wed May  6 17:47:55 2015	(r385532)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505061747.t46HlumF032308>