summaryrefslogtreecommitdiff
blob: 842f890b4891a49348ae365b97d7b78b6f3ec016 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/delocalize/delocalize-0.3.1.ebuild,v 1.1 2012/02/28 16:53:41 flameeyes Exp $

EAPI=4

# ruby19 → tests failure related to DST
# jruby → timecop fails badly, and the
USE_RUBY="ruby18 ree18"

RUBY_FAKEGEM_EXTRADOC="README.markdown"

RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"

GITHUB_USER="clemens"
GITHUB_PROJECT="${PN}"
RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"

inherit ruby-fakegem

DESCRIPTION="A tool for parsing localized dates/times and numbers"
HOMEPAGE="http://github.com/clemens/delocalize"

SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/v${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

ruby_add_rdepend ">=dev-ruby/rails-3"

ruby_add_bdepend "
	test? (
		>=dev-ruby/sqlite3-ruby-1.3.4-r1
		dev-ruby/timecop
	)"