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

Contents of /dev-java/jruby/jruby-0.9.2.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, 1 month 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.2.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
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     src_unpack() {
34     unpack ${A}
35     cd ${S}
36    
37     # 0.9.2 was using a version of jline which hasn't been released, which has
38     # a few new methods. disabling calls to those methods, but shouldn't affect
39     # usablility. see
40     # http://jira.codehaus.org/browse/JRUBY-383
41     epatch ${FILESDIR}/${P}-old_jline.patch
42     # fix javadoc, make tests halt on failure
43     epatch ${FILESDIR}/${P}-haltonfailure.patch
44    
45     cd lib
46     # created by jruby dev, but no source available, so use bundled
47     mv plaincharset.jar "${T}"
48     rm -rf *.jar
49     mv "${T}/plaincharset.jar" .
50    
51     java-pkg_jar-from --build-only ant-core ant.jar
52     java-pkg_jar-from asm-2.2 asm.jar
53     java-pkg_jar-from bsf-2.3
54     java-pkg_jar-from jvyaml
55     java-pkg_jar-from jline
56     use test && java-pkg_jar-from --build-only junit
57     }
58    
59     src_install() {
60     java-pkg_dojar "lib/${PN}.jar" "lib/plaincharset.jar"
61    
62     dodoc README COPYING COPYING.CPL COPYING.GPL COPYING.LGPL
63    
64     if use doc; then
65     java-pkg_dojavadoc docs/api
66     docinto docs
67     dodoc docs/*
68     fi
69     use source && java-pkg_dosrc src/org
70     java-pkg_dolauncher ${PN} \
71     --main 'org.jruby.Main' \
72     --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'
73     newbin ${S}/bin/gem jgem
74     newbin ${S}/bin/gem_server jgem_server
75     newbin ${S}/bin/gemlock jgem_lock
76     newbin ${S}/bin/gemri jgemri
77     newbin ${S}/bin/gemwhich jgemwhich
78     newbin ${S}/bin/update_rubygems jupdate_rubygems
79     # newbin ${S}/bin/generate_yaml_index.rb jgenerate_yaml_index.rb
80     newbin ${S}/bin/index_gem_repository.rb jindex_gem_repository.rb
81     dobin ${S}/bin/jirb
82    
83     dodir "/usr/share/${PN}/lib"
84     insinto "/usr/share/${PN}/lib"
85     doins -r "${S}/lib/ruby"
86     }
87    
88     src_test() {
89     eant test
90     }

  ViewVC Help
Powered by ViewVC 1.1.20