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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Aug 3 16:41:00 2007 UTC (7 years, 3 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 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-0.9.8.ebuild,v 1.4 2007/05/08 20:57:01 caster Exp $
4
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 >=dev-java/bsf-2.3"
20 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
40 # 0.9.2 was using a version of jline which hasn't been released, which has
41 # a few new methods. disabling calls to those methods, but shouldn't affect
42 # usablility. see
43 # http://jira.codehaus.org/browse/JRUBY-383
44 epatch ${FILESDIR}/${P}-old_jline.patch
45 # fix javadoc, make tests halt on failure
46 #epatch ${FILESDIR}/${PN}-0.9.2-haltonfailure.patch
47
48 cd lib
49 rm *.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 asm-2.2 asm-commons.jar
54 java-pkg_jar-from bsf-2.3
55 java-pkg_jar-from jvyaml
56 java-pkg_jar-from jline
57 use test && java-pkg_jar-from --build-only junit
58 }
59
60 src_install() {
61 java-pkg_dojar "lib/${PN}.jar"
62
63 dodoc README COPYING COPYING.CPL COPYING.GPL COPYING.LGPL
64
65 if use doc; then
66 java-pkg_dojavadoc docs/api
67 docinto docs
68 dodoc docs/*
69 fi
70 use source && java-pkg_dosrc src/org
71 java-pkg_dolauncher ${PN} \
72 --main 'org.jruby.Main' \
73 --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'
74 newbin ${S}/bin/gem jgem
75 newbin ${S}/bin/gem_server jgem_server
76 newbin ${S}/bin/gemlock jgem_lock
77 newbin ${S}/bin/gemri jgemri
78 newbin ${S}/bin/gemwhich jgemwhich
79 newbin ${S}/bin/update_rubygems jupdate_rubygems
80 # newbin ${S}/bin/generate_yaml_index.rb jgenerate_yaml_index.rb
81 newbin ${S}/bin/index_gem_repository.rb jindex_gem_repository.rb
82 dobin ${S}/bin/jirb
83
84 dodir "/usr/share/${PN}/lib"
85 insinto "/usr/share/${PN}/lib"
86 doins -r "${S}/lib/ruby"
87 }
88
89 src_test() {
90 eant test
91 }

  ViewVC Help
Powered by ViewVC 1.1.20