| 1 |
# Copyright 1999-2011 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubypants/rubypants-0.2.0-r2.ebuild,v 1.3 2011/06/13 10:19:15 graaff Exp $ |
| 4 |
|
| 5 |
EAPI=2 |
| 6 |
|
| 7 |
USE_RUBY="ruby18 ruby19 jruby ree18" |
| 8 |
|
| 9 |
RUBY_FAKEGEM_TASK_DOC="" |
| 10 |
RUBY_FAKEGEM_TASK_TEST="" |
| 11 |
|
| 12 |
inherit ruby-fakegem |
| 13 |
|
| 14 |
DESCRIPTION="A Ruby port of the SmartyPants PHP library." |
| 15 |
HOMEPAGE="http://chneukirchen.org/repos/rubypants/README" |
| 16 |
|
| 17 |
LICENSE="Ruby" |
| 18 |
SLOT="0" |
| 19 |
KEYWORDS="~amd64 ~x86" |
| 20 |
IUSE="" |
| 21 |
|
| 22 |
ruby_add_bdepend "test? ( virtual/ruby-test-unit )" |
| 23 |
|
| 24 |
each_ruby_install() { |
| 25 |
ruby_fakegem_install_gemspec |
| 26 |
|
| 27 |
ruby_fakegem_newins rubypants.rb lib/rubypants.rb |
| 28 |
} |
| 29 |
|
| 30 |
each_ruby_test() { |
| 31 |
# The rakefile doesn't really implement it properly, so simply |
| 32 |
# replace it here. |
| 33 |
${RUBY} -I. test_rubypants.rb || die "tests failed" |
| 34 |
} |