pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import go-rice-1.0.2 to wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Thu Jan 21 15:57:51 2021 +0100
Changeset:	c4ee4fab43d721aa43ba6b9d5dfb5e7a33741f5b

Added Files:
	go-rice/DESCR
	go-rice/Makefile
	go-rice/PLIST
	go-rice/buildlink3.mk
	go-rice/distinfo

Log Message:
Import go-rice-1.0.2 to wip

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c4ee4fab43d721aa43ba6b9d5dfb5e7a33741f5b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 go-rice/DESCR         | 23 +++++++++++++++++++++++
 go-rice/Makefile      | 27 +++++++++++++++++++++++++++
 go-rice/PLIST         | 39 +++++++++++++++++++++++++++++++++++++++
 go-rice/buildlink3.mk | 24 ++++++++++++++++++++++++
 go-rice/distinfo      |  6 ++++++
 5 files changed, 119 insertions(+)

diffs:
diff --git a/go-rice/DESCR b/go-rice/DESCR
new file mode 100644
index 0000000000..e4e0c92912
--- /dev/null
+++ b/go-rice/DESCR
@@ -0,0 +1,23 @@
+TODO: Adjust the following lines from README.md
+
+# go.rice
+
+[![Build Status](https://travis-ci.org/GeertJohan/go.rice.png)](https://travis-ci.org/GeertJohan/go.rice)
+[![Godoc](https://img.shields.io/badge/godoc-go.rice-blue.svg?style=flat-square)](https://godoc.org/github.com/GeertJohan/go.rice)
+
+go.rice is a [Go](http://golang.org) package that makes working with resources such as html,js,css,images and templates easy. During development `go.rice` will load required files directly from disk. Upon deployment it's easy to add all resource files to a executable using the `rice` tool, without changing the source code for your package. go.rice provides methods to add resources to a binary in different scenarios.
+
+## What does it do
+
+The first thing go.rice does is finding the correct absolute path for your resource files. Say you are executing a binary in your home directory, but your `html-files` are in `$GOPATH/src/yourApplication/html-files`. `go.rice` will lookup the correct path for that directory (relative to the location of yourApplication). All you have to do is include the resources using `rice.FindBox("html-files")`.
+
+This works fine when the source is available to the machine executing the binary, which is the case when installing the executable with `go get` or `go install`. But it does not work when you wish to provide a single binary without source. This is where the `rice` tool comes in. It analyses source code and finds call's to `rice.FindBox(..)`. Then it adds the required directories to the executable binary, There are two strategies to do this. You can 'embed' the assets by generating go source code and then compile them into the executable binary, or you can 'append' the assets to the executable binary after compiling. In both cases the `rice.FindBox(..)` call detects the embedded or appended resources and load those, instead of looking up files from disk.
+
+## Installation
+
+Use `go get` to install the package the `rice` tool.
+
+```bash
+go get github.com/GeertJohan/go.rice
+go get github.com/GeertJohan/go.rice/rice
+...
diff --git a/go-rice/Makefile b/go-rice/Makefile
new file mode 100644
index 0000000000..41cb339e74
--- /dev/null
+++ b/go-rice/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD$
+
+DISTNAME=	go-rice-1.0.2
+GITHUB_PROJECT=	go.rice
+PKGREVISION=	2
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+CATEGORIES=	www
+MASTER_SITES=	${MASTER_SITE_GITHUB:=GeertJohan/}
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://github.com/GeertJohan/go.rice/
+COMMENT=	Working with resources such as html,js,css,images,templates
+LICENSE=	2-clause-bsd
+
+GO_DIST_BASE=	${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+GO_SRCPATH=	github.com/GeertJohan/go.rice
+
+.include "../../devel/go-spew/buildlink3.mk"
+.include "../../wip/go-fastprinter/buildlink3.mk"
+.include "../../wip/go-fasttemplate/buildlink3.mk"
+.include "../../wip/go-flags/buildlink3.mk"
+.include "../../wip/go-incremental/buildlink3.mk"
+.include "../../wip/go-rsrc/buildlink3.mk"
+.include "../../wip/go-streamquote/buildlink3.mk"
+.include "../../wip/go-zipexe/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-rice/PLIST b/go-rice/PLIST
new file mode 100644
index 0000000000..890b2e5594
--- /dev/null
+++ b/go-rice/PLIST
@@ -0,0 +1,39 @@
+@comment $NetBSD$
+bin/example
+bin/rice
+gopkg/pkg/${GO_PLATFORM}/github.com/GeertJohan/go.rice.a
+gopkg/pkg/${GO_PLATFORM}/github.com/GeertJohan/go.rice/embedded.a
+gopkg/src/github.com/GeertJohan/go.rice/AUTHORS
+gopkg/src/github.com/GeertJohan/go.rice/LICENSE
+gopkg/src/github.com/GeertJohan/go.rice/README.md
+gopkg/src/github.com/GeertJohan/go.rice/appended.go
+gopkg/src/github.com/GeertJohan/go.rice/box.go
+gopkg/src/github.com/GeertJohan/go.rice/config.go
+gopkg/src/github.com/GeertJohan/go.rice/config_test.go
+gopkg/src/github.com/GeertJohan/go.rice/debug.go
+gopkg/src/github.com/GeertJohan/go.rice/embedded.go
+gopkg/src/github.com/GeertJohan/go.rice/embedded/embedded.go
+gopkg/src/github.com/GeertJohan/go.rice/example/example-files/file.txt
+gopkg/src/github.com/GeertJohan/go.rice/example/example-files/img/doge.jpg
+gopkg/src/github.com/GeertJohan/go.rice/example/example-templates/message.tmpl
+gopkg/src/github.com/GeertJohan/go.rice/example/example.go
+gopkg/src/github.com/GeertJohan/go.rice/file.go
+gopkg/src/github.com/GeertJohan/go.rice/go.mod
+gopkg/src/github.com/GeertJohan/go.rice/go.sum
+gopkg/src/github.com/GeertJohan/go.rice/http.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/append.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/clean.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/embed-go.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/embed-go_test.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/find.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/find_test.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/flags.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/helpers_test.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/identifier.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/main.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/templates.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/util.go
+gopkg/src/github.com/GeertJohan/go.rice/rice/writecoff.go
+gopkg/src/github.com/GeertJohan/go.rice/sort.go
+gopkg/src/github.com/GeertJohan/go.rice/virtual.go
+gopkg/src/github.com/GeertJohan/go.rice/walk.go
diff --git a/go-rice/buildlink3.mk b/go-rice/buildlink3.mk
new file mode 100644
index 0000000000..525af05e1f
--- /dev/null
+++ b/go-rice/buildlink3.mk
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-rice
+
+.if !defined(GO_RICE_BUILDLINK3_MK)
+GO_RICE_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-rice=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-rice?=		build
+
+BUILDLINK_API_DEPENDS.go-rice+=	go-rice>=1.0.2
+BUILDLINK_PKGSRCDIR.go-rice?=	../../wip/go-rice
+
+.include "../../devel/go-spew/buildlink3.mk"
+.include "../../wip/go-fastprinter/buildlink3.mk"
+.include "../../wip/go-fasttemplate/buildlink3.mk"
+.include "../../wip/go-flags/buildlink3.mk"
+.include "../../wip/go-incremental/buildlink3.mk"
+.include "../../wip/go-rsrc/buildlink3.mk"
+.include "../../wip/go-streamquote/buildlink3.mk"
+.include "../../wip/go-zipexe/buildlink3.mk"
+.endif	# GO_RICE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-rice
diff --git a/go-rice/distinfo b/go-rice/distinfo
new file mode 100644
index 0000000000..46f9a3552c
--- /dev/null
+++ b/go-rice/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-rice-1.0.2.tar.gz) = 6dc4978519a6390d5c241b93285c03d41e43e558
+RMD160 (go-rice-1.0.2.tar.gz) = d5f352ff671fbcf65450df13345dd1b6cc28ae38
+SHA512 (go-rice-1.0.2.tar.gz) = 5043148405704ec666111379e5591c4344dccd33bd3a61f94a60802b26b1f71ac191b772b277faef2bf5a51a24b6c54cd6c2845fa2a0139007c1940c9eb22c8c
+Size (go-rice-1.0.2.tar.gz) = 68031 bytes


Home | Main Index | Thread Index | Old Index