pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www Add www/go-mux version 1.7.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0bbd4ec132dd
branches:  trunk
changeset: 417246:0bbd4ec132dd
user:      ng0 <ng0%pkgsrc.org@localhost>
date:      Wed Nov 06 13:35:18 2019 +0000

description:
Add www/go-mux version 1.7.3

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.

diffstat:

 www/Makefile             |   4 +++-
 www/go-mux/DESCR         |  20 ++++++++++++++++++++
 www/go-mux/Makefile      |  18 ++++++++++++++++++
 www/go-mux/PLIST         |  21 +++++++++++++++++++++
 www/go-mux/buildlink3.mk |  15 +++++++++++++++
 www/go-mux/distinfo      |   6 ++++++
 6 files changed, 83 insertions(+), 1 deletions(-)

diffs (122 lines):

diff -r 47dc0f69f02a -r 0bbd4ec132dd www/Makefile
--- a/www/Makefile      Wed Nov 06 13:26:30 2019 +0000
+++ b/www/Makefile      Wed Nov 06 13:35:18 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1413 2019/11/03 01:00:18 markd Exp $
+# $NetBSD: Makefile,v 1.1414 2019/11/06 13:35:18 ng0 Exp $
 #
 
 COMMENT=       Packages related to the World Wide Web
@@ -122,10 +122,12 @@
 SUBDIR+=       gnurl
 SUBDIR+=       go-ace
 SUBDIR+=       go-cssmin
+SUBDIR+=       go-fasthttp
 SUBDIR+=       go-gogs-client
 SUBDIR+=       go-gohtml
 SUBDIR+=       go-libsass
 SUBDIR+=       go-minify
+SUBDIR+=       go-mux
 SUBDIR+=       go-parse
 SUBDIR+=       go-spritewell
 SUBDIR+=       go-tocss
diff -r 47dc0f69f02a -r 0bbd4ec132dd www/go-mux/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/go-mux/DESCR  Wed Nov 06 13:35:18 2019 +0000
@@ -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 -r 47dc0f69f02a -r 0bbd4ec132dd www/go-mux/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/go-mux/Makefile       Wed Nov 06 13:35:18 2019 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/06 13:35:18 ng0 Exp $
+
+GITHUB_TAG=            v${PKGVERSION_NOREV}
+DISTNAME=              go-mux-1.7.3
+CATEGORIES=            devel
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=gorilla/}
+GITHUB_PROJECT=                mux
+
+MAINTAINER=            ng0%NetBSD.org@localhost
+HOMEPAGE=              https://github.com/gorilla/mux
+COMMENT=               URL router and dispatcher for Go
+LICENSE=               modified-bsd # bsd-3
+
+GO_SRCPATH=            github.com/gorilla/mux
+GO_DIST_BASE=          mux-${PKGVERSION_NOREV}
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 47dc0f69f02a -r 0bbd4ec132dd www/go-mux/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/go-mux/PLIST  Wed Nov 06 13:35:18 2019 +0000
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1 2019/11/06 13:35:18 ng0 Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/gorilla/mux.a
+gopkg/src/github.com/gorilla/mux/AUTHORS
+gopkg/src/github.com/gorilla/mux/LICENSE
+gopkg/src/github.com/gorilla/mux/README.md
+gopkg/src/github.com/gorilla/mux/bench_test.go
+gopkg/src/github.com/gorilla/mux/context.go
+gopkg/src/github.com/gorilla/mux/context_test.go
+gopkg/src/github.com/gorilla/mux/doc.go
+gopkg/src/github.com/gorilla/mux/example_authentication_middleware_test.go
+gopkg/src/github.com/gorilla/mux/example_cors_method_middleware_test.go
+gopkg/src/github.com/gorilla/mux/example_route_test.go
+gopkg/src/github.com/gorilla/mux/go.mod
+gopkg/src/github.com/gorilla/mux/middleware.go
+gopkg/src/github.com/gorilla/mux/middleware_test.go
+gopkg/src/github.com/gorilla/mux/mux.go
+gopkg/src/github.com/gorilla/mux/mux_test.go
+gopkg/src/github.com/gorilla/mux/old_test.go
+gopkg/src/github.com/gorilla/mux/regexp.go
+gopkg/src/github.com/gorilla/mux/route.go
+gopkg/src/github.com/gorilla/mux/test_helpers.go
diff -r 47dc0f69f02a -r 0bbd4ec132dd www/go-mux/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/go-mux/buildlink3.mk  Wed Nov 06 13:35:18 2019 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/11/06 13:35:18 ng0 Exp $
+
+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?=   ../../www/go-mux
+.endif # GO_MUX_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-mux
diff -r 47dc0f69f02a -r 0bbd4ec132dd www/go-mux/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/go-mux/distinfo       Wed Nov 06 13:35:18 2019 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/11/06 13:35:18 ng0 Exp $
+
+SHA1 (go-mux-1.7.3.tar.gz) = 091a8abbfc04574a3bba25ae750c4ca726d66d70
+RMD160 (go-mux-1.7.3.tar.gz) = 81e9243712a1bca9ea7e9c078748f66f87832bf5
+SHA512 (go-mux-1.7.3.tar.gz) = 90e3da0f680ea0cf8d771cae9cbb5e35867f0e0a08f9ab7d22048b19851b57f1353f435abff7ea1db3c190081e363092e93cd6a57c2a64b6531458c2f6054365
+Size (go-mux-1.7.3.tar.gz) = 42495 bytes



Home | Main Index | Thread Index | Old Index