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

Contents of /dev-java/jruby/jruby-0.9.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Aug 3 16:41:00 2007 UTC (7 years, 2 months ago) by betelgeuse
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-0.9.8-r1.ebuild,v 1.2 2007/05/08 20:57:01 caster Exp $
4 nichoj 1.1
5     inherit eutils java-pkg-2 java-ant-2
6    
7     DESCRIPTION="Java based ruby interpreter implementation"
8     HOMEPAGE="http://jruby.codehaus.org/"
9     SRC_URI="http://dist.codehaus.org/${PN}/${PN}-src-${PV}.tar.gz"
10    
11     LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )"
12     SLOT="0"
13     KEYWORDS="~amd64 ~ppc ~x86"
14     IUSE="doc source test"
15    
16     COMMON_DEPEND=">=dev-java/jvyaml-0.2
17     >=dev-java/jline-0.9.91
18     =dev-java/asm-2.2*
19 caster 1.2 >=dev-java/bsf-2.3"
20 nichoj 1.1 RDEPEND=">=virtual/jre-1.4
21     ${COMMON_DEPEND}"
22     DEPEND=">=virtual/jdk-1.4
23     !test? ( dev-java/ant-core )
24     test? (
25     dev-java/junit
26     dev-java/ant
27     )
28     source? ( app-arch/zip )
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}/${P}-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 jvyaml
52     java-pkg_jar-from jline
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     eant test
92     }

  ViewVC Help
Powered by ViewVC 1.1.20