summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-05-30 01:49:29 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-05-30 01:49:29 +0000
commit257e8f3b5e550d8f0a76a59544f5136253b9851e (patch)
treef1df3be11ccd388df81d2578f7d5adcc76d1ed99
parentAdd rubygem-gettext_i18n_rails 1.8.0 (diff)
Add rubygem-gettext_i18n_rails_js 1.3.0
GettextI18nRailsJs extends gettext_i18n_rails, making your .PO files available to client side Javascript as JSON. It will find translations inside your .js, .coffee, .handlebars and .mustache files, then it will create JSON versions of your .PO files so you can serve them with the rest of your assets, thus letting you access all your translations offline from client side Javascript. WWW: https://github.com/webhippie/gettext_i18n_rails_js
Notes
Notes: svn path=/head/; revision=442048
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-gettext_i18n_rails_js/Makefile24
-rw-r--r--devel/rubygem-gettext_i18n_rails_js/distinfo3
-rw-r--r--devel/rubygem-gettext_i18n_rails_js/pkg-descr7
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 929afe654ecf..144b9dd075e2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5318,6 +5318,7 @@
SUBDIR += rubygem-gettext
SUBDIR += rubygem-gettext-setup
SUBDIR += rubygem-gettext_i18n_rails
+ SUBDIR += rubygem-gettext_i18n_rails_js
SUBDIR += rubygem-gh
SUBDIR += rubygem-gibbler
SUBDIR += rubygem-gio2
diff --git a/devel/rubygem-gettext_i18n_rails_js/Makefile b/devel/rubygem-gettext_i18n_rails_js/Makefile
new file mode 100644
index 000000000000..e32cf8145b7e
--- /dev/null
+++ b/devel/rubygem-gettext_i18n_rails_js/Makefile
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= gettext_i18n_rails_js
+PORTVERSION= 1.3.0
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Make gettext_i18n_rails .po files as JSON
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= rubygem-gettext>=3.0.2:devel/rubygem-gettext \
+ rubygem-gettext_i18n_rails>=0.7.1:devel/rubygem-gettext_i18n_rails \
+ rubygem-po_to_json>=1.0.0:converters/rubygem-po_to_json \
+ rubygem-rails4>=3.2.0:www/rubygem-rails4
+
+NO_ARCH= yes
+USE_RUBY= yes
+USES= gem
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-gettext_i18n_rails_js/distinfo b/devel/rubygem-gettext_i18n_rails_js/distinfo
new file mode 100644
index 000000000000..739f5b181914
--- /dev/null
+++ b/devel/rubygem-gettext_i18n_rails_js/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1496105567
+SHA256 (rubygem/gettext_i18n_rails_js-1.3.0.gem) = 5d10afe4be3639bff78c50a56768c20f39aecdabc580c08aa45573911c2bd687
+SIZE (rubygem/gettext_i18n_rails_js-1.3.0.gem) = 24576
diff --git a/devel/rubygem-gettext_i18n_rails_js/pkg-descr b/devel/rubygem-gettext_i18n_rails_js/pkg-descr
new file mode 100644
index 000000000000..a7790d053d39
--- /dev/null
+++ b/devel/rubygem-gettext_i18n_rails_js/pkg-descr
@@ -0,0 +1,7 @@
+GettextI18nRailsJs extends gettext_i18n_rails, making your .PO files available
+to client side Javascript as JSON. It will find translations inside your .js,
+.coffee, .handlebars and .mustache files, then it will create JSON versions of
+your .PO files so you can serve them with the rest of your assets, thus letting
+you access all your translations offline from client side Javascript.
+
+WWW: https://github.com/webhippie/gettext_i18n_rails_js