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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Oct 24 05:29:46 2007 UTC (6 years, 11 months ago) by wltjr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Removed java gen 1 ebuild, quoted vars.
(Portage version: 2.1.3.15)

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.7.0-r1.ebuild,v 1.6 2007/09/21 16:28:21 opfer Exp $
4
5 inherit java-pkg
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 KEYWORDS="~amd64 ~ppc ~x86"
11 LICENSE="GPL-2"
12 SLOT="0"
13 IUSE="doc examples jikes junit source"
14 RDEPEND=">=virtual/jre-1.4
15 >=dev-java/bsf-2.3
16 =dev-java/jakarta-oro-2.0*
17 =dev-java/gnu-regexp-1.1*"
18 DEPEND=">=virtual/jdk-1.4
19 ${RDEPEND}
20 >=dev-java/ant-1.4
21 jikes? ( dev-java/jikes )
22 junit? ( 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 bsf-2.3
30 java-pkg_jar-from jakarta-oro-2.0
31 java-pkg_jar-from gnu-regexp-1
32 use junit && java-pkg_jar-from junit
33 }
34
35 src_compile() {
36 local antflags="jar"
37 use doc && antflags="${antflags} create-apidocs"
38 use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
39 use junit && antflags="${antflags} test"
40 ant ${antflags} || die "Compile Failed"
41 }
42
43 src_install() {
44 java-pkg_dojar ${S}/lib/jruby.jar
45
46 use doc && java-pkg_dohtml -r docs/api/*
47 if use examples; then
48 dodir /usr/share/doc/${PF}/examples
49 cp -r samples/* ${D}/usr/share/doc/${PF}/examples
50 fi
51 use source && java-pkg_dosrc src/org
52 }

  ViewVC Help
Powered by ViewVC 1.1.20