mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-19 06:45:35 +01:00
31 lines
604 B
Bash
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"
|
|
}
|