diff options
Diffstat (limited to 'dev-ruby/unicode-display_width')
-rw-r--r-- | dev-ruby/unicode-display_width/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/unicode-display_width/metadata.xml | 8 | ||||
-rw-r--r-- | dev-ruby/unicode-display_width/unicode-display_width-1.7.0.ebuild | 27 |
3 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/unicode-display_width/Manifest b/dev-ruby/unicode-display_width/Manifest new file mode 100644 index 000000000000..d92eee58c49c --- /dev/null +++ b/dev-ruby/unicode-display_width/Manifest @@ -0,0 +1 @@ +DIST unicode-display_width-1.7.0.tar.gz 10822 BLAKE2B c3db387b9d61ba4ea9d5559824b22e40f173f9e9bcf7fdad3dba1edc36b39ae90276818bd54e74a6731bd2cb8c48b28e440d07f7e3cedbd8dc13441f79a2b56c SHA512 2b6d2b0118f4a2ad69e98fe2fac611ca94adc0dc59ad076083d0243c630a81a01d650965149a25feaf8986c262a5d55294e064361420e2140b53c5ced5fb1c77 diff --git a/dev-ruby/unicode-display_width/metadata.xml b/dev-ruby/unicode-display_width/metadata.xml new file mode 100644 index 000000000000..3df5c34efc94 --- /dev/null +++ b/dev-ruby/unicode-display_width/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> +</pkgmetadata> diff --git a/dev-ruby/unicode-display_width/unicode-display_width-1.7.0.ebuild b/dev-ruby/unicode-display_width/unicode-display_width-1.7.0.ebuild new file mode 100644 index 000000000000..9f37f42673d2 --- /dev/null +++ b/dev-ruby/unicode-display_width/unicode-display_width-1.7.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRAINSTALL="data" + +RUBY_FAKEGEM_GEMSPEC="unicode-display_width.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Adds String#display_width to get the display size using EastAsianWidth.txt" +HOMEPAGE="https://github.com/janlelis/unicode-display_width" +SRC_URI="https://github.com/janlelis/unicode-display_width/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +KEYWORDS="~amd64" +SLOT="$(ver_cut 1)" +IUSE="" + +all_ruby_prepare() { + # Avoid experimental emoji support for now + sed -i -e '/\[emoji\]/,/^ end/ s:^:#:' spec/display_width_spec.rb || die +} |