pentoo-overlay/dev-ruby/oj/oj-2.14.2.ebuild
2015-12-29 15:10:23 +08:00

31 lines
604 B
Bash

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby21"
inherit ruby-fakegem
DESCRIPTION="The fastest JSON parser and object serializer"
HOMEPAGE="http://rubygems.org/gems/oj"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
ruby_add_bdepend "
test? ( dev-ruby/minitest:5
dev-ruby/rails:4
=dev-ruby/rake-compiler-0.9* )"
each_ruby_configure() {
${RUBY} -C ext/oj extconf.rb || die "extconf failed"
}
each_ruby_compile() {
emake V=1 -C ext/oj
cp ext/oj/oj$(get_modname) lib/oj || die "cp failed"
}