aboutsummaryrefslogtreecommitdiff
blob: 09e894af344e21342c1ddbc3711e5a5160780726 (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
40
41
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
USE_RUBY="ruby19"

RUBY_FAKEGEM_TASK_TEST="spec"
RUBY_FAKEGEM_TASK_DOC="yard"

RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="README.rdoc"

inherit ruby-fakegem versionator

DESCRIPTION="DataMapper plugin for serializing Resources and Collections"
HOMEPAGE="http://datamapper.org/"

RUBY_FAKEGEM_GEMSPEC="dm-serializer.gemspec"

LICENSE="MIT"
SLOT="$(get_version_component_range 1-2)"
KEYWORDS="~amd64"
IUSE=""

ruby_add_bdepend "doc? ( dev-ruby/jeweler >=dev-ruby/yard-0.8.7 )"
ruby_add_bdepend "test? (
	dev-ruby/dm-migrations:1.2
	=dev-ruby/dm-validations-1.2.0
	dev-ruby/jeweler
	dev-ruby/rspec:0 )"

ruby_add_rdepend "
	dev-ruby/dm-core:1.2
	dev-ruby/multi_json"

all_ruby_prepare() {
	sed -i -e "s/gem 'jeweler'/#gem 'jeweler'/g" Rakefile || die
	sed -i -e '/fastercsv/d' dm-serializer.gemspec || die
	sed -i -e '/json_pure/d' dm-serializer.gemspec || die
}