/[gentoo-x86]/www-servers/mongrel/mongrel-1.1.5-r2.ebuild
Gentoo

Contents of /www-servers/mongrel/mongrel-1.1.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon Apr 30 06:45:55 2012 UTC (2 years, 6 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Remove old version.

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-servers/mongrel/mongrel-1.1.5-r2.ebuild,v 1.8 2011/08/07 14:50:31 armin76 Exp $
4
5 EAPI="2"
6
7 # ruby19 → extension does not build, so there is no way to get this to
8 # work for now
9 USE_RUBY="ruby18 jruby"
10
11 RUBY_FAKEGEM_TASK_DOC=""
12 RUBY_FAKEGEM_TASK_TEST=""
13
14 RUBY_FAKEGEM_EXTRADOC="CHANGELOG README TODO"
15
16 inherit multilib ruby-fakegem
17
18 DESCRIPTION="A small fast HTTP library and server that runs Rails, Camping, and Nitro apps"
19 HOMEPAGE="http://mongrel.rubyforge.org/"
20
21 LICENSE="|| ( mongrel GPL-2 )"
22 SLOT="0"
23 KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
24 IUSE=""
25
26 RDEPEND=""
27 DEPEND="ruby_targets_jruby? ( >=virtual/jdk-1.5 )"
28
29 ruby_add_rdepend ">=dev-ruby/daemons-1.0.3
30 >=dev-ruby/gem_plugin-0.2.3"
31
32 # Only useful with Ruby 1.8 as it's not used/useful with Ruby 1.9 or JRuby
33 USE_RUBY=ruby18 ruby_add_rdepend ">=dev-ruby/fastthread-1.0.1"
34
35 ruby_add_bdepend test virtual/ruby-test-unit
36
37 each_ruby_compile() {
38 case ${RUBY} in
39 *jruby)
40 # There is no script to build the JRuby extension so we're
41 # going to do it manually :(
42 pushd ext/http11_java &>/dev/null
43 find . -name '*.java' | xargs javac -source 1.5 -target 1.5 -cp $(java-config -d -p jruby) \
44 || die "failed to build java source"
45 find . -name '*.class' | xargs jar cf http11.jar \
46 || die "failed to create http11.jar"
47 popd &>/dev/null
48
49 # Move it here to avoid special-casing the test and
50 # install phases.
51 cp ext/http11_java/http11.jar lib/ || die "unable to copy http11.jar"
52 ;;
53 *)
54 pushd ext/http11 &>/dev/null
55 ${RUBY} extconf.rb || die "extconf failed"
56 emake || die "emake failed"
57 popd &>/dev/null
58
59 # Move it here to avoid special-casing the test and
60 # install phases.
61 cp ext/http11/http11$(get_modname) lib/ || die "unable to copy http11 shared object"
62 ;;
63 esac
64 }
65
66 each_ruby_test() {
67 ${RUBY} -S testrb -I lib:ext/http11_java -a test -x test_command || die "tests failed"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20