git: d3da5f9d5981 - main - devel/rubygem-gettext-setup0: Add rubygem-gettext-setup0 0.34
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Jan 2023 13:05:16 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d3da5f9d5981175bffc4ac6f0952843e55eee41f commit d3da5f9d5981175bffc4ac6f0952843e55eee41f Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-01-30 12:21:45 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-01-30 12:58:55 +0000 devel/rubygem-gettext-setup0: Add rubygem-gettext-setup0 0.34 - Add PORTSCOUT --- devel/Makefile | 1 + devel/rubygem-gettext-setup0/Makefile | 23 +++++++++++++++++++++++ devel/rubygem-gettext-setup0/distinfo | 3 +++ devel/rubygem-gettext-setup0/files/patch-gemspec | 13 +++++++++++++ devel/rubygem-gettext-setup0/pkg-descr | 6 ++++++ 5 files changed, 46 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 12a1d1c67df8..c1d0cd7c03b9 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6638,6 +6638,7 @@ SUBDIR += rubygem-getoptlong SUBDIR += rubygem-gettext SUBDIR += rubygem-gettext-setup + SUBDIR += rubygem-gettext-setup0 SUBDIR += rubygem-gettext_i18n_rails SUBDIR += rubygem-gettext_i18n_rails18 SUBDIR += rubygem-gettext_i18n_rails_js-rails5 diff --git a/devel/rubygem-gettext-setup0/Makefile b/devel/rubygem-gettext-setup0/Makefile new file mode 100644 index 000000000000..8b2416e0465c --- /dev/null +++ b/devel/rubygem-gettext-setup0/Makefile @@ -0,0 +1,23 @@ +PORTNAME= gettext-setup +PORTVERSION= 0.34 +CATEGORIES= devel rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= 0 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Set up i18n for Ruby projects +WWW= https://github.com/puppetlabs/gettext-setup-gem + +LICENSE= APACHE20 + +RUN_DEPENDS= rubygem-fast_gettext1>=1.1<2:devel/rubygem-fast_gettext1 \ + rubygem-gettext>=3.0.2:devel/rubygem-gettext \ + rubygem-locale>=0:devel/rubygem-locale + +USES= gem + +NO_ARCH= yes + +PORTSCOUT= limit:^0\. + +.include <bsd.port.mk> diff --git a/devel/rubygem-gettext-setup0/distinfo b/devel/rubygem-gettext-setup0/distinfo new file mode 100644 index 000000000000..adf2b0fbe8fb --- /dev/null +++ b/devel/rubygem-gettext-setup0/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1579945483 +SHA256 (rubygem/gettext-setup-0.34.gem) = ea9d6f6be56908d54af8c7bb246f133fa9f8f634011df135c0a87520be57d6ed +SIZE (rubygem/gettext-setup-0.34.gem) = 18432 diff --git a/devel/rubygem-gettext-setup0/files/patch-gemspec b/devel/rubygem-gettext-setup0/files/patch-gemspec new file mode 100644 index 000000000000..e3f238d2045f --- /dev/null +++ b/devel/rubygem-gettext-setup0/files/patch-gemspec @@ -0,0 +1,13 @@ +--- gettext-setup.gemspec.orig 2023-01-05 18:52:17 UTC ++++ gettext-setup.gemspec +@@ -21,8 +21,8 @@ Gem::Specification.new do |s| + + s.specification_version = 4 + +- s.add_runtime_dependency(%q<fast_gettext>.freeze, ["~> 1.1.0"]) +- s.add_runtime_dependency(%q<gettext>.freeze, [">= 3.0.2", "< 3.3.0"]) ++ s.add_runtime_dependency(%q<fast_gettext>.freeze, ["~> 1.1"]) ++ s.add_runtime_dependency(%q<gettext>.freeze, [">= 3.0.2"]) + s.add_runtime_dependency(%q<locale>.freeze, [">= 0"]) + s.add_development_dependency(%q<bundler>.freeze, [">= 0"]) + s.add_development_dependency(%q<rake>.freeze, [">= 0"]) diff --git a/devel/rubygem-gettext-setup0/pkg-descr b/devel/rubygem-gettext-setup0/pkg-descr new file mode 100644 index 000000000000..a8bc6c8a0e18 --- /dev/null +++ b/devel/rubygem-gettext-setup0/pkg-descr @@ -0,0 +1,6 @@ +gettext-setup is a simple gem to set up i18n for Ruby projects (including +Sinatra web apps) using gettext and fast gettext. + +This project sets the default locale to English. If the user has set a different +locale in their browser preferences, and we support the user's preferred locale, +strings and data formatting will be customized for that locale.