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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Feb 18 17:50:32 2007 UTC (7 years, 6 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.2-r9)

1 # Copyright 1999-2006 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.0.ebuild,v 1.2 2006/10/22 22:48:36 caster Exp $
4
5 inherit java-pkg-2 java-ant-2
6
7 DESCRIPTION="Java based ruby interpreter implementation"
8 HOMEPAGE="http://jruby.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/jruby/${PN}-src-${PV}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 IUSE="doc test source"
15
16 RDEPEND=">=virtual/jre-1.4
17 =dev-java/jvyaml-0.1*
18 =dev-java/bsf-2.3*"
19 DEPEND=">=virtual/jdk-1.4
20 ${RDEPEND}
21 >=dev-java/ant-1.4
22 test? ( dev-java/junit )
23 source? ( app-arch/zip )"
24
25 src_unpack() {
26 unpack ${A}
27 cd ${S}/lib
28 rm -rf *.jar
29 java-pkg_jar-from ant-core ant.jar
30 java-pkg_jar-from bsf-2.3
31 java-pkg_jar-from jvyaml
32 use test && java-pkg_jar-from --build-only junit
33 }
34 src_compile() {
35 eant jar $(use_doc create-apidocs)
36 }
37
38 src_test() {
39 eant test
40 }
41
42 src_install() {
43 java-pkg_dojar ${S}/lib/${PN}.jar
44
45 dodoc README COPYING COPYING.CPL COPYING.GPL COPYING.LGPL
46
47 if use doc; then
48 java-pkg_dohtml -r docs/api/*
49 docinto docs
50 dodoc docs/*
51 fi
52 use source && java-pkg_dosrc src/org
53 java-pkg_dolauncher jruby \
54 --main 'org.jruby.Main' \
55 --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'
56 newbin ${S}/bin/gem jgem
57 newbin ${S}/bin/gem_server jgem_server
58 newbin ${S}/bin/gemlock jgem_lock
59 newbin ${S}/bin/gemri jgemri
60 newbin ${S}/bin/gemwhich jgemwhich
61 newbin ${S}/bin/update_rubygems jupdate_rubygems
62 newbin ${S}/bin/generate_yaml_index.rb jgenerate_yaml_index.rb
63 newbin ${S}/bin/index_gem_repository.rb jindex_gem_repository.rb
64 dobin ${S}/bin/jirb
65
66 dodir /usr/share/${PN}/lib
67 insinto /usr/share/${PN}/lib
68 doins -r ${S}/lib/ruby
69
70 }

  ViewVC Help
Powered by ViewVC 1.1.20