/[gentoo-x86]/dev-java/rhino/rhino-1.7.2.ebuild
Gentoo

Contents of /dev-java/rhino/rhino-1.7.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jan 1 12:28:23 2012 UTC (2 years, 7 months ago) by sera
Branch: MAIN
Changes since 1.1: +3 -3 lines
Drop ia64 support #345433

(Portage version: 2.1.10.43/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/rhino-1.7.2.ebuild,v 1.1 2010/03/27 22:23:17 ali_bush Exp $
4
5 JAVA_PKG_IUSE="doc examples source"
6 inherit java-pkg-2 java-ant-2 eutils versionator
7
8 MY_P="${PN}$(replace_version_separator 1 _ $(replace_version_separator 2 R))"
9
10 DESCRIPTION="An open-source implementation of JavaScript written in Java."
11 SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip
12 mirror://gentoo/rhino-swing-ex-1.0.zip"
13 HOMEPAGE="http://www.mozilla.org/rhino/"
14 # dual license for rhino and BSD-2 for the swing-ex from Sun's tutorial
15 LICENSE="|| ( MPL-1.1 GPL-2 ) BSD-2"
16 SLOT="1.6"
17 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
18 IUSE=""
19
20 S="${WORKDIR}/${MY_P}"
21
22 CDEPEND="=dev-java/xml-xmlbeans-1*"
23 RDEPEND=">=virtual/jre-1.5
24 ${CDEPEND}"
25 DEPEND=">=virtual/jdk-1.5
26 app-arch/unzip
27 ${CDEPEND}"
28
29 src_unpack() {
30 unpack ${MY_P}.zip
31 cd "${S}"
32
33 # don't download src.zip from Sun
34 epatch "${FILESDIR}/rhino-1.6-noget.patch"
35
36 rm -v *.jar || die
37 rm -rf docs/apidocs || die
38
39 local dir="toolsrc/org/mozilla/javascript/tools/debugger/downloaded"
40 mkdir ${dir} || die
41 cp "${DISTDIR}/rhino-swing-ex-1.0.zip" ${dir}/swingExSrc.zip || die
42
43 mkdir lib/ && cd lib/ || die
44 java-pkg_jar-from xml-xmlbeans-1 xbean.jar
45 }
46
47 src_install() {
48 java-pkg_dojar build/${MY_P}/js.jar
49
50 java-pkg_dolauncher jsscript-${SLOT} \
51 --main org.mozilla.javascript.tools.shell.Main
52
53 use doc && java-pkg_dojavadoc "build/${MY_P}/javadoc"
54 use examples && java-pkg_doexamples examples
55 use source && java-pkg_dosrc {src,toolsrc,xmlimplsrc}/org
56 }

  ViewVC Help
Powered by ViewVC 1.1.20