pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/463fb6e3087b
branches:  trunk
changeset: 366643:463fb6e3087b
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Thu Aug 17 01:29:44 2017 +0000

description:
Add go-i18n package

diffstat:

 devel/go-i18n/DESCR         |   8 ++++
 devel/go-i18n/Makefile      |  20 +++++++++++
 devel/go-i18n/PLIST         |  81 +++++++++++++++++++++++++++++++++++++++++++++
 devel/go-i18n/buildlink3.mk |  18 ++++++++++
 devel/go-i18n/distinfo      |   6 +++
 5 files changed, 133 insertions(+), 0 deletions(-)

diffs (153 lines):

diff -r bb7433e83da1 -r 463fb6e3087b devel/go-i18n/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-i18n/DESCR       Thu Aug 17 01:29:44 2017 +0000
@@ -0,0 +1,8 @@
+go-i18n is a Go package and a command that helps you translate Go programs into multiple languages.
+
+    Supports pluralized strings for all 200+ languages in the Unicode Common Locale Data Repository (CLDR).
+        Code and tests are automatically generated from CLDR data
+    Supports strings with named variables using text/template syntax.
+    Translation files are simple JSON, TOML or YAML.
+    Documented and tested!
+
diff -r bb7433e83da1 -r 463fb6e3087b devel/go-i18n/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-i18n/Makefile    Thu Aug 17 01:29:44 2017 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2017/08/17 01:29:44 gavan Exp $
+
+DISTNAME=      go-i18n-1.8.1
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=nicksnyder/}
+CATEGORIES=    devel
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/nicksnyder/go-i18n/
+COMMENT=       Translate your Go program into multiple languages with templates and CLDR plural support.
+LICENSE=       mit
+
+GO_DIST_BASE=  ${DISTNAME}
+GO_SRCPATH=    github.com/nicksnyder/go-i18n
+
+.include "../../www/go-toml-pelletier/buildlink3.mk"
+.include "../../devel/go-yaml/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff -r bb7433e83da1 -r 463fb6e3087b devel/go-i18n/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-i18n/PLIST       Thu Aug 17 01:29:44 2017 +0000
@@ -0,0 +1,81 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:29:44 gavan Exp $
+bin/codegen
+bin/goi18n
+gopkg/pkg/${GO_PLATFORM}/github.com/nicksnyder/go-i18n/i18n.a
+gopkg/pkg/${GO_PLATFORM}/github.com/nicksnyder/go-i18n/i18n/bundle.a
+gopkg/pkg/${GO_PLATFORM}/github.com/nicksnyder/go-i18n/i18n/language.a
+gopkg/pkg/${GO_PLATFORM}/github.com/nicksnyder/go-i18n/i18n/translation.a
+gopkg/src/github.com/nicksnyder/go-i18n/CHANGELOG
+gopkg/src/github.com/nicksnyder/go-i18n/LICENSE
+gopkg/src/github.com/nicksnyder/go-i18n/README.md
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/constants_command.go
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/constants_command_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/doc.go
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/gendoc.sh
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/goi18n.go
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/merge_command.go
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/merge_command_flat_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/merge_command_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/en-us.flat.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/en-us.flat.toml
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/en-us.flat.yaml
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/en-us.yaml
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/R.go
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/ar-ar.all.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/ar-ar.untranslated.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/en-us.all.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/en-us.untranslated.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/flat/ar-ar.all.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/flat/ar-ar.untranslated.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/flat/en-us.all.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/flat/en-us.untranslated.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/flat/en-us.untranslated.json.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/flat/fr-fr.all.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/flat/fr-fr.untranslated.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/fr-fr.all.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/fr-fr.untranslated.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/ar-ar.one.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/ar-ar.two.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.constants.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.one.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.two.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/flat/ar-ar.one.toml
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/flat/ar-ar.two.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/flat/en-us.constants.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/flat/en-us.one.yaml
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/flat/en-us.two.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/flat/fr-fr.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/fr-fr.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/ar-ar.one.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/ar-ar.two.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/en-us.one.yaml
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/en-us.two.json
+gopkg/src/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/fr-fr.json
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/bundle/bundle.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/bundle/bundle_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/example_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/exampletemplate_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/exampleyaml_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/i18n.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/codegen/generate.sh
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/codegen/main.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/codegen/plurals.xml
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/codegen/xml.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/language.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/language_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/operands.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/operands_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/plural.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/plural_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/pluralspec.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/pluralspec_gen.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/pluralspec_gen_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/language/pluralspec_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/translation/plural_translation.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/translation/plural_translation_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/translation/single_translation.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/translation/template.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/translation/template_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/translation/translation.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/translation/translation_test.go
+gopkg/src/github.com/nicksnyder/go-i18n/i18n/translations_test.go
diff -r bb7433e83da1 -r 463fb6e3087b devel/go-i18n/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-i18n/buildlink3.mk       Thu Aug 17 01:29:44 2017 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:29:44 gavan Exp $
+
+BUILDLINK_TREE+=       go-i18n
+
+.if !defined(GO_I18N_BUILDLINK3_MK)
+GO_I18N_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-i18n=     ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-i18n?=          build
+
+BUILDLINK_API_DEPENDS.go-i18n+=                go-i18n>=1.8.1
+BUILDLINK_PKGSRCDIR.go-i18n?=          ../../devel/go-i18n
+
+.include "../../www/go-toml-pelletier/buildlink3.mk"
+.endif  # GO_I18N_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-i18n
+
diff -r bb7433e83da1 -r 463fb6e3087b devel/go-i18n/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-i18n/distinfo    Thu Aug 17 01:29:44 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:29:44 gavan Exp $
+
+SHA1 (go-i18n-1.8.1.tar.gz) = a98386e6f68713f12399e956a853fdfef35ab21b
+RMD160 (go-i18n-1.8.1.tar.gz) = 66fc62700c8de51aff6d4d037c11e4b4c96ca466
+SHA512 (go-i18n-1.8.1.tar.gz) = 0eaf5d0a1db3d13235491d188ed1326a31acd8dcaa89decb2435384f74e000aac3530182889256ca04b42e7f5c2db1dad3edf9a2f2966f83067d9fbdbf82c948
+Size (go-i18n-1.8.1.tar.gz) = 39655 bytes



Home | Main Index | Thread Index | Old Index