| 1 |
flameeyes |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
ago |
1.7 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fast_xs/fast_xs-0.8.0.ebuild,v 1.6 2012/07/08 16:22:54 jer Exp $
|
| 4 |
flameeyes |
1.1 |
|
| 5 |
|
|
EAPI=4
|
| 6 |
|
|
|
| 7 |
flameeyes |
1.2 |
USE_RUBY="ruby18 ree18 ruby19"
|
| 8 |
flameeyes |
1.1 |
|
| 9 |
|
|
RUBY_FAKEGEM_TASK_DOC="docs"
|
| 10 |
|
|
RUBY_FAKEGEM_DOCDIR="doc"
|
| 11 |
|
|
|
| 12 |
|
|
RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc"
|
| 13 |
|
|
|
| 14 |
|
|
inherit ruby-fakegem
|
| 15 |
|
|
|
| 16 |
|
|
DESCRIPTION="fast_xs text escaping library ruby bindings."
|
| 17 |
|
|
HOMEPAGE="http://fast-xs.rubyforge.org/"
|
| 18 |
|
|
|
| 19 |
|
|
LICENSE="MIT"
|
| 20 |
|
|
SLOT="0"
|
| 21 |
ago |
1.7 |
KEYWORDS="amd64 ~hppa ~ppc64 ~x86 ~x86-fbsd"
|
| 22 |
flameeyes |
1.1 |
IUSE=""
|
| 23 |
|
|
|
| 24 |
|
|
ruby_add_bdepend "doc? ( >=dev-ruby/hoe-2.3.2 )"
|
| 25 |
flameeyes |
1.5 |
ruby_add_bdepend "test? (
|
| 26 |
|
|
>=dev-ruby/hoe-2.3.2
|
| 27 |
|
|
virtual/ruby-test-unit
|
| 28 |
|
|
dev-ruby/rack
|
| 29 |
|
|
)"
|
| 30 |
|
|
|
| 31 |
|
|
USE_RUBY="ruby18" ruby_add_bdepend "test? ( www-servers/mongrel )"
|
| 32 |
flameeyes |
1.1 |
|
| 33 |
flameeyes |
1.2 |
RUBY_PATCHES=( "${P}+ruby-1.9.patch" )
|
| 34 |
|
|
|
| 35 |
flameeyes |
1.1 |
each_ruby_configure() {
|
| 36 |
|
|
${RUBY} -Cext/fast_xs extconf.rb || die "extconf.rb failed"
|
| 37 |
|
|
${RUBY} -Cext/fast_xs_extra extconf.rb || die "extconf.rb failed"
|
| 38 |
|
|
}
|
| 39 |
|
|
|
| 40 |
|
|
each_ruby_compile() {
|
| 41 |
|
|
emake -Cext/fast_xs CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "make extension failed"
|
| 42 |
|
|
cp ext/fast_xs/fast_xs$(get_modname) lib/ || die
|
| 43 |
|
|
emake -Cext/fast_xs_extra CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "make extension failed"
|
| 44 |
|
|
cp ext/fast_xs_extra/fast_xs_extra$(get_modname) lib/ || die
|
| 45 |
|
|
}
|
| 46 |
flameeyes |
1.5 |
|
| 47 |
|
|
each_ruby_test() {
|
| 48 |
|
|
# the Rakefile tries to run all the tests in a single process, but
|
| 49 |
|
|
# this breaks the monkey-patchers, we're forced to run them one by
|
| 50 |
|
|
# one.
|
| 51 |
|
|
for tu in test/test_*.rb; do
|
| 52 |
|
|
${RUBY} -Ilib $tu || die "test $tu failed"
|
| 53 |
|
|
done
|
| 54 |
|
|
}
|