You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
# ruby23 -> fails tests
|
|
USE_RUBY="ruby22"
|
|
|
|
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
|
RUBY_FAKEGEM_DOCDIR="doc"
|
|
RUBY_FAKEGEM_EXTRADOC="CHANGES README"
|
|
|
|
inherit ruby-fakegem
|
|
|
|
DESCRIPTION="Daylight-savings aware timezone library"
|
|
HOMEPAGE="http://tzinfo.github.io/"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 ~arm ~hppa ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
IUSE=""
|
|
|
|
RDEPEND=""
|
|
DEPEND=""
|
|
|
|
all_ruby_prepare() {
|
|
# With rubygems 1.3.1 we get the following warning
|
|
# warning: Insecure world writable dir /var/tmp in LOAD_PATH, mode 041777
|
|
# when running the test_get_tainted_not_loaded test.
|
|
sed -i \
|
|
-e '/^ def test_get_tainted_not_loaded/, /^ end/ s:^:#:' \
|
|
"${S}"/test/tc_timezone.rb || die "unable to sed out the test"
|
|
}
|
|
|
|
each_ruby_test() {
|
|
TZ='America/Los_Angeles' ${RUBY} -I. -S testrb-2 test/tc_*.rb || die
|
|
}
|