diff options
Diffstat (limited to 'dev-ruby/date_validator/date_validator-0.8.0.ebuild')
-rw-r--r-- | dev-ruby/date_validator/date_validator-0.8.0.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/date_validator/date_validator-0.8.0.ebuild b/dev-ruby/date_validator/date_validator-0.8.0.ebuild new file mode 100644 index 000000000000..126bff1635d0 --- /dev/null +++ b/dev-ruby/date_validator/date_validator-0.8.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby19 ruby20 ruby21" + +RUBY_FAKEGEM_TASK_TEST="test" + +RUBY_FAKEGEM_TASK_DOC="docs" +RUBY_FAKEGEM_EXTRADOC="Readme.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +# if ever needed +#GITHUB_USER="codegram" +#GITHUB_PROJECT="${PN}" +#RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*" + +inherit ruby-fakegem + +DESCRIPTION="Simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails 3" +HOMEPAGE="https://github.com/codegram/date_validator" + +LICENSE="MIT" +SLOT="3" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/activemodel-3.0:* +" + +ruby_add_bdepend " + test? ( + dev-ruby/minitest + >=dev-ruby/tzinfo-0.3 + >=dev-ruby/activesupport-3.0 + ) + doc? ( dev-ruby/yard )" + +all_ruby_prepare() { + sed -i \ + -e '/git ls-files/d' \ + ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i \ + -e '/[Bb]undler/s/^/#/' Rakefile || die + # Fix tests + sed -i -e "1irequire 'active_support'" test/test_helper.rb || die +} |