pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel New package, go-glog.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/964c1f844e6c
branches:  trunk
changeset: 352234:964c1f844e6c
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sun Sep 11 08:15:43 2016 +0000

description:
New package, go-glog.

Package glog implements logging analogous to the Google-internal
C++ INFO/ERROR/V setup.  It provides functions Info, Warning,
Error, Fatal, plus formatting variants such as Infof. It
also provides V-style logging controlled by the -v and
-vmodule=file=2 flags.

This is an efficient pure Go implementation of leveled logs in the
manner of the open source C++ package
        https://github.com/google/glog
        (pkgsrc/devel/google-glog)

By binding methods to booleans it is possible to use the log package
without paying the expense of evaluating the arguments to the log.
Through the -vmodule flag, the package also provides fine-grained
control over logging at the file level.

diffstat:

 devel/Makefile              |   3 ++-
 devel/go-glog/DESCR         |  15 +++++++++++++++
 devel/go-glog/Makefile      |  18 ++++++++++++++++++
 devel/go-glog/PLIST         |   8 ++++++++
 devel/go-glog/buildlink3.mk |  15 +++++++++++++++
 devel/go-glog/distinfo      |   6 ++++++
 6 files changed, 64 insertions(+), 1 deletions(-)

diffs (99 lines):

diff -r 10b58baf1645 -r 964c1f844e6c devel/Makefile
--- a/devel/Makefile    Sun Sep 11 08:02:29 2016 +0000
+++ b/devel/Makefile    Sun Sep 11 08:15:43 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2306 2016/09/11 08:02:29 bsiegert Exp $
+# $NetBSD: Makefile,v 1.2307 2016/09/11 08:15:43 bsiegert Exp $
 #
 
 COMMENT=       Development utilities
@@ -296,6 +296,7 @@
 SUBDIR+=       gnustep-objc-lf2
 SUBDIR+=       go-check
 SUBDIR+=       go-flags-svent
+SUBDIR+=       go-glog
 SUBDIR+=       go-gls
 SUBDIR+=       go-ini
 SUBDIR+=       go-mow-cli
diff -r 10b58baf1645 -r 964c1f844e6c devel/go-glog/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-glog/DESCR       Sun Sep 11 08:15:43 2016 +0000
@@ -0,0 +1,15 @@
+Package glog implements logging analogous to the Google-internal
+C++ INFO/ERROR/V setup.  It provides functions Info, Warning,
+Error, Fatal, plus formatting variants such as Infof. It
+also provides V-style logging controlled by the -v and
+-vmodule=file=2 flags.
+
+This is an efficient pure Go implementation of leveled logs in the
+manner of the open source C++ package
+       https://github.com/google/glog
+       (pkgsrc/devel/google-glog)
+
+By binding methods to booleans it is possible to use the log package
+without paying the expense of evaluating the arguments to the log.
+Through the -vmodule flag, the package also provides fine-grained
+control over logging at the file level.
diff -r 10b58baf1645 -r 964c1f844e6c devel/go-glog/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-glog/Makefile    Sun Sep 11 08:15:43 2016 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2016/09/11 08:15:43 bsiegert Exp $
+#
+
+DISTNAME=              go-glog-20160125
+CATEGORIES=            devel
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=golang/}
+GITHUB_PROJECT=                glog
+GITHUB_TAG=            23def4e
+
+HOMEPAGE=              http://godoc.org/${GO_SRCPATH}
+COMMENT=               Leveled execution logs for Go
+LICENSE=               apache-2.0
+
+GO_SRCPATH=            github.com/golang/glog
+GO_DIST_BASE=          ${GITHUB_PROJECT}-${GITHUB_TAG}*
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 10b58baf1645 -r 964c1f844e6c devel/go-glog/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-glog/PLIST       Sun Sep 11 08:15:43 2016 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2016/09/11 08:15:43 bsiegert Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/golang/glog.a
+gopkg/src/github.com/golang/glog/LICENSE
+gopkg/src/github.com/golang/glog/README
+gopkg/src/github.com/golang/glog/glog.go
+gopkg/src/github.com/golang/glog/glog_file.go
+gopkg/src/github.com/golang/glog/glog_test.go
+@pkgdir bin
diff -r 10b58baf1645 -r 964c1f844e6c devel/go-glog/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-glog/buildlink3.mk       Sun Sep 11 08:15:43 2016 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/09/11 08:15:43 bsiegert Exp $
+
+BUILDLINK_TREE+=       go-glog
+
+.if !defined(GO_GLOG_BUILDLINK3_MK)
+GO_GLOG_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-glog=     ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-glog?=          build
+
+BUILDLINK_API_DEPENDS.go-glog+=        go-glog>=20160125
+BUILDLINK_PKGSRCDIR.go-glog?=  ../../devel/go-glog
+.endif # GO_GLOG_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-glog
diff -r 10b58baf1645 -r 964c1f844e6c devel/go-glog/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-glog/distinfo    Sun Sep 11 08:15:43 2016 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/09/11 08:15:43 bsiegert Exp $
+
+SHA1 (go-glog-20160125-23def4e.tar.gz) = f3d7dfc5ea4a87434aef3645e8d73a1a21a81453
+RMD160 (go-glog-20160125-23def4e.tar.gz) = fd08038c1dcab78c9470aaeaee873982bcdc69a5
+SHA512 (go-glog-20160125-23def4e.tar.gz) = e9e70cf2a2d74ca813d0cadc23d213a1112ca4d1167abb63d8e0929585fca90c3a5bab1f49db20095c48bf1fe03b4424353c33728d09a201334eb65770888dc5
+Size (go-glog-20160125-23def4e.tar.gz) = 19688 bytes



Home | Main Index | Thread Index | Old Index