diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-03-11 19:54:07 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-03-11 20:35:21 +0100 |
commit | fcea5d8e150bb5fb9e09fb15d456230932e9b7c0 (patch) | |
tree | 23732af0afbcdc8d315b84792ff14d929d73c278 /dev-ruby/optimist | |
parent | app-i18n/scim-1.4.18: alpha stable, bug 653218 (diff) | |
download | gentoo-fcea5d8e150bb5fb9e09fb15d456230932e9b7c0.tar.gz gentoo-fcea5d8e150bb5fb9e09fb15d456230932e9b7c0.tar.bz2 gentoo-fcea5d8e150bb5fb9e09fb15d456230932e9b7c0.zip |
dev-ruby/optimist: initial import of 3.0.0
This packaged is a new, renamed version of dev-ruby/trollop, so all
trollop keywords have been kept.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/optimist')
-rw-r--r-- | dev-ruby/optimist/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/optimist/metadata.xml | 15 | ||||
-rw-r--r-- | dev-ruby/optimist/optimist-3.0.0.ebuild | 29 |
3 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/optimist/Manifest b/dev-ruby/optimist/Manifest new file mode 100644 index 000000000000..bd19de733bb8 --- /dev/null +++ b/dev-ruby/optimist/Manifest @@ -0,0 +1 @@ +DIST optimist-3.0.0.gem 29696 BLAKE2B d078a21fc95d64827e3f9a4539339ba3e3ba9f9649cb70d4e5a830f2523b02c4bb6aa1dca159a913d852aa2a320002beb6276d920ae1804bf65c9cf1535fc341 SHA512 1fcdc4dd01fb26d5b1d181913ad28314df05e60277bcf73b98e04a7463430a6c73396fb729e3cf34bc89e2eb8387d4d3294e93fcd530129a7bcd7efdcef5223f diff --git a/dev-ruby/optimist/metadata.xml b/dev-ruby/optimist/metadata.xml new file mode 100644 index 000000000000..5e9369be77e1 --- /dev/null +++ b/dev-ruby/optimist/metadata.xml @@ -0,0 +1,15 @@ +<?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> + <longdescription> + Optimist is a commandline option parser for Ruby that just gets + out of your way. One line of code per option is all you need to + write. For that, you get a nice automatically-generated help page, + robust option parsing, command subcompletion, and sensible + defaults for everything you don't specify. + </longdescription> +</pkgmetadata> diff --git a/dev-ruby/optimist/optimist-3.0.0.ebuild b/dev-ruby/optimist/optimist-3.0.0.ebuild new file mode 100644 index 000000000000..2da197f04833 --- /dev/null +++ b/dev-ruby/optimist/optimist-3.0.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23 ruby24 ruby25 ruby26" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="FAQ.txt History.txt README.md" + +inherit ruby-fakegem + +DESCRIPTION="A commandline option parser for Ruby that just gets out of your way." +HOMEPAGE="https://manageiq.github.io/optimist/" +LICENSE="MIT" + +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +SLOT="3" +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/chronic )" + +all_ruby_prepare() { + sed -i -e '/bundle/ s:^:#:' Rakefile || die +} + +each_ruby_test() { + MUTANT=true ${RUBY} -S rake test || die "Tests failed." +} |