pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/go-properties Add go-properties package



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb7b1f6f668b
branches:  trunk
changeset: 366651:eb7b1f6f668b
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Thu Aug 17 01:36:54 2017 +0000

description:
Add go-properties package

diffstat:

 devel/go-properties/DESCR         |  11 +++++++++++
 devel/go-properties/Makefile      |  20 ++++++++++++++++++++
 devel/go-properties/PLIST         |  39 +++++++++++++++++++++++++++++++++++++++
 devel/go-properties/buildlink3.mk |  17 +++++++++++++++++
 devel/go-properties/distinfo      |   6 ++++++
 5 files changed, 93 insertions(+), 0 deletions(-)

diffs (113 lines):

diff -r e09c2227c0b2 -r eb7b1f6f668b devel/go-properties/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-properties/DESCR Thu Aug 17 01:36:54 2017 +0000
@@ -0,0 +1,11 @@
+properties is a Go library for reading and writing properties files.
+
+It supports reading from multiple files or URLs and Spring style recursive property expansion of expressions like ${key} to their corresponding value. Value expressions can refer to other keys like 
in ${key} or to environment variables like in ${USER}. Filenames can also contain environment variables like in /home/${USER}/myapp.properties.
+
+Properties can be decoded into structs, maps, arrays and values through struct tags.
+
+Comments and the order of keys are preserved. Comments can be modified and can be written to the output.
+
+The properties library supports both ISO-8859-1 and UTF-8 encoded data.
+
+Starting from version 1.3.0 the behavior of the MustXXX() functions is configurable by providing a custom ErrorHandler function. The default has changed from panic to log.Fatal but this is 
configurable and custom error handling functions can be provided. See the package documentation for details.
diff -r e09c2227c0b2 -r eb7b1f6f668b devel/go-properties/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-properties/Makefile      Thu Aug 17 01:36:54 2017 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:36:54 gavan Exp $
+
+DISTNAME=      properties-1.7.0
+PKGNAME=       go-${DISTNAME}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=magiconair/}
+CATEGORIES=    devel
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+GITHUB_PROJECT= ${PKGBASE:S/^go-//}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/magiconair/properties
+COMMENT=       Java properties scanner for Go
+LICENSE=       2-clause-bsd
+
+GO_DIST_BASE=  ${DISTNAME}
+GO_SRCPATH=    github.com/magiconair/properties
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff -r e09c2227c0b2 -r eb7b1f6f668b devel/go-properties/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-properties/PLIST Thu Aug 17 01:36:54 2017 +0000
@@ -0,0 +1,39 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:36:54 gavan Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/magiconair/properties.a
+gopkg/src/github.com/magiconair/properties/CHANGELOG.md
+gopkg/src/github.com/magiconair/properties/LICENSE
+gopkg/src/github.com/magiconair/properties/README.md
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/LICENSE
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/README.md
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/TODO
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/benchmark.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/benchmark_test.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/bootstrap_test.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/check.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/check_test.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/checkers.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/checkers_test.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/export_test.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/fixture_test.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/foundation_test.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/helpers.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/helpers_test.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/printer.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/printer_test.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/run.go
+gopkg/src/github.com/magiconair/properties/_third_party/gopkg.in/check.v1/run_test.go
+gopkg/src/github.com/magiconair/properties/benchmark_test.go
+gopkg/src/github.com/magiconair/properties/decode.go
+gopkg/src/github.com/magiconair/properties/decode_test.go
+gopkg/src/github.com/magiconair/properties/doc.go
+gopkg/src/github.com/magiconair/properties/example_test.go
+gopkg/src/github.com/magiconair/properties/integrate.go
+gopkg/src/github.com/magiconair/properties/integrate_test.go
+gopkg/src/github.com/magiconair/properties/lex.go
+gopkg/src/github.com/magiconair/properties/load.go
+gopkg/src/github.com/magiconair/properties/load_test.go
+gopkg/src/github.com/magiconair/properties/parser.go
+gopkg/src/github.com/magiconair/properties/properties.go
+gopkg/src/github.com/magiconair/properties/properties_test.go
+gopkg/src/github.com/magiconair/properties/rangecheck.go
+@pkgdir bin
diff -r e09c2227c0b2 -r eb7b1f6f668b devel/go-properties/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-properties/buildlink3.mk Thu Aug 17 01:36:54 2017 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:36:54 gavan Exp $
+
+BUILDLINK_TREE+=       go-properties
+
+.if !defined(GO_PROPERTIES_BUILDLINK3_MK)
+GO_PROPERTIES_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-properties=       ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-properties?=            build
+
+BUILDLINK_API_DEPENDS.go-properties+=          go-properties>=1.7.0
+BUILDLINK_PKGSRCDIR.go-properties?=            ../../devel/go-properties
+
+.endif  # GO_PROPERTIES_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-properties
+
diff -r e09c2227c0b2 -r eb7b1f6f668b devel/go-properties/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-properties/distinfo      Thu Aug 17 01:36:54 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:36:54 gavan Exp $
+
+SHA1 (properties-1.7.0.tar.gz) = f674d08694b72d09b7624f1308927526de5173d6
+RMD160 (properties-1.7.0.tar.gz) = 1cb7fa33d714e4c26a41ca0b2e6c9a021894c4d5
+SHA512 (properties-1.7.0.tar.gz) = 9526310853e7e3fc23589479c75d1afdac75abf3641661b593b7c98d5da3b559130a8e275f186ca009b66b844371ebb074594b451651539dc6e6dbef7c573fb6
+Size (properties-1.7.0.tar.gz) = 53510 bytes



Home | Main Index | Thread Index | Old Index