diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-07-04 19:15:36 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-07-05 06:40:32 +0200 |
commit | 1406d6f01558bafa48c4adb317c410cede948bf3 (patch) | |
tree | 8433a37d01f3770f13b785f241dba9f50790cc46 /dev-ruby/gettext-setup | |
parent | dev-ruby/gpgme: enable ruby32 (diff) | |
download | gentoo-1406d6f01558bafa48c4adb317c410cede948bf3.tar.gz gentoo-1406d6f01558bafa48c4adb317c410cede948bf3.tar.bz2 gentoo-1406d6f01558bafa48c4adb317c410cede948bf3.zip |
dev-ruby/gettext-setup: add 1.1.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/gettext-setup')
-rw-r--r-- | dev-ruby/gettext-setup/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/gettext-setup/gettext-setup-1.1.0.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/gettext-setup/Manifest b/dev-ruby/gettext-setup/Manifest index 66ad0258d02f..b57b1f42f7d0 100644 --- a/dev-ruby/gettext-setup/Manifest +++ b/dev-ruby/gettext-setup/Manifest @@ -1 +1,2 @@ DIST gettext-setup-0.34.tar.gz 16010 BLAKE2B 3da3810bba89205a0a2856760b7fbe7a415207ccc45a3cd2e8aad658131dc751b1ad44178beaee2d0c67164a5e3e7b1ee0aba1c4e1b099f77643d72aec753de3 SHA512 479e2a79768923796960b45f1e3b3963939a4166c636ad4c3af60840a5c8449fa7fff81271b4c938e5a441146b25fcdd9fd8bb60e1df7ef31bb39efc56577572 +DIST gettext-setup-1.1.0.tar.gz 16333 BLAKE2B a2895113db23c1235bcbc8acc01751a3d6ba0a7eedffb5c912cec21140eed076489fd7933a88a4fce4bcc165119a919c6671cd449b9e8f1984463d8c941174e7 SHA512 1ef7987ac24ca8cc95eb631d81552f35d153fd60132283dc4979473c149df8c09c8ce7a10caf53ff61f59c7c25a3921d3a367264c5a827ed491844b48def2307 diff --git a/dev-ruby/gettext-setup/gettext-setup-1.1.0.ebuild b/dev-ruby/gettext-setup/gettext-setup-1.1.0.ebuild new file mode 100644 index 000000000000..7f5caf60f128 --- /dev/null +++ b/dev-ruby/gettext-setup/gettext-setup-1.1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A gem to ease i18n" +HOMEPAGE="https://github.com/puppetlabs/gettext-setup-gem" +SRC_URI="https://github.com/puppetlabs/gettext-setup-gem/archive/${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="${PN}-gem-${PV}" + +LICENSE="Apache-2.0" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="" + +RDEPEND+=" dev-vcs/git" +DEPEND+=" test? ( dev-vcs/git )" + +ruby_add_rdepend " + >=dev-ruby/fast_gettext-2.1:2 + >=dev-ruby/ruby-gettext-3.4 + dev-ruby/locale +" + +all_ruby_prepare() { + sed -e "s/spec.version.*$/spec.version = '${PV}'/" \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -i -e '/simplecov/,/^end/ s:^:#: ; 1irequire "date"' spec/spec_helper.rb || die + + # Avoid spec with specific locale requirements + sed -i -e '/can clear the locale/,/^ end/ s:^:#:' spec/lib/gettext-setup/gettext_setup_spec.rb || die +} |