| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/unf/unf-0.0.5.ebuild,v 1.2 2012/08/14 16:58:13 flameeyes Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
USE_RUBY="ruby18 ruby19 ree18 jruby"
|
| 8 |
|
| 9 |
RUBY_FAKEGEM_RECIPE_TEST="none"
|
| 10 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 11 |
RUBY_FAKEGEM_EXTRADOC="README.md"
|
| 12 |
|
| 13 |
inherit ruby-fakegem
|
| 14 |
|
| 15 |
DESCRIPTION="A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby."
|
| 16 |
HOMEPAGE="https://github.com/knu/ruby-unf"
|
| 17 |
|
| 18 |
LICENSE="BSD-2"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="~amd64"
|
| 21 |
IUSE="test"
|
| 22 |
|
| 23 |
# jruby already has support for UNF so it does not need the extension.
|
| 24 |
USE_RUBY=${USE_RUBY/jruby/} ruby_add_rdepend "dev-ruby/unf_ext"
|
| 25 |
|
| 26 |
ruby_add_bdepend "
|
| 27 |
test? (
|
| 28 |
>=dev-ruby/test-unit-2.5.1-r1
|
| 29 |
dev-ruby/shoulda
|
| 30 |
)"
|
| 31 |
|
| 32 |
all_ruby_prepare() {
|
| 33 |
sed -i -e '/bundler/,/end/ s:^:#:' test/helper.rb || die
|
| 34 |
}
|
| 35 |
|
| 36 |
each_ruby_test() {
|
| 37 |
ruby-ng_testrb-2 test/test_*.rb
|
| 38 |
}
|