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