pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/go-jwalterweatherman Add go-jwalterweatherman pa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dda79a20e2fe
branches:  trunk
changeset: 366645:dda79a20e2fe
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Thu Aug 17 01:31:19 2017 +0000

description:
Add go-jwalterweatherman package

diffstat:

 devel/go-jwalterweatherman/DESCR         |  19 +++++++++++++++++++
 devel/go-jwalterweatherman/Makefile      |  20 ++++++++++++++++++++
 devel/go-jwalterweatherman/PLIST         |  10 ++++++++++
 devel/go-jwalterweatherman/buildlink3.mk |  17 +++++++++++++++++
 devel/go-jwalterweatherman/distinfo      |   6 ++++++
 5 files changed, 72 insertions(+), 0 deletions(-)

diffs (92 lines):

diff -r 18414e5478a9 -r dda79a20e2fe devel/go-jwalterweatherman/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-jwalterweatherman/DESCR  Thu Aug 17 01:31:19 2017 +0000
@@ -0,0 +1,19 @@
+jWalterWeatherman
+
+Seamless printing to the terminal (stdout) and logging to a io.Writer (file) thatâ??s as easy to use as fmt.Println.
+
+JWW is primarily a wrapper around the excellent standard log library. It provides a few advantages over using the standard log library alone.
+
+1. Ready to go out of the box.
+2. One library for both printing to the terminal and logging (to files).
+3. Really easy to log to either a temp file or a file you specify.
+
+I really wanted a very straightforward library that could seamlessly do the following things.
+
+1. Replace all the println, printf, etc statements thought my code with something more useful
+2. Allow the user to easily control what levels are printed to stdout
+3. Allow the user to easily control what levels are logged
+4. Provide an easy mechanism (like fmt.Println) to print info to the user which can be easily logged as well
+5. Due to 2 & 3 provide easy verbose mode for output and logs
+6. Not have any unnecessary initialization cruft. Just use it.
+
diff -r 18414e5478a9 -r dda79a20e2fe devel/go-jwalterweatherman/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-jwalterweatherman/Makefile       Thu Aug 17 01:31:19 2017 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:31:19 gavan Exp $
+
+DISTNAME=      jWalterWeatherman-20170523
+PKGNAME=       go-${DISTNAME}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=spf13/}
+CATEGORIES=    devel
+GITHUB_TAG=    0efa5202c04663c757d84f90f5219c1250baf94f
+GITHUB_PROJECT= ${PKGBASE:S/^go-//}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/spf13/jwalterweatherman
+COMMENT=       Seamless printing to the terminal (stdout) and logging to a io.Writer (file)
+LICENSE=       mit
+
+GO_DIST_BASE=  ${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_SRCPATH=    github.com/spf13/jwalterweatherman
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff -r 18414e5478a9 -r dda79a20e2fe devel/go-jwalterweatherman/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-jwalterweatherman/PLIST  Thu Aug 17 01:31:19 2017 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:31:19 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/spf13/jwalterweatherman.a
+gopkg/src/github.com/spf13/jwalterweatherman/LICENSE
+gopkg/src/github.com/spf13/jwalterweatherman/README.md
+gopkg/src/github.com/spf13/jwalterweatherman/default_notepad.go
+gopkg/src/github.com/spf13/jwalterweatherman/default_notepad_test.go
+gopkg/src/github.com/spf13/jwalterweatherman/log_counter.go
+gopkg/src/github.com/spf13/jwalterweatherman/notepad.go
+gopkg/src/github.com/spf13/jwalterweatherman/notepad_test.go
+@pkgdir bin
diff -r 18414e5478a9 -r dda79a20e2fe devel/go-jwalterweatherman/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-jwalterweatherman/buildlink3.mk  Thu Aug 17 01:31:19 2017 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:31:19 gavan Exp $
+
+BUILDLINK_TREE+=       go-jwalterweatherman
+
+.if !defined(GO_JWALTERWEATHERMAN_BUILDLINK3_MK)
+GO_JWALTERWEATHERMAN_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-jwalterweatherman=        ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-jwalterweatherman?=             build
+
+BUILDLINK_API_DEPENDS.go-jwalterweatherman+=           go-jWalterWeatherman>=20170523
+BUILDLINK_PKGSRCDIR.go-jwalterweatherman?=             ../../devel/go-jwalterweatherman
+
+.endif  # GO_JWALTERWEATHERMAN_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-jwalterweatherman
+
diff -r 18414e5478a9 -r dda79a20e2fe devel/go-jwalterweatherman/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-jwalterweatherman/distinfo       Thu Aug 17 01:31:19 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:31:19 gavan Exp $
+
+SHA1 (jWalterWeatherman-20170523-0efa5202c04663c757d84f90f5219c1250baf94f.tar.gz) = f6155eb5e800326dd05e22a0911d4b9724356ac8
+RMD160 (jWalterWeatherman-20170523-0efa5202c04663c757d84f90f5219c1250baf94f.tar.gz) = 4dbb1882a2f1315831d9d76ee8842d001bf3eb8a
+SHA512 (jWalterWeatherman-20170523-0efa5202c04663c757d84f90f5219c1250baf94f.tar.gz) = 
e994187443d8c4f05e9864a9c6db52847f3459d4afb1b094bfd9ab6d9d374856028319f7b8a99e2483242a2decc6432e8fd85cb567b4f6dc76dc700900eb5ca1
+Size (jWalterWeatherman-20170523-0efa5202c04663c757d84f90f5219c1250baf94f.tar.gz) = 6340 bytes



Home | Main Index | Thread Index | Old Index