pkgsrc-WIP-changes archive

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

wip/go-cpuid: import go-cpuid-1.2.1



Module Name:	pkgsrc-wip
Committed By:	ng0 <ng0%n0.is@localhost>
Pushed By:	ng0
Date:		Tue May 21 13:46:28 2019 +0000
Changeset:	9672f41f69b6570cc37b05b3d75341ccce0e2d50

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

Log Message:
wip/go-cpuid: import go-cpuid-1.2.1

go-cpuid provides information about the CPU running
the current program.
CPU features are detected on startup, and kept for
fast access through the life of the application.
Currently x86 / x64 (AMD64) is supported, and no
external C (cgo) code is used, which should make
the library very easy to use.
You can access the CPU information by accessing the
shared CPU variable of the cpuid library.

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

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

diffstat:
 Makefile               |  1 +
 go-cpuid/DESCR         |  9 +++++++++
 go-cpuid/Makefile      | 19 +++++++++++++++++++
 go-cpuid/PLIST         | 24 ++++++++++++++++++++++++
 go-cpuid/buildlink3.mk | 15 +++++++++++++++
 go-cpuid/distinfo      |  6 ++++++
 6 files changed, 74 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 0ad3645aea..061064351b 100644
--- a/Makefile
+++ b/Makefile
@@ -1165,6 +1165,7 @@ SUBDIR+=	gnutls
 SUBDIR+=	go
 SUBDIR+=	go-backoff
 SUBDIR+=	go-collectd
+SUBDIR+=	go-cpuid
 SUBDIR+=	go-dotenv
 SUBDIR+=	go-flags
 SUBDIR+=	go-fsnotify
diff --git a/go-cpuid/DESCR b/go-cpuid/DESCR
new file mode 100644
index 0000000000..c6ee651e4e
--- /dev/null
+++ b/go-cpuid/DESCR
@@ -0,0 +1,9 @@
+go-cpuid provides information about the CPU running
+the current program.
+CPU features are detected on startup, and kept for
+fast access through the life of the application.
+Currently x86 / x64 (AMD64) is supported, and no
+external C (cgo) code is used, which should make
+the library very easy to use.
+You can access the CPU information by accessing the
+shared CPU variable of the cpuid library.
diff --git a/go-cpuid/Makefile b/go-cpuid/Makefile
new file mode 100644
index 0000000000..864ac7ef18
--- /dev/null
+++ b/go-cpuid/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+DISTNAME=		go-cpuid-${GITHUB_TAG}
+PKGNAME=		go-cpuid-1.2.1
+GITHUB_PROJECT=		cpuid
+CATEGORIES=		devel
+MASTER_SITES=		${MASTER_SITE_GITHUB:=klauspost/}
+GITHUB_TAG=		05a8198c0f5a27739aec358908d7e12c64ce6eb7
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=		https://github.com/klauspost/cpuid/
+COMMENT=		CPU feature identification for Go
+LICENSE=		modified-bsd
+
+GO_SRCPATH=		github.com/klauspost/cpuid
+GO_DIST_BASE=		${GITHUB_PROJECT}-${GITHUB_TAG}*
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-cpuid/PLIST b/go-cpuid/PLIST
new file mode 100644
index 0000000000..01cd0535e4
--- /dev/null
+++ b/go-cpuid/PLIST
@@ -0,0 +1,24 @@
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/klauspost/cpuid.a
+gopkg/pkg/${GO_PLATFORM}/github.com/klauspost/cpuid/private.a
+gopkg/src/github.com/klauspost/cpuid/CONTRIBUTING.txt
+gopkg/src/github.com/klauspost/cpuid/LICENSE
+gopkg/src/github.com/klauspost/cpuid/README.md
+gopkg/src/github.com/klauspost/cpuid/cpuid.go
+gopkg/src/github.com/klauspost/cpuid/cpuid_386.s
+gopkg/src/github.com/klauspost/cpuid/cpuid_amd64.s
+gopkg/src/github.com/klauspost/cpuid/cpuid_test.go
+gopkg/src/github.com/klauspost/cpuid/detect_intel.go
+gopkg/src/github.com/klauspost/cpuid/detect_ref.go
+gopkg/src/github.com/klauspost/cpuid/generate.go
+gopkg/src/github.com/klauspost/cpuid/mockcpu_test.go
+gopkg/src/github.com/klauspost/cpuid/private-gen.go
+gopkg/src/github.com/klauspost/cpuid/private/README.md
+gopkg/src/github.com/klauspost/cpuid/private/cpuid.go
+gopkg/src/github.com/klauspost/cpuid/private/cpuid_386.s
+gopkg/src/github.com/klauspost/cpuid/private/cpuid_amd64.s
+gopkg/src/github.com/klauspost/cpuid/private/cpuid_detect_intel.go
+gopkg/src/github.com/klauspost/cpuid/private/cpuid_detect_ref.go
+gopkg/src/github.com/klauspost/cpuid/private/cpuid_test.go
+gopkg/src/github.com/klauspost/cpuid/testdata/cpuid_data.zip
+gopkg/src/github.com/klauspost/cpuid/testdata/getall.go
diff --git a/go-cpuid/buildlink3.mk b/go-cpuid/buildlink3.mk
new file mode 100644
index 0000000000..036fe72aa0
--- /dev/null
+++ b/go-cpuid/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	go-cpuid
+
+.if !defined(GO_CPUID_BUILDLINK3_MK)
+GO_CPUID_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-cpuid=	${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-cpuid?=		build
+
+BUILDLINK_API_DEPENDS.go-cpuid+=	go-cpuid>=1.2.1
+BUILDLINK_PKGSRCDIR.go-cpuid?=	../../wip/go-cpuid
+.endif	# GO_CPUID_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-go-cpuid
diff --git a/go-cpuid/distinfo b/go-cpuid/distinfo
new file mode 100644
index 0000000000..35dcfc3a1b
--- /dev/null
+++ b/go-cpuid/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (go-cpuid-05a8198c0f5a27739aec358908d7e12c64ce6eb7-05a8198c0f5a27739aec358908d7e12c64ce6eb7.tar.gz) = 015ac64e4cc0177fb23acde5fab6ab675e56ae35
+RMD160 (go-cpuid-05a8198c0f5a27739aec358908d7e12c64ce6eb7-05a8198c0f5a27739aec358908d7e12c64ce6eb7.tar.gz) = 51e0a457d2d7434e01946b690590aa73567ab284
+SHA512 (go-cpuid-05a8198c0f5a27739aec358908d7e12c64ce6eb7-05a8198c0f5a27739aec358908d7e12c64ce6eb7.tar.gz) = c5903012070fe355cfe13e34d1f4bdcf6fee61cd1e5a9e29e950efa8b73b24d0df5c3a198c84399d54e08d8419363a44325c8d4a266b442827553bb6eb3f410b
+Size (go-cpuid-05a8198c0f5a27739aec358908d7e12c64ce6eb7-05a8198c0f5a27739aec358908d7e12c64ce6eb7.tar.gz) = 279111 bytes


Home | Main Index | Thread Index | Old Index