summaryrefslogtreecommitdiff
path: root/dev-ruby/unicode-display_width/unicode-display_width-2.5.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-10-03 06:33:24 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-10-03 06:33:24 +0000
commit1fdedb03cef0f4e233244a383d3347bca36ee3a8 (patch)
tree383d362ffc34d5ede7bed65132d7233d46ae5c32 /dev-ruby/unicode-display_width/unicode-display_width-2.5.0.ebuild
parent642f85a7182a4d58010123c6aa71cde1ea378d53 (diff)
downloadbaldeagleos-repo-1fdedb03cef0f4e233244a383d3347bca36ee3a8.tar.gz
baldeagleos-repo-1fdedb03cef0f4e233244a383d3347bca36ee3a8.tar.xz
baldeagleos-repo-1fdedb03cef0f4e233244a383d3347bca36ee3a8.zip
Adding metadata
Diffstat (limited to 'dev-ruby/unicode-display_width/unicode-display_width-2.5.0.ebuild')
-rw-r--r--dev-ruby/unicode-display_width/unicode-display_width-2.5.0.ebuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-ruby/unicode-display_width/unicode-display_width-2.5.0.ebuild b/dev-ruby/unicode-display_width/unicode-display_width-2.5.0.ebuild
new file mode 100644
index 000000000000..566cc9a8e3fc
--- /dev/null
+++ b/dev-ruby/unicode-display_width/unicode-display_width-2.5.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+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 ~arm64"
+SLOT="$(ver_cut 1)"
+IUSE=""
+
+all_ruby_prepare() {
+ # Avoid experimental emoji support for now
+ sed -e '/\[emoji\]/,/^ end/ s:^:#:' \
+ -e '/Config object based API/,/^end/ s:^:#:' \
+ -i spec/display_width_spec.rb || die
+}