blob: 0a249a4f4fb97459dedeff10f45239ab339ce2da (
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
42
43
44
45
46
47
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/crack/crack-0.3.2-r1.ebuild,v 1.2 2014/04/05 14:18:21 mrueg Exp $
EAPI=5
USE_RUBY="ruby19 ruby20 jruby"
# workaround for ruby 1.9.2, sent upstream after 0.1.8
RUBY_FAKEGEM_TASK_TEST="-Ilib test"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_DOCDIR="rdoc"
RUBY_FAKEGEM_EXTRADOC="README.rdoc History"
inherit ruby-fakegem
DESCRIPTION="Really simple JSON and XML parsing, ripped from Merb and Rails."
HOMEPAGE="https://github.com/jnunemaker/crack"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
IUSE=""
ruby_add_bdepend "test? ( dev-ruby/shoulda dev-ruby/matchy )"
all_ruby_prepare() {
# By default this gem wants to use the fork of matchy from the
# same author of itself, but we don't package that (as it's
# neither released on gemcutter nor tagged). On the other hand it
# works fine with the mcmire gem that we package as
# dev-ruby/matchy.
sed -i -e 's:jnunemaker-matchy:mcmire-matchy:' test/test_helper.rb || die
}
each_ruby_prepare() {
case ${RUBY} in
*ruby19|*ruby20)
# Remove test suite that is broken for ruby19.
# Github Issues 26, 29, 32, 33.
rm test/json_test.rb || die
;;
*)
;;
esac
}
|