Date: Fri, 10 Sep 2021 15:43:17 GMT From: Lewis Cook <lcook@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 45909c67741f - main - devel/stuffbin: New port: Compress and embed static files and assets into Go binaries Message-ID: <202109101543.18AFhHx9064070@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by lcook: URL: https://cgit.FreeBSD.org/ports/commit/?id=45909c67741fd9d8f6aaccdd402721cb042fe080 commit 45909c67741fd9d8f6aaccdd402721cb042fe080 Author: Lewis Cook <lcook@FreeBSD.org> AuthorDate: 2021-09-10 15:41:44 +0000 Commit: Lewis Cook <lcook@FreeBSD.org> CommitDate: 2021-09-10 15:41:44 +0000 devel/stuffbin: New port: Compress and embed static files and assets into Go binaries --- devel/Makefile | 1 + devel/stuffbin/Makefile | 26 ++++++++++++++++++++++++++ devel/stuffbin/distinfo | 5 +++++ devel/stuffbin/pkg-descr | 7 +++++++ 4 files changed, 39 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index da32000c64b2..feaab76dd9b8 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6947,6 +6947,7 @@ SUBDIR += strace SUBDIR += string_theory SUBDIR += stringencoders + SUBDIR += stuffbin SUBDIR += stxxl SUBDIR += subversion SUBDIR += subversion-book diff --git a/devel/stuffbin/Makefile b/devel/stuffbin/Makefile new file mode 100644 index 000000000000..6b888c37dfd3 --- /dev/null +++ b/devel/stuffbin/Makefile @@ -0,0 +1,26 @@ +PORTNAME= stuffbin +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.0 +CATEGORIES= devel + +MAINTAINER= lcook@FreeBSD.org +COMMENT= Compress and embed static files and assets into Go binaries + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules +GO_MODULE= github.com/knadh/${PORTNAME} +GO_TARGET= ./${PORTNAME}:${PORTNAME} + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \ + ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/devel/stuffbin/distinfo b/devel/stuffbin/distinfo new file mode 100644 index 000000000000..f7102cab8245 --- /dev/null +++ b/devel/stuffbin/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1631287902 +SHA256 (go/devel_stuffbin/stuffbin-v1.1.0/v1.1.0.mod) = 9d6d9f4e36cee45dbdbf23cc74248386b01dac85f77146e26493d732740dfe9a +SIZE (go/devel_stuffbin/stuffbin-v1.1.0/v1.1.0.mod) = 42 +SHA256 (go/devel_stuffbin/stuffbin-v1.1.0/v1.1.0.zip) = 4257e94899b069ce09cb74c6a5758a13721531de7344517c904b43ffc9778ad8 +SIZE (go/devel_stuffbin/stuffbin-v1.1.0/v1.1.0.zip) = 15483 diff --git a/devel/stuffbin/pkg-descr b/devel/stuffbin/pkg-descr new file mode 100644 index 000000000000..66f1833dda4f --- /dev/null +++ b/devel/stuffbin/pkg-descr @@ -0,0 +1,7 @@ +Utility to compress and embed static files and +assets into Go binaries for distribution. It +supports falling back to the local file system +when no embedded assets are available, for +instance, in development mode. + +WWW: https://github.com/knadh/stuffbin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109101543.18AFhHx9064070>