/[gentoo-x86]/dev-ruby/fast_xs/fast_xs-0.8.0.ebuild
Gentoo

Contents of /dev-ruby/fast_xs/fast_xs-0.8.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Tue Jan 15 05:16:24 2013 UTC (4 months ago) by zerochaos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +3 -3 lines
adding ~arm keywords to net-analyzer/metasploit rdeps

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/fast_xs/fast_xs-0.8.0.ebuild,v 1.12 2012/10/28 18:13:38 armin76 Exp $
4
5 EAPI=4
6
7 USE_RUBY="ruby18 ree18 ruby19"
8
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 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-solaris"
22 IUSE=""
23
24 ruby_add_bdepend "doc? ( >=dev-ruby/hoe-2.3.2 )"
25 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
33 RUBY_PATCHES=( "${P}+ruby-1.9.patch" )
34
35 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
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 }

  ViewVC Help
Powered by ViewVC 1.1.13