Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jul 2018 07:44:56 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r475630 - in head/devel: . packr
Message-ID:  <201807290744.w6T7iuC1080217@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sun Jul 29 07:44:56 2018
New Revision: 475630
URL: https://svnweb.freebsd.org/changeset/ports/475630

Log:
  New port: devel/packr
  
  Packr is a simple solution for bundling static assets inside of Go binaries.
  Most importantly it does it in a way that is friendly to developers while
  they are developing.
  
  WWW: https://github.com/gobuffalo/packr
  
  PR:		230113
  Submitted by:	Dmitri Goutnik <dg@syrec.org>

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

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Jul 29 07:35:19 2018	(r475629)
+++ head/devel/Makefile	Sun Jul 29 07:44:56 2018	(r475630)
@@ -3845,6 +3845,7 @@
     SUBDIR += p5-version
     SUBDIR += p65
     SUBDIR += p8-platform
+    SUBDIR += packr
     SUBDIR += paexec
     SUBDIR += pam_wrapper
     SUBDIR += papi

Added: head/devel/packr/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/packr/Makefile	Sun Jul 29 07:44:56 2018	(r475630)
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+PORTNAME=	packr
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.12.0
+CATEGORIES=	devel
+
+MAINTAINER=	dg@syrec.org
+COMMENT=	Simple and easy way to embed static files into Go binaries
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	go:lang/go
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	gobuffalo
+GH_SUBDIR=	src/github.com/gobuffalo/packr
+GH_TUPLE=	golang:net:3673e40:net/src/golang.org/x/net \
+		golang:sync:1d60e46:sync/src/golang.org/x/sync \
+		pkg:errors:v0.8.0:errors/src/github.com/pkg/errors \
+		spf13:cobra:7c4570c:cobra/src/github.com/spf13/cobra \
+		spf13:pflag:3ebe029:pflag/src/github.com/spf13/pflag
+
+PLIST_FILES=	bin/packr
+
+PORTDOCS=	README.md
+
+OPTIONS_DEFINE=	DOCS
+
+do-build:
+	cd ${WRKSRC}/${GH_SUBDIR}/packr && ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${GH_SUBDIR}/packr/packr ${STAGEDIR}${PREFIX}/bin
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/devel/packr/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/packr/distinfo	Sun Jul 29 07:44:56 2018	(r475630)
@@ -0,0 +1,13 @@
+TIMESTAMP = 1532787848
+SHA256 (gobuffalo-packr-v1.12.0_GH0.tar.gz) = 611c519a4a8ecf62c9b665f4bbd75d2e33f832debb60b5a06492fe6a3e667d56
+SIZE (gobuffalo-packr-v1.12.0_GH0.tar.gz) = 14785
+SHA256 (pkg-errors-v0.8.0_GH0.tar.gz) = bacf6c58e490911398cee61742ddc6a90c560733e4c9dcb3d867b17a894c9dd5
+SIZE (pkg-errors-v0.8.0_GH0.tar.gz) = 11344
+SHA256 (spf13-cobra-7c4570c_GH0.tar.gz) = 585bce35eb20ae420450f8d4d6cc562b92a4bfd77dc06af10423e61fc591bf37
+SIZE (spf13-cobra-7c4570c_GH0.tar.gz) = 101957
+SHA256 (spf13-pflag-3ebe029_GH0.tar.gz) = 616c54d20b92e3de638e7abd1404bc776c2b32cfd1e187ebb5d3b84ac0e10d0e
+SIZE (spf13-pflag-3ebe029_GH0.tar.gz) = 43252
+SHA256 (golang-net-3673e40_GH0.tar.gz) = 1f60a535672633ca0cc745df8e0845ca3555063a5504236c561b1e5ddffa2443
+SIZE (golang-net-3673e40_GH0.tar.gz) = 963741
+SHA256 (golang-sync-1d60e46_GH0.tar.gz) = 526fab48f250f45ec22dbfd2700df629871ea8aeb8289a49c58f4fc606a7a5e5
+SIZE (golang-sync-1d60e46_GH0.tar.gz) = 16327

Added: head/devel/packr/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/packr/pkg-descr	Sun Jul 29 07:44:56 2018	(r475630)
@@ -0,0 +1,5 @@
+Packr is a simple solution for bundling static assets inside of Go binaries.
+Most importantly it does it in a way that is friendly to developers while
+they are developing.
+
+WWW: https://github.com/gobuffalo/packr



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