pkgsrc-WIP-changes archive

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

Import go-httprouter-1.3.0 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:48:37 2021 +0100
Changeset:	4c73e2c0f33a0ba57b415ae84a80d82e6556af25

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

Log Message:
Import go-httprouter-1.3.0 to wip

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

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

diffstat:
 Makefile                    |  1 +
 go-httprouter/DESCR         |  9 +++++++++
 go-httprouter/Makefile      | 18 ++++++++++++++++++
 go-httprouter/PLIST         | 11 +++++++++++
 go-httprouter/buildlink3.mk | 15 +++++++++++++++
 go-httprouter/distinfo      |  6 ++++++
 6 files changed, 60 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 1fc467066c..7ab08651c2 100644
--- a/Makefile
+++ b/Makefile
@@ -1229,6 +1229,7 @@ SUBDIR+=	go-gtk2
 SUBDIR+=	go-hex
 SUBDIR+=	go-hidden
 SUBDIR+=	go-httphead
+SUBDIR+=	go-httprouter
 SUBDIR+=	go-httpsnoop
 SUBDIR+=	go-humanize
 SUBDIR+=	go-imgui
diff --git a/go-httprouter/DESCR b/go-httprouter/DESCR
new file mode 100644
index 0000000000..ed2795e673
--- /dev/null
+++ b/go-httprouter/DESCR
@@ -0,0 +1,9 @@
+HttpRouter is a lightweight high performance HTTP request
+router (also called multiplexer or just mux for short) for Go.
+In contrast to the default mux of Go's net/http package,
+this router supports variables in the routing pattern and
+matches against the request method. It also scales better.
+The router is optimized for high performance and a small
+memory footprint. It scales well even with very long paths
+and a large number of routes. A compressing dynamic trie
+(radix tree) structure is used for efficient matching
diff --git a/go-httprouter/Makefile b/go-httprouter/Makefile
new file mode 100644
index 0000000000..465fb87b60
--- /dev/null
+++ b/go-httprouter/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME=	go-httprouter-1.3.0
+GITHUB_PROJECT=	httprouter
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+CATEGORIES=	www
+MASTER_SITES=	${MASTER_SITE_GITHUB:=julienschmidt/}
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://github.com/julienschmidt/httprouter/
+COMMENT=	High performance HTTP request router that scales well
+LICENSE=	2-clause-bsd
+
+GO_DIST_BASE=	${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+GO_SRCPATH=	github.com/julienschmidt/${GITHUB_PROJECT}
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-httprouter/PLIST b/go-httprouter/PLIST
new file mode 100644
index 0000000000..4a5b34641f
--- /dev/null
+++ b/go-httprouter/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/julienschmidt/httprouter.a
+gopkg/src/github.com/julienschmidt/httprouter/LICENSE
+gopkg/src/github.com/julienschmidt/httprouter/README.md
+gopkg/src/github.com/julienschmidt/httprouter/go.mod
+gopkg/src/github.com/julienschmidt/httprouter/path.go
+gopkg/src/github.com/julienschmidt/httprouter/path_test.go
+gopkg/src/github.com/julienschmidt/httprouter/router.go
+gopkg/src/github.com/julienschmidt/httprouter/router_test.go
+gopkg/src/github.com/julienschmidt/httprouter/tree.go
+gopkg/src/github.com/julienschmidt/httprouter/tree_test.go
diff --git a/go-httprouter/buildlink3.mk b/go-httprouter/buildlink3.mk
new file mode 100644
index 0000000000..6011ffe3fa
--- /dev/null
+++ b/go-httprouter/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-httprouter
+
+.if !defined(GO_HTTPROUTER_BUILDLINK3_MK)
+GO_HTTPROUTER_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-httprouter=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-httprouter?=		build
+
+BUILDLINK_API_DEPENDS.go-httprouter+=	go-httprouter>=1.3.0
+BUILDLINK_PKGSRCDIR.go-httprouter?=	../../wip/go-httprouter
+.endif	# GO_HTTPROUTER_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-httprouter
diff --git a/go-httprouter/distinfo b/go-httprouter/distinfo
new file mode 100644
index 0000000000..48b213a1d2
--- /dev/null
+++ b/go-httprouter/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-httprouter-1.3.0.tar.gz) = 79d8d7b3d7a3c017cebec517e483232c6d7087cc
+RMD160 (go-httprouter-1.3.0.tar.gz) = b2ac021b936ee61a6a5c4b53954dacb7087156d0
+SHA512 (go-httprouter-1.3.0.tar.gz) = 71529722382598c69a69b2cf0e92f406698f3ec6effb82a0453beb3fa9578603895028b804c53ca17e0d5306235e83d7b954beef7189a79fad70bc27815b5e76
+Size (go-httprouter-1.3.0.tar.gz) = 23889 bytes


Home | Main Index | Thread Index | Old Index