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

Contents of /dev-java/jruby/jruby-0.9.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Fri Aug 3 16:41:00 2007 UTC (7 years, 11 months ago) by betelgeuse
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Removed old versions.
(Portage version: 2.1.3_rc9)

1 nichoj 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 betelgeuse 1.5 # $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-0.9.9.ebuild,v 1.4 2007/05/08 20:57:01 caster Exp $
4 nichoj 1.1
5 caster 1.3 JAVA_PKG_IUSE="doc source test"
6 nichoj 1.1 inherit eutils java-pkg-2 java-ant-2
7    
8     DESCRIPTION="Java based ruby interpreter implementation"
9     HOMEPAGE="http://jruby.codehaus.org/"
10     SRC_URI="http://dist.codehaus.org/${PN}/${PN}-src-${PV}.tar.gz"
11    
12     LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )"
13     SLOT="0"
14     KEYWORDS="~amd64 ~ppc ~x86"
15     IUSE="doc source test"
16    
17     COMMON_DEPEND=">=dev-java/jline-0.9.91
18     =dev-java/asm-2.2*
19 caster 1.4 >=dev-java/bsf-2.3
20 caster 1.2 dev-java/backport-util-concurrent"
21 nichoj 1.1 RDEPEND=">=virtual/jre-1.4
22     ${COMMON_DEPEND}"
23     DEPEND=">=virtual/jdk-1.4
24     test? (
25 caster 1.3 =dev-java/junit-3*
26     dev-java/ant-junit
27     dev-java/ant-trax
28 nichoj 1.1 )
29     ${COMMON_DEPEND}"
30    
31     EANT_DOC_TARGET="create-apidocs"
32    
33     # only use javac, see http://jira.codehaus.org/browse/JRUBY-675
34     JAVA_PKG_FILTER_COMPILER="ecj-3.2 ecj-3.1 jikes"
35    
36     src_unpack() {
37     unpack ${A}
38     cd ${S}
39     # prevents /root/.jruby being created at build time with
40     # FEATURES="-userpriv"
41     # see http://bugs.gentoo.org/show_bug.cgi?id=170058
42     epatch ${FILESDIR}/${PN}-0.9.8-sandbox.patch
43    
44     cd ${S}/lib
45     rm *.jar
46    
47     java-pkg_jar-from --build-only ant-core ant.jar
48     java-pkg_jar-from asm-2.2 asm.jar
49     java-pkg_jar-from asm-2.2 asm-commons.jar
50     java-pkg_jar-from bsf-2.3
51     java-pkg_jar-from jline
52     java-pkg_jar-from backport-util-concurrent
53     use test && java-pkg_jar-from --build-only junit
54     }
55    
56     src_compile() {
57     # addpredict /root/.jruby # http://bugs.gentoo.org/show_bug.cgi?id=170058
58     eant jar $(use_doc create-apidocs) -Djruby.home=${T}/.jruby
59     }
60    
61     src_install() {
62     java-pkg_dojar lib/${PN}.jar
63    
64     dodoc README COPYING COPYING.CPL COPYING.GPL COPYING.LGPL
65    
66     if use doc; then
67     java-pkg_dojavadoc docs/api
68     docinto docs
69     dodoc docs/*
70     fi
71     use source && java-pkg_dosrc src/org
72     java-pkg_dolauncher ${PN} \
73     --main 'org.jruby.Main' \
74     --java_args '-Djruby.base=/usr/share/jruby -Djruby.home=/usr/share/jruby -Djruby.lib=/usr/share/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh'
75     newbin ${S}/bin/gem jgem
76     newbin ${S}/bin/gem_server jgem_server
77     newbin ${S}/bin/gemlock jgem_lock
78     newbin ${S}/bin/gemri jgemri
79     newbin ${S}/bin/gemwhich jgemwhich
80     newbin ${S}/bin/update_rubygems jupdate_rubygems
81     # newbin ${S}/bin/generate_yaml_index.rb jgenerate_yaml_index.rb
82     newbin ${S}/bin/index_gem_repository.rb jindex_gem_repository.rb
83     dobin ${S}/bin/jirb
84    
85     dodir "/usr/share/${PN}/lib"
86     insinto "/usr/share/${PN}/lib"
87     doins -r "${S}/lib/ruby"
88     }
89    
90     src_test() {
91 caster 1.3 ANT_TASKS="ant-junit ant-trax" eant test
92 nichoj 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20