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

Contents of /dev-java/jruby/jruby-1.0.0_rc2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20