33 lines
915 B
Bash
33 lines
915 B
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/calendar_date_select/calendar_date_select-1.16.4.ebuild,v 1.1 2012/06/19 04:41:24 graaff Exp $
|
|
|
|
EAPI=4
|
|
|
|
USE_RUBY="ruby18 ree18 jruby"
|
|
|
|
RUBY_FAKEGEM_TASK_TEST=""
|
|
RUBY_FAKEGEM_TASK_DOC=""
|
|
RUBY_FAKEGEM_EXTRADOC="README.txt History.txt"
|
|
|
|
RUBY_FAKEGEM_EXTRAINSTALL="public"
|
|
|
|
inherit ruby-fakegem
|
|
|
|
DESCRIPTION="A popular and flexible JavaScript DatePicker for RubyOnRails"
|
|
HOMEPAGE="http://code.google.com/p/calendardateselect/"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="test"
|
|
|
|
ruby_add_bdepend "test? ( dev-ruby/rspec:0 >=dev-ruby/actionpack-2.2.0:2.3 >=dev-ruby/activesupport-2.3.5:2.3 )"
|
|
|
|
all_ruby_prepare() {
|
|
sed -i -e 's/>= 2.2.0/~> 2.2/' spec/spec_helper.rb || die
|
|
}
|
|
|
|
each_ruby_test() {
|
|
${RUBY} -S spec spec/calendar_date_select/* || die "Tests failed."
|
|
}
|