blob: 8ae8f06a5a438b591236f4d3d0496e02149e20c3 (
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
36
37
38
39
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
USE_RUBY="ruby23 ruby24 ruby25"
RUBY_FAKEGEM_EXTRADOC="README.md"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
inherit ruby-fakegem
DESCRIPTION="A library for implementing the client side of a SAML authorization"
HOMEPAGE="https://github.com/onelogin/ruby-saml"
LICENSE="MIT"
KEYWORDS="~amd64"
SLOT="0.8"
IUSE="doc"
ruby_add_rdepend ">=dev-ruby/nokogiri-1.5.10"
ruby_add_bdepend "test? ( dev-ruby/timecop dev-ruby/mocha dev-ruby/shoulda:0 )"
all_ruby_prepare() {
sed -i -e '/ruby-debug/d' \
-e '/bundler/I s:^:#:' \
-e '/simplecov/ s:^:#:' \
-e '/SimpleCov/,/^end/ s:^:#:' test/test_helper.rb || die
sed -ie -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die
sed -i -e '2i gem "shoulda", "~> 2.11"' test/test_helper.rb || die
sed -i -e '3irequire "onelogin/ruby-saml/http_error"' test/idp_metadata_parser_test.rb || die
}
|