/[gentoo-x86]/dev-java/jruby/jruby-1.3.1.ebuild
Gentoo

Diff of /dev-java/jruby/jruby-1.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.4
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/Attic/jruby-1.3.1.ebuild,v 1.1 2009/08/07 20:40:51 ali_bush Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/Attic/jruby-1.3.1.ebuild,v 1.4 2009/10/25 21:51:27 volkmar Exp $
4
5# Note:this pmasked in gentoo-x86/profiles.
6# Please remove both once a full release is available.
7 4
8EAPI="2" 5EAPI="2"
9JAVA_PKG_IUSE="doc source test" 6JAVA_PKG_IUSE="doc source test"
10inherit eutils java-pkg-2 java-ant-2 7inherit eutils java-pkg-2 java-ant-2
11 8
14DESCRIPTION="Java-based Ruby interpreter implementation" 11DESCRIPTION="Java-based Ruby interpreter implementation"
15HOMEPAGE="http://jruby.codehaus.org/" 12HOMEPAGE="http://jruby.codehaus.org/"
16SRC_URI="http://dist.codehaus.org/${PN}/${MY_PV}/${PN}-src-${MY_PV}.tar.gz" 13SRC_URI="http://dist.codehaus.org/${PN}/${MY_PV}/${PN}-src-${MY_PV}.tar.gz"
17LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )" 14LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )"
18SLOT="0" 15SLOT="0"
19KEYWORDS="~amd64 ~x86" 16KEYWORDS="~amd64 ~ppc ~x86"
20IUSE="bsf java6 ssl" 17IUSE="bsf java6 ssl"
21 18
22CDEPEND=">=dev-java/bytelist-1.0.2:0 19CDEPEND=">=dev-java/bytelist-1.0.2:0
23 >=dev-java/constantine-0.6:0 20 >=dev-java/constantine-0.6:0
24 >=dev-java/jline-0.9.94:0 21 >=dev-java/jline-0.9.94:0
51PDEPEND="dev-ruby/rubygems 48PDEPEND="dev-ruby/rubygems
52 >=dev-ruby/rake-0.7.3 49 >=dev-ruby/rake-0.7.3
53 >=dev-ruby/rspec-1.0.4 50 >=dev-ruby/rspec-1.0.4
54 ssl? ( dev-ruby/jruby-openssl )" 51 ssl? ( dev-ruby/jruby-openssl )"
55 52
53# Tests work for ali_bush. But fail for flameeyes see #282439.
54# Tests work for ali_bush inside the ebuild env
55# but fail when using vanilla src tarball.
56# Restrict tests so we can stablise this package.
57RESTRICT="test"
58
56S="${WORKDIR}/${PN}-${MY_PV}" 59S="${WORKDIR}/${PN}-${MY_PV}"
57 60
58RUBY_HOME=/usr/share/${PN}/lib/ruby 61RUBY_HOME=/usr/share/${PN}/lib/ruby
59SITE_RUBY=${RUBY_HOME}/site_ruby 62SITE_RUBY=${RUBY_HOME}/site_ruby
60GEMS=${RUBY_HOME}/gems 63GEMS=${RUBY_HOME}/gems
61 64
62JAVA_ANT_REWRITE_CLASSPATH="true" 65JAVA_ANT_REWRITE_CLASSPATH="true"
63JAVA_ANT_IGNORE_SYSTEM_CLASSES="true" 66JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
64EANT_GENTOO_CLASSPATH="asm-3 bytelist constantine jay jcodings jffi-0.4 jline 67EANT_GENTOO_CLASSPATH="asm-3 bytelist constantine jay jcodings jffi-0.4 jline \
65joda-time joni jna jna-posix jvyamlb,nailgun" 68joda-time joni jna jna-posix jvyamlb,nailgun"
66EANT_NEEDS_TOOLS="true" 69EANT_NEEDS_TOOLS="true"
67 70
68pkg_setup() { 71pkg_setup() {
69 java-pkg-2_pkg_setup 72 java-pkg-2_pkg_setup
125 ewarn 'The tests will fail if run as root so skipping them.' 128 ewarn 'The tests will fail if run as root so skipping them.'
126 ewarn 'Enable FEATURES="userpriv" if you want to run them.' 129 ewarn 'Enable FEATURES="userpriv" if you want to run them.'
127 return 130 return
128 fi 131 fi
129 132
133 # ali_bush was getting crashes while attempting to run a test.
134 # No info about why it crashed seemed to be produced.
135 # remove it as temp fix.
136 sed -i -e '/MRI/d' build.xml || die "Failed to sed build.xml"
137
130 # BSF is a compile-time only dependency because it's just the adapter 138 # BSF is a compile-time only dependency because it's just the adapter
131 # classes and they won't be used unless invoked from BSF itself. 139 # classes and they won't be used unless invoked from BSF itself.
132 use bsf && java-pkg_jar-from --into build_lib --with-dependencies bsf-2.3 140 use bsf && java-pkg_jar-from --into build_lib --with-dependencies bsf-2.3
133 141
134 # Our jruby.jar is unbundled so we need to add the classpath to this test. 142 # Our jruby.jar is unbundled so we need to add the classpath to this test.

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20