diff options
Diffstat (limited to 'dev-ruby/rubypants/rubypants-0.2.0-r5.ebuild')
-rw-r--r-- | dev-ruby/rubypants/rubypants-0.2.0-r5.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/rubypants/rubypants-0.2.0-r5.ebuild b/dev-ruby/rubypants/rubypants-0.2.0-r5.ebuild new file mode 100644 index 000000000000..5d7ff73a58b1 --- /dev/null +++ b/dev-ruby/rubypants/rubypants-0.2.0-r5.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubypants/rubypants-0.2.0-r5.ebuild,v 1.1 2013/12/27 02:27:54 mrueg Exp $ + +EAPI=5 + +USE_RUBY="ruby18 ruby19 ruby20 ruby21 jruby" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_TASK_TEST="" + +inherit ruby-fakegem + +DESCRIPTION="A Ruby port of the SmartyPants PHP library." +HOMEPAGE="http://chneukirchen.org/repos/rubypants/README" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +all_ruby_prepare() { + # the metadata format is ancient, and has quite a bit of trouble, + # remove it and let it use a generated one. + rm ../metadata || die +} + +each_ruby_install() { + ruby_fakegem_install_gemspec + + ruby_fakegem_newins rubypants.rb lib/rubypants.rb +} + +each_ruby_test() { + # The rakefile doesn't really implement it properly, so simply + # replace it here. + ${RUBY} -I. test_rubypants.rb || die "tests failed" +} |