blob: adbf7a3b1917b5424e950f60ebfb4620c6ff3d25 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/yajl-ruby/yajl-ruby-0.7.6.ebuild,v 1.1 2010/05/23 22:35:47 flameeyes Exp $
EAPI=2
USE_RUBY="ruby18 ruby19 ree18"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
RUBY_FAKEGEM_TASK_TEST="spec"
# Needs jeweler for documentation building
RUBY_FAKEGEM_TASK_DOC=""
inherit ruby-fakegem
DESCRIPTION="Ruby C bindings to the Yajl JSON stream-based parser library"
HOMEPAGE="http://github.com/brianmario/yajl-ruby"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-libs/yajl"
DEPEND="${RDEPEND}"
ruby_add_bdepend "test? ( dev-ruby/rspec )"
all_ruby_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.patch
}
each_ruby_configure() {
${RUBY} -Cext extconf.rb || die "extconf.rb failed"
}
each_ruby_compile() {
emake -Cext CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "make extension failed"
cp ext/yajl_ext.so lib || die
}
|