pkgsrc-WIP-changes archive

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

Import go-reflect2-1.0.1 to wip



Module Name:	pkgsrc-wip
Committed By:	K.I.A.Derouiche <kamel.derouiche%gmail.com@localhost>
Pushed By:	jihbed
Date:		Wed Jan 20 12:16:24 2021 +0100
Changeset:	a107088afa65db20dceac27247b42b6a242b0efe

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

Log Message:
Import go-reflect2-1.0.1 to wip

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

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

diffstat:
 Makefile                  |  1 +
 go-concurrent/Makefile    |  6 +++++-
 go-reflect2/DESCR         |  1 +
 go-reflect2/Makefile      | 23 +++++++++++++++++++++++
 go-reflect2/PLIST         | 38 ++++++++++++++++++++++++++++++++++++++
 go-reflect2/buildlink3.mk | 18 ++++++++++++++++++
 go-reflect2/distinfo      |  6 ++++++
 7 files changed, 92 insertions(+), 1 deletion(-)

diffs:
diff --git a/Makefile b/Makefile
index 0e73ed19e1..c9c032d3dd 100644
--- a/Makefile
+++ b/Makefile
@@ -1275,6 +1275,7 @@ SUBDIR+=	go-python
 SUBDIR+=	go-rateio
 SUBDIR+=	go-raymond
 SUBDIR+=	go-redigo
+SUBDIR+=	go-reflect2
 SUBDIR+=	go-rest
 SUBDIR+=	go-resty
 SUBDIR+=	go-riff
diff --git a/go-concurrent/Makefile b/go-concurrent/Makefile
index 840b68c7fa..c1f6e3000c 100644
--- a/go-concurrent/Makefile
+++ b/go-concurrent/Makefile
@@ -11,8 +11,12 @@ HOMEPAGE=	https://github.com/modern-go/concurrent/
 COMMENT=	Concurrency utilities
 LICENSE=	apache-2.0
 
-GO_DIST_BASE=	${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_DIST_BASE=	${GITHUB_PROJECT}-${PKGVERSION_NOREV}
 GO_SRCPATH=	github.com/modern-go/${GITHUB_PROJECT}
 
+USE_TOOLS+=	bash:run
+
+REPLACE_BASH+=	test.sh
+
 .include "../../lang/go/go-package.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/go-reflect2/DESCR b/go-reflect2/DESCR
new file mode 100644
index 0000000000..08f8b99eac
--- /dev/null
+++ b/go-reflect2/DESCR
@@ -0,0 +1 @@
+Reflect api that avoids runtime reflect.Value cost
diff --git a/go-reflect2/Makefile b/go-reflect2/Makefile
new file mode 100644
index 0000000000..018d95ee05
--- /dev/null
+++ b/go-reflect2/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME=	go-reflect2-1.0.1
+GITHUB_PROJECT=	reflect2
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=modern-go/}
+
+MAINTAINER=	kamelderouiche%yahoo.com@localhost
+HOMEPAGE=	https://github.com/modern-go/reflect2
+COMMENT=	Reflect api without runtime reflect.Value cost
+LICENSE=	apache-2.0
+
+GO_DIST_BASE=	${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+GO_SRCPATH=	github.com/modern-go/${GITHUB_PROJECT}
+
+USE_TOOLS+=	bash:run
+
+REPLACE_BASH+=	test.sh
+
+.include "../../wip/go-concurrent/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-reflect2/PLIST b/go-reflect2/PLIST
new file mode 100644
index 0000000000..b0ee3b4ab5
--- /dev/null
+++ b/go-reflect2/PLIST
@@ -0,0 +1,38 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/modern-go/reflect2.a
+gopkg/src/github.com/modern-go/reflect2/Gopkg.lock
+gopkg/src/github.com/modern-go/reflect2/Gopkg.toml
+gopkg/src/github.com/modern-go/reflect2/LICENSE
+gopkg/src/github.com/modern-go/reflect2/README.md
+gopkg/src/github.com/modern-go/reflect2/go_above_17.go
+gopkg/src/github.com/modern-go/reflect2/go_above_19.go
+gopkg/src/github.com/modern-go/reflect2/go_below_17.go
+gopkg/src/github.com/modern-go/reflect2/go_below_19.go
+gopkg/src/github.com/modern-go/reflect2/reflect2.go
+gopkg/src/github.com/modern-go/reflect2/reflect2_amd64.s
+gopkg/src/github.com/modern-go/reflect2/reflect2_kind.go
+gopkg/src/github.com/modern-go/reflect2/relfect2_386.s
+gopkg/src/github.com/modern-go/reflect2/relfect2_amd64p32.s
+gopkg/src/github.com/modern-go/reflect2/relfect2_arm.s
+gopkg/src/github.com/modern-go/reflect2/relfect2_arm64.s
+gopkg/src/github.com/modern-go/reflect2/relfect2_mips64x.s
+gopkg/src/github.com/modern-go/reflect2/relfect2_mipsx.s
+gopkg/src/github.com/modern-go/reflect2/relfect2_ppc64x.s
+gopkg/src/github.com/modern-go/reflect2/relfect2_s390x.s
+gopkg/src/github.com/modern-go/reflect2/safe_field.go
+gopkg/src/github.com/modern-go/reflect2/safe_map.go
+gopkg/src/github.com/modern-go/reflect2/safe_slice.go
+gopkg/src/github.com/modern-go/reflect2/safe_struct.go
+gopkg/src/github.com/modern-go/reflect2/safe_type.go
+gopkg/src/github.com/modern-go/reflect2/test.sh
+gopkg/src/github.com/modern-go/reflect2/type_map.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_array.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_eface.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_field.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_iface.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_link.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_map.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_ptr.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_slice.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_struct.go
+gopkg/src/github.com/modern-go/reflect2/unsafe_type.go
diff --git a/go-reflect2/buildlink3.mk b/go-reflect2/buildlink3.mk
new file mode 100644
index 0000000000..7a2a99a4a6
--- /dev/null
+++ b/go-reflect2/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-reflect2
+
+.if !defined(GO_REFLECT2_BUILDLINK3_MK)
+GO_REFLECT2_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-reflect2=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-reflect2?=	build
+
+BUILDLINK_API_DEPENDS.go-reflect2+=	go-reflect2>=1.0.1
+BUILDLINK_PKGSRCDIR.go-reflect2?=	../../wip/go-reflect2
+
+
+.include "../../wip/go-concurrent/buildlink3.mk"
+.endif	# GO_REFLECT2_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-reflect2
diff --git a/go-reflect2/distinfo b/go-reflect2/distinfo
new file mode 100644
index 0000000000..615e16f249
--- /dev/null
+++ b/go-reflect2/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-reflect2-1.0.1.tar.gz) = f9fe3614d48feab90299a640f99bfa255c27c680
+RMD160 (go-reflect2-1.0.1.tar.gz) = 03de4c27596400dac092315f30367854e463b24a
+SHA512 (go-reflect2-1.0.1.tar.gz) = 6c52772e7d164837b02fd6b5b5653b7633914e5e8cadbc071d4cd647cc05b0408c152e4334b30f43f6c5a8700b032e5a8ef35e6506961963bfad918b28f5df22
+Size (go-reflect2-1.0.1.tar.gz) = 14394 bytes


Home | Main Index | Thread Index | Old Index