pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
wip/go-mux: import go-mux-1.7.2
Module Name: pkgsrc-wip
Committed By: ng0 <ng0%n0.is@localhost>
Pushed By: ng0
Date: Sat Jun 1 10:31:20 2019 +0000
Changeset: 76e2414618fdc39da2b385943342c3cb118315d9
Added Files:
go-mux/DESCR
go-mux/Makefile
go-mux/PLIST
go-mux/buildlink3.mk
go-mux/distinfo
Log Message:
wip/go-mux: import go-mux-1.7.2
Go-mux implements a request router and dispatcher for matching
incoming requests to their respective handler.
The name mux stands for "HTTP request multiplexer". Like the standard
http.ServeMux, mux.Router matches incoming requests against a list of
registered routes and calls a handler for the route that matches the
URL or other conditions. The main features are:
It implements the http.Handler interface so it is compatible with the
standard http.ServeMux.
Requests can be matched based on URL host, path, path prefix, schemes,
header and query values, HTTP methods or using custom matchers.
URL hosts, paths and query values can have variables with an optional
regular expression.
Registered URLs can be built, or "reversed", which helps maintaining
references to resources.
Routes can be used as subrouters: nested routes are only tested if the
parent route matches. This is useful to define groups of routes that
share common conditions like a host, a path prefix or other repeated
attributes. As a bonus, this optimizes request matching.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=76e2414618fdc39da2b385943342c3cb118315d9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
go-mux/DESCR | 20 ++++++++++++++++++++
go-mux/Makefile | 19 +++++++++++++++++++
go-mux/PLIST | 21 +++++++++++++++++++++
go-mux/buildlink3.mk | 15 +++++++++++++++
go-mux/distinfo | 6 ++++++
5 files changed, 81 insertions(+)
diffs:
diff --git a/go-mux/DESCR b/go-mux/DESCR
new file mode 100644
index 0000000000..710bc395aa
--- /dev/null
+++ b/go-mux/DESCR
@@ -0,0 +1,20 @@
+Go-mux implements a request router and dispatcher for matching
+incoming requests to their respective handler.
+
+The name mux stands for "HTTP request multiplexer". Like the standard
+http.ServeMux, mux.Router matches incoming requests against a list of
+registered routes and calls a handler for the route that matches the
+URL or other conditions. The main features are:
+
+It implements the http.Handler interface so it is compatible with the
+standard http.ServeMux.
+Requests can be matched based on URL host, path, path prefix, schemes,
+header and query values, HTTP methods or using custom matchers.
+URL hosts, paths and query values can have variables with an optional
+regular expression.
+Registered URLs can be built, or "reversed", which helps maintaining
+references to resources.
+Routes can be used as subrouters: nested routes are only tested if the
+parent route matches. This is useful to define groups of routes that
+share common conditions like a host, a path prefix or other repeated
+attributes. As a bonus, this optimizes request matching.
diff --git a/go-mux/Makefile b/go-mux/Makefile
new file mode 100644
index 0000000000..b1e5a7a35d
--- /dev/null
+++ b/go-mux/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+DISTNAME= go-mux-${GITHUB_TAG}
+PKGNAME= go-mux-1.7.2
+GITHUB_PROJECT= mux
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=gorilla/}
+GITHUB_TAG= ed099d42384823742bba0bf9a72b53b55c9e2e38
+
+MAINTAINER= ng0%n0.is@localhost
+HOMEPAGE= https://github.com/gorilla/go-mux
+COMMENT= URL router and dispatcher for Go
+LICENSE= modified-bsd # bsd-3
+
+GO_SRCPATH= github.com/gorilla/go-mux
+GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}*
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-mux/PLIST b/go-mux/PLIST
new file mode 100644
index 0000000000..3e6fd8c261
--- /dev/null
+++ b/go-mux/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/gorilla/go-mux.a
+gopkg/src/github.com/gorilla/go-mux/AUTHORS
+gopkg/src/github.com/gorilla/go-mux/ISSUE_TEMPLATE.md
+gopkg/src/github.com/gorilla/go-mux/LICENSE
+gopkg/src/github.com/gorilla/go-mux/README.md
+gopkg/src/github.com/gorilla/go-mux/bench_test.go
+gopkg/src/github.com/gorilla/go-mux/context.go
+gopkg/src/github.com/gorilla/go-mux/context_test.go
+gopkg/src/github.com/gorilla/go-mux/doc.go
+gopkg/src/github.com/gorilla/go-mux/example_authentication_middleware_test.go
+gopkg/src/github.com/gorilla/go-mux/example_route_test.go
+gopkg/src/github.com/gorilla/go-mux/go.mod
+gopkg/src/github.com/gorilla/go-mux/middleware.go
+gopkg/src/github.com/gorilla/go-mux/middleware_test.go
+gopkg/src/github.com/gorilla/go-mux/mux.go
+gopkg/src/github.com/gorilla/go-mux/mux_test.go
+gopkg/src/github.com/gorilla/go-mux/old_test.go
+gopkg/src/github.com/gorilla/go-mux/regexp.go
+gopkg/src/github.com/gorilla/go-mux/route.go
+gopkg/src/github.com/gorilla/go-mux/test_helpers.go
diff --git a/go-mux/buildlink3.mk b/go-mux/buildlink3.mk
new file mode 100644
index 0000000000..90194bfdeb
--- /dev/null
+++ b/go-mux/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= go-mux
+
+.if !defined(GO_MUX_BUILDLINK3_MK)
+GO_MUX_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-mux= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-mux?= build
+
+BUILDLINK_API_DEPENDS.go-mux+= go-mux>=1.7.2
+BUILDLINK_PKGSRCDIR.go-mux?= ../../wip/go-mux
+.endif # GO_MUX_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-mux
diff --git a/go-mux/distinfo b/go-mux/distinfo
new file mode 100644
index 0000000000..2479e28410
--- /dev/null
+++ b/go-mux/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-mux-ed099d42384823742bba0bf9a72b53b55c9e2e38-ed099d42384823742bba0bf9a72b53b55c9e2e38.tar.gz) = 947706f28d3c82f493d88762232451ab64644e06
+RMD160 (go-mux-ed099d42384823742bba0bf9a72b53b55c9e2e38-ed099d42384823742bba0bf9a72b53b55c9e2e38.tar.gz) = 07ba2997253ebce00d6512f44a3eab75068521e6
+SHA512 (go-mux-ed099d42384823742bba0bf9a72b53b55c9e2e38-ed099d42384823742bba0bf9a72b53b55c9e2e38.tar.gz) = b528ef73d899e29bfb2d86b2657bd4cc5017b2d7dac8fe410bd02424c69a152d26c34e48a58ad80331f80dfaaee3663967052b5794cf4e3606837724ca00b5e8
+Size (go-mux-ed099d42384823742bba0bf9a72b53b55c9e2e38-ed099d42384823742bba0bf9a72b53b55c9e2e38.tar.gz) = 40975 bytes
Home |
Main Index |
Thread Index |
Old Index