git: f81151b98dee - main - devel/rubygem-i18n-tasks-rails61: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Nov 2022 19:25:28 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f81151b98dee21afbe220196e7b73403b3efb3c2
commit f81151b98dee21afbe220196e7b73403b3efb3c2
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-11-22 19:23:38 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-11-22 19:23:38 +0000
devel/rubygem-i18n-tasks-rails61: New port
i18n-tasks helps you find and manage missing and unused translations.
This gem analyses code statically for key usages, such as
I18n.t('some.key'), in order to:
* Report keys that are missing or unused.
* Pre-fill missing keys, optionally from Google Translate or DeepL Pro.
* Remove unused keys.
Thus addressing the two main problems of i18n gem design:
* Missing keys only blow up at runtime.
* Keys no longer in use may accumulate and introduce overhead, without
you knowing it.
Sponsored by: Nepustil
---
devel/Makefile | 1 +
devel/rubygem-i18n-tasks-rails61/Makefile | 32 ++++++++++++++++++++++++++++++
devel/rubygem-i18n-tasks-rails61/distinfo | 3 +++
devel/rubygem-i18n-tasks-rails61/pkg-descr | 14 +++++++++++++
4 files changed, 50 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 3871e06ad9d7..5be02bf3c3cb 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6629,6 +6629,7 @@
SUBDIR += rubygem-holidays
SUBDIR += rubygem-http_accept_language
SUBDIR += rubygem-i18n
+ SUBDIR += rubygem-i18n-tasks-rails61
SUBDIR += rubygem-i18n_data
SUBDIR += rubygem-icalendar
SUBDIR += rubygem-ice_cube
diff --git a/devel/rubygem-i18n-tasks-rails61/Makefile b/devel/rubygem-i18n-tasks-rails61/Makefile
new file mode 100644
index 000000000000..18dba656f7ae
--- /dev/null
+++ b/devel/rubygem-i18n-tasks-rails61/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= i18n-tasks
+PORTVERSION= 1.0.12
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+PKGNAMESUFFIX= -rails61
+
+MAINTAINER= bofh@FreeBSD.org
+COMMENT= i18n-tasks helps managing missing and unused translation
+WWW= https://github.com/glebm/i18n-tasks
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= rubygem-activesupport61>=4.0.2:devel/rubygem-activesupport61 \
+ rubygem-ast>=2.1.0:devel/rubygem-ast \
+ rubygem-better_html-rails61>=1.0<3.0:devel/rubygem-better_html-rails61 \
+ rubygem-erubi>0:www/rubygem-erubi \
+ rubygem-highline>=2.0.0:devel/rubygem-highline \
+ rubygem-i18n>0:devel/rubygem-i18n \
+ rubygem-parser>=2.2.3.0:devel/rubygem-parser \
+ rubygem-rails-i18n-rails61>0:devel/rubygem-rails-i18n-rails61 \
+ rubygem-rainbow>=2.2.2<4.0:devel/rubygem-rainbow \
+ rubygem-terminal-table>=1.5.1:textproc/rubygem-terminal-table
+
+USES= gem
+USE_RUBY= yes
+
+NO_ARCH= yes
+
+PLIST_FILES= bin/i18n-tasks
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-i18n-tasks-rails61/distinfo b/devel/rubygem-i18n-tasks-rails61/distinfo
new file mode 100644
index 000000000000..2d9df3383d13
--- /dev/null
+++ b/devel/rubygem-i18n-tasks-rails61/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1669034932
+SHA256 (rubygem/i18n-tasks-1.0.12.gem) = 3f20b0be9f09e3c5b5efdedcfad3ceaf54c379efd508f9e33671b0cfb166f3a7
+SIZE (rubygem/i18n-tasks-1.0.12.gem) = 66048
diff --git a/devel/rubygem-i18n-tasks-rails61/pkg-descr b/devel/rubygem-i18n-tasks-rails61/pkg-descr
new file mode 100644
index 000000000000..483cec0aeea7
--- /dev/null
+++ b/devel/rubygem-i18n-tasks-rails61/pkg-descr
@@ -0,0 +1,14 @@
+i18n-tasks helps you find and manage missing and unused translations.
+
+This gem analyses code statically for key usages, such as I18n.t('some.key'), in
+order to:
+
+* Report keys that are missing or unused.
+* Pre-fill missing keys, optionally from Google Translate or DeepL Pro.
+* Remove unused keys.
+
+Thus addressing the two main problems of i18n gem design:
+
+* Missing keys only blow up at runtime.
+* Keys no longer in use may accumulate and introduce overhead, without you
+knowing it.