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

Contents of /dev-java/jruby/jruby-0.9.1.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, 10 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.1.ebuild,v 1.2 2006/11/10 21:05:02 betelgeuse 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
17 =dev-java/asm-2.2*
18 =dev-java/bsf-2.3*"
19 RDEPEND=">=virtual/jre-1.4
20 ${COMMON_DEPEND}"
21 DEPEND=">=virtual/jdk-1.4
22 !test? ( dev-java/ant-core )
23 test? (
24 dev-java/junit
25 dev-java/ant
26 )
27 source? ( app-arch/zip )
28 ${COMMON_DEPEND}"
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33
34 # fix javadoc, make tests halt on failure
35 epatch "${FILESDIR}/${P}-build.xml.patch"
36
37 cd lib
38 # created by jruby dev, but no source available, so use bundled
39 mv plaincharset.jar "${T}"
40 rm -rf *.jar
41 mv "${T}/plaincharset.jar" .
42
43 java-pkg_jar-from --build-only ant-core ant.jar
44 java-pkg_jar-from asm-2.2 asm.jar
45 java-pkg_jar-from bsf-2.3
46 java-pkg_jar-from jvyaml
47 use test && java-pkg_jar-from --build-only junit
48 }
49 src_compile() {
50 eant jar $(use_doc create-apidocs)
51 }
52
53 src_test() {
54 eant test
55 }
56
57 src_install() {
58 java-pkg_dojar "lib/${PN}.jar" "lib/plaincharset.jar"
59
60 dodoc README COPYING COPYING.CPL COPYING.GPL COPYING.LGPL
61
62 if use doc; then
63 java-pkg_dojavadoc docs/api
64 docinto docs
65 dodoc docs/*
66 fi
67 use source && java-pkg_dosrc src/org
68 java-pkg_dolauncher ${PN} \
69 --main 'org.jruby.Main' \
70 --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'
71 newbin ${S}/bin/gem jgem
72 newbin ${S}/bin/gem_server jgem_server
73 newbin ${S}/bin/gemlock jgem_lock
74 newbin ${S}/bin/gemri jgemri
75 newbin ${S}/bin/gemwhich jgemwhich
76 newbin ${S}/bin/update_rubygems jupdate_rubygems
77 newbin ${S}/bin/generate_yaml_index.rb jgenerate_yaml_index.rb
78 newbin ${S}/bin/index_gem_repository.rb jindex_gem_repository.rb
79 dobin ${S}/bin/jirb
80
81 dodir "/usr/share/${PN}/lib"
82 insinto "/usr/share/${PN}/lib"
83 doins -r "${S}/lib/ruby"
84 }

  ViewVC Help
Powered by ViewVC 1.1.20