summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorgavan <gavan@pkgsrc.org>2017-08-17 01:36:54 +0000
committergavan <gavan@pkgsrc.org>2017-08-17 01:36:54 +0000
commit7ff2d1d55711a96dfdf3b2234b8c58372cdaab31 (patch)
tree72d33b3a84c936b7eb64b14472f4dc3077833904 /devel
parent909b57fd80de51c10f6c81b5ca0b4cb3f2ce0b0e (diff)
downloadpkgsrc-7ff2d1d55711a96dfdf3b2234b8c58372cdaab31.tar.gz
Add go-properties package
Diffstat (limited to 'devel')
-rw-r--r--devel/go-properties/DESCR11
-rw-r--r--devel/go-properties/Makefile20
-rw-r--r--devel/go-properties/PLIST39
-rw-r--r--devel/go-properties/buildlink3.mk17
-rw-r--r--devel/go-properties/distinfo6
5 files changed, 93 insertions, 0 deletions
diff --git a/devel/go-properties/DESCR b/devel/go-properties/DESCR
new file mode 100644
index 00000000000..437df378e6d
--- /dev/null
+++ b/devel/go-properties/DESCR
@@ -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 --git a/devel/go-properties/Makefile b/devel/go-properties/Makefile
new file mode 100644
index 00000000000..4db2193fcc2
--- /dev/null
+++ b/devel/go-properties/Makefile
@@ -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
+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 --git a/devel/go-properties/PLIST b/devel/go-properties/PLIST
new file mode 100644
index 00000000000..211e5ad95ae
--- /dev/null
+++ b/devel/go-properties/PLIST
@@ -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 --git a/devel/go-properties/buildlink3.mk b/devel/go-properties/buildlink3.mk
new file mode 100644
index 00000000000..4659e0466a3
--- /dev/null
+++ b/devel/go-properties/buildlink3.mk
@@ -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 --git a/devel/go-properties/distinfo b/devel/go-properties/distinfo
new file mode 100644
index 00000000000..4cf79949161
--- /dev/null
+++ b/devel/go-properties/distinfo
@@ -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