summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2018-06-21 06:31:20 +0200
committerHans de Graaff <graaff@gentoo.org>2018-06-21 06:31:20 +0200
commit9a069cd9a266c524d4fe77277bf7a7e9e11daa51 (patch)
treeece7b396f72a592a84c1c19bc172bd7f4b38d9e0 /dev-ruby/highline
parentdev-ruby/uglifier: add 4.1.12 (diff)
downloadgentoo-9a069cd9a266c524d4fe77277bf7a7e9e11daa51.tar.gz
gentoo-9a069cd9a266c524d4fe77277bf7a7e9e11daa51.tar.bz2
gentoo-9a069cd9a266c524d4fe77277bf7a7e9e11daa51.zip
dev-ruby/highline: add 2.0.0
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-ruby/highline')
-rw-r--r--dev-ruby/highline/Manifest1
-rw-r--r--dev-ruby/highline/highline-2.0.0.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/highline/Manifest b/dev-ruby/highline/Manifest
index 77246622fa0..6a6e090f222 100644
--- a/dev-ruby/highline/Manifest
+++ b/dev-ruby/highline/Manifest
@@ -1 +1,2 @@
DIST highline-1.7.8.gem 224768 BLAKE2B 683fa70e3ea4bf697ab5a1cd40da2528e2586f8fe12fb0ffb799938f2bfa2efe64fe1424c0ee1f90ae3df69f86a92f44eebcbb2ab34f18b3c4cdbb143e596067 SHA512 85f57ab732009cc961b824e252f0b65bbe7c0a8c97849d453773a331016b2ea8fa0efe393bc1a0073eae6d3cf523d97b9434cd73bdceed55bc069be0b6f4b41d
+DIST highline-2.0.0.tar.gz 233750 BLAKE2B ac696d63aaf15309a8235d9a0c25e4722b257cda154bd00a420675e1bccedb5f06122f3532ac200685f22753783152255194751f2e3bdc908f80b278f325328c SHA512 d1a96233ffb97b2985e7afebd3755d1b28d89ac2d84a3ec8c04450680c1149f1fcc46f0221242768a2aafa8bfbde4f5a6f3951013c0b5d25a3aa88f1e571b4d8
diff --git a/dev-ruby/highline/highline-2.0.0.ebuild b/dev-ruby/highline/highline-2.0.0.ebuild
new file mode 100644
index 00000000000..6a3821d4835
--- /dev/null
+++ b/dev-ruby/highline/highline-2.0.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md TODO"
+
+inherit ruby-fakegem eapi7-ver
+
+DESCRIPTION="Highline is a high-level command-line IO library for ruby"
+HOMEPAGE="https://github.com/JEG2/highline"
+SRC_URI="https://github.com/JEG2/highline/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+IUSE=""
+LICENSE="|| ( GPL-2 Ruby )"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+
+all_ruby_prepare() {
+ # fix up gemspec file not to call git
+ sed -i -e '/git ls-files/d' highline.gemspec || die
+
+ # Avoid unneeded dependencies
+ sed -i -e '/\(bundler\|code_statistics\)/ s:^:#:' \
+ -e '/PackageTask/,/end/ s:^:#:' Rakefile || die
+ sed -i -e '/simplecov/ s:^:#:' test/test_helper.rb || die
+
+ # Remove almost empty doc directory to allow rdoc recipe to work
+ rm -rf doc || die
+}