From owner-svn-ports-head@freebsd.org Mon Feb 20 15:14:40 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD240CE55D2; Mon, 20 Feb 2017 15:14:40 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 950D61B1E; Mon, 20 Feb 2017 15:14:40 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1KFEdvU041415; Mon, 20 Feb 2017 15:14:39 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1KFEdHq041410; Mon, 20 Feb 2017 15:14:39 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201702201514.v1KFEdHq041410@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Mon, 20 Feb 2017 15:14:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434466 - in head/devel: . go-cpuid X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2017 15:14:40 -0000 Author: sunpoet Date: Mon Feb 20 15:14:38 2017 New Revision: 434466 URL: https://svnweb.freebsd.org/changeset/ports/434466 Log: Add go-cpuid 1.0 The cpuid package 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. WWW: https://github.com/klauspost/cpuid - While I'm here: - Use DISTVERSIONPREFIX - Add LICENSE_FILE - Remove GH_PROJECT PR: 217210 Submitted by: Guy Tabrar Added: head/devel/go-cpuid/ head/devel/go-cpuid/Makefile (contents, props changed) head/devel/go-cpuid/distinfo (contents, props changed) head/devel/go-cpuid/pkg-descr (contents, props changed) head/devel/go-cpuid/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon Feb 20 15:10:27 2017 (r434465) +++ head/devel/Makefile Mon Feb 20 15:14:38 2017 (r434466) @@ -751,6 +751,7 @@ SUBDIR += go-bindata SUBDIR += go-cobra SUBDIR += go-codec + SUBDIR += go-cpuid SUBDIR += go-faker SUBDIR += go-form SUBDIR += go-glide Added: head/devel/go-cpuid/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/go-cpuid/Makefile Mon Feb 20 15:14:38 2017 (r434466) @@ -0,0 +1,20 @@ +# $FreeBSD$ + +PORTNAME= cpuid +PORTVERSION= 1.0 +DISTVERSIONPREFIX= v +CATEGORIES= devel +PKGNAMEPREFIX= go- + +MAINTAINER= guy.tabrar@me.com +COMMENT= Cpuid provides information about the CPU running the current program + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= klauspost +USES= go +GO_PKGNAME= github.com/klauspost/cpuid + +.include Added: head/devel/go-cpuid/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/go-cpuid/distinfo Mon Feb 20 15:14:38 2017 (r434466) @@ -0,0 +1,3 @@ +TIMESTAMP = 1487476724 +SHA256 (klauspost-cpuid-v1.0_GH0.tar.gz) = 9739cdbf54eb6c26752c37ae567f59d52ceb879bba7b925b161caf920155d43d +SIZE (klauspost-cpuid-v1.0_GH0.tar.gz) = 205089 Added: head/devel/go-cpuid/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/go-cpuid/pkg-descr Mon Feb 20 15:14:38 2017 (r434466) @@ -0,0 +1,12 @@ +The cpuid package 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. + +WWW: https://github.com/klauspost/cpuid Added: head/devel/go-cpuid/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/go-cpuid/pkg-plist Mon Feb 20 15:14:38 2017 (r434466) @@ -0,0 +1,21 @@ +%%GO_LIBDIR%%/%%GO_PKGNAME%%.a +%%GO_SRCDIR%%/%%GO_PKGNAME%%/LICENSE +%%GO_SRCDIR%%/%%GO_PKGNAME%%/README.md +%%GO_SRCDIR%%/%%GO_PKGNAME%%/cpuid.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/cpuid_386.s +%%GO_SRCDIR%%/%%GO_PKGNAME%%/cpuid_amd64.s +%%GO_SRCDIR%%/%%GO_PKGNAME%%/cpuid_test.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/detect_intel.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/detect_ref.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/generate.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/mockcpu_test.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/private-gen.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/private/README.md +%%GO_SRCDIR%%/%%GO_PKGNAME%%/private/cpuid.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/private/cpuid_386.s +%%GO_SRCDIR%%/%%GO_PKGNAME%%/private/cpuid_amd64.s +%%GO_SRCDIR%%/%%GO_PKGNAME%%/private/cpuid_detect_intel.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/private/cpuid_detect_ref.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/private/cpuid_test.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/testdata/cpuid_data.zip +%%GO_SRCDIR%%/%%GO_PKGNAME%%/testdata/getall.go