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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sat Apr 5 12:18:55 2014 UTC (8 months, 2 weeks ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Removal wrt bug #434064.

1 # Copyright 1999-2014 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-r3.ebuild,v 1.11 2014/02/01 04:29:53 hattya 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 RUBY_FAKEGEM_GEMSPEC="mongrel.gemspec"
17
18 inherit multilib ruby-fakegem
19
20 DESCRIPTION="A small fast HTTP library and server that runs Rails, Camping, and Nitro apps"
21 HOMEPAGE="http://mongrel.rubyforge.org/"
22
23 LICENSE="|| ( mongrel GPL-2 )"
24 SLOT="0"
25 KEYWORDS="~alpha amd64 arm hppa ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
26 IUSE=""
27
28 RDEPEND=""
29 DEPEND="ruby_targets_jruby? ( >=virtual/jdk-1.5 )"
30
31 ruby_add_rdepend ">=dev-ruby/daemons-1.0.3
32 >=dev-ruby/gem_plugin-0.2.3"
33
34 # Only useful with Ruby 1.8 as it's not used/useful with Ruby 1.9 or JRuby
35 USE_RUBY=ruby18 ruby_add_rdepend ">=dev-ruby/fastthread-1.0.1"
36
37 all_ruby_prepare() {
38 # This package is no longer in our tree and it is not needed for any
39 # supported ruby version.
40 sed -i -e '/cgi_multipart_eof_fix/d' mongrel.gemspec || die
41 }
42
43 each_ruby_compile() {
44 case ${RUBY} in
45 *jruby)
46 # There is no script to build the JRuby extension so we're
47 # going to do it manually :(
48 pushd ext/http11_java &>/dev/null
49 find . -name '*.java' | xargs javac -source 1.5 -target 1.5 -cp $(java-config -d -p jruby) \
50 || die "failed to build java source"
51 find . -name '*.class' | xargs jar cf http11.jar \
52 || die "failed to create http11.jar"
53 popd &>/dev/null
54
55 # Move it here to avoid special-casing the test and
56 # install phases.
57 cp ext/http11_java/http11.jar lib/ || die "unable to copy http11.jar"
58 ;;
59 *)
60 pushd ext/http11 &>/dev/null
61 ${RUBY} extconf.rb || die "extconf failed"
62 emake || die "emake failed"
63 popd &>/dev/null
64
65 # Move it here to avoid special-casing the test and
66 # install phases.
67 cp ext/http11/http11$(get_modname) lib/ || die "unable to copy http11 shared object"
68 ;;
69 esac
70 }
71
72 each_ruby_test() {
73 ${RUBY} -S testrb -I lib:ext/http11_java -a test -x test_command || die "tests failed"
74 }

  ViewVC Help
Powered by ViewVC 1.1.20