diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ruby/shorturl/shorturl-1.0.0-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ruby/shorturl/shorturl-1.0.0-r2.ebuild')
-rw-r--r-- | dev-ruby/shorturl/shorturl-1.0.0-r2.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/shorturl/shorturl-1.0.0-r2.ebuild b/dev-ruby/shorturl/shorturl-1.0.0-r2.ebuild new file mode 100644 index 000000000000..403ddc4b89d3 --- /dev/null +++ b/dev-ruby/shorturl/shorturl-1.0.0-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_TASK_DOC="doc" + +RUBY_FAKEGEM_EXTRADOC="ChangeLog.txt README.rdoc TODO.rdoc" + +inherit ruby-fakegem eutils + +DESCRIPTION="A very simple library to use URL shortening services such as TinyURL or RubyURL" +HOMEPAGE="http://shorturl.rubyforge.org/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~x86-fbsd ~x86-macos" +IUSE="" + +# All tests require network connectivity. +RESTRICT="test" + +each_ruby_test() { + ${RUBY} -Ilib:test test/ts_all.rb || die "tests failed" +} + +all_ruby_install() { + all_fakegem_install + + if use doc; then + # If the doc build fails, the doc directory might not exist + pushd doc &>/dev/null || die "pushd doc failed" + dohtml -r . + popd &>/dev/null + fi +} |