pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel Add devel/go-cpuid version 1.2.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bcdd55c4238f
branches:  trunk
changeset: 417209:bcdd55c4238f
user:      ng0 <ng0%pkgsrc.org@localhost>
date:      Wed Nov 06 11:08:13 2019 +0000

description:
Add devel/go-cpuid version 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.

diffstat:

 devel/Makefile               |   3 ++-
 devel/go-cpuid/DESCR         |   9 +++++++++
 devel/go-cpuid/Makefile      |  18 ++++++++++++++++++
 devel/go-cpuid/PLIST         |  24 ++++++++++++++++++++++++
 devel/go-cpuid/buildlink3.mk |  15 +++++++++++++++
 devel/go-cpuid/distinfo      |   6 ++++++
 6 files changed, 74 insertions(+), 1 deletions(-)

diffs (109 lines):

diff -r c746e3df739c -r bcdd55c4238f devel/Makefile
--- a/devel/Makefile    Wed Nov 06 10:56:53 2019 +0000
+++ b/devel/Makefile    Wed Nov 06 11:08:13 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2941 2019/11/06 10:56:14 ng0 Exp $
+# $NetBSD: Makefile,v 1.2942 2019/11/06 11:08:13 ng0 Exp $
 #
 
 COMMENT=       Development utilities
@@ -376,6 +376,7 @@
 SUBDIR+=       go-colortext
 SUBDIR+=       go-colour
 SUBDIR+=       go-consul-api
+SUBDIR+=       go-cpuid
 SUBDIR+=       go-debounce
 SUBDIR+=       go-ed25519
 SUBDIR+=       go-emoji
diff -r c746e3df739c -r bcdd55c4238f devel/go-cpuid/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-cpuid/DESCR      Wed Nov 06 11:08:13 2019 +0000
@@ -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 -r c746e3df739c -r bcdd55c4238f devel/go-cpuid/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-cpuid/Makefile   Wed Nov 06 11:08:13 2019 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/06 11:08:13 ng0 Exp $
+
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+DISTNAME=      go-cpuid-1.2.1
+GITHUB_PROJECT=        cpuid
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=klauspost/}
+
+MAINTAINER=    ng0%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=  cpuid-${PKGVERSION_NOREV}
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c746e3df739c -r bcdd55c4238f devel/go-cpuid/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-cpuid/PLIST      Wed Nov 06 11:08:13 2019 +0000
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.1 2019/11/06 11:08:14 ng0 Exp $
+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 -r c746e3df739c -r bcdd55c4238f devel/go-cpuid/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-cpuid/buildlink3.mk      Wed Nov 06 11:08:13 2019 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/11/06 11:08:14 ng0 Exp $
+
+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?=         ../../devel/go-cpuid
+.endif # GO_CPUID_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-cpuid
diff -r c746e3df739c -r bcdd55c4238f devel/go-cpuid/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-cpuid/distinfo   Wed Nov 06 11:08:13 2019 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/11/06 11:08:14 ng0 Exp $
+
+SHA1 (go-cpuid-1.2.1.tar.gz) = 34957fc8918a0a7568d98df9c641511d88d5dd30
+RMD160 (go-cpuid-1.2.1.tar.gz) = e76cc3db1a88541f829d8454e6f5d1d07d394faa
+SHA512 (go-cpuid-1.2.1.tar.gz) = d5d1cc22f6e43619dd64f86057385fb8080e85903983937be7282aed6c88a3686d7e1ce58a641ba753dacb6fcc54715343521a85cb1bdf074afbacc91b8f8ad8
+Size (go-cpuid-1.2.1.tar.gz) = 279083 bytes



Home | Main Index | Thread Index | Old Index