diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/rhino | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/rhino')
-rw-r--r-- | dev-java/rhino/Manifest | 4 | ||||
-rw-r--r-- | dev-java/rhino/files/00_dont-fetch-swing-ex.patch | 10 | ||||
-rw-r--r-- | dev-java/rhino/files/1.5.5_jdk15.patch | 23 | ||||
-rw-r--r-- | dev-java/rhino/files/public-NativeScript.patch | 11 | ||||
-rw-r--r-- | dev-java/rhino/files/rhino-1.6-noget.patch | 12 | ||||
-rw-r--r-- | dev-java/rhino/files/rhino-1.7.7-testsrc-build.xml.patch | 40 | ||||
-rw-r--r-- | dev-java/rhino/metadata.xml | 10 | ||||
-rw-r--r-- | dev-java/rhino/rhino-1.6.5.ebuild | 61 | ||||
-rw-r--r-- | dev-java/rhino/rhino-1.7.2-r2.ebuild | 63 | ||||
-rw-r--r-- | dev-java/rhino/rhino-1.7.7.ebuild | 98 |
10 files changed, 332 insertions, 0 deletions
diff --git a/dev-java/rhino/Manifest b/dev-java/rhino/Manifest new file mode 100644 index 000000000000..69f4fab0e245 --- /dev/null +++ b/dev-java/rhino/Manifest @@ -0,0 +1,4 @@ +DIST Rhino1_7_7_RELEASE.zip 6059127 SHA256 0ef505aee093c690025c4484ce108b6e735e05baa3181bb56fdec4cb6b8b0107 SHA512 ce89b6a153d62dd459a86360c67d6db4b05922d8ab49a8d45ccb0deb0f639cd819f0ad75cb4929eda6b7f0fd6ddb5879a4035de6968283317bfd0e93d2bb744e WHIRLPOOL 0f54840077e46a6ac31e23784b3c13881a774356df14274fc9ffdf93eb3d7b92e8666630d8e51494931819a609a971bb6744cf961c2c168bb94b4e42d3eb0896 +DIST rhino-swing-ex-1.0.zip 19708 SHA256 062837ddb18951ace41ba0050aec95a690c00190a6218e5c9591c381035dfa7d SHA512 f2c1f970595cb08ac301d2fc21e0a2f1090b2007c849d993094ef3215a39456a5865bcaaf9424da93a09d6f0d151be6ec77f844bde2540d725c85c4b54a5f248 WHIRLPOOL 4dd40c1c80a70cd08584ac44abd3b42a790080f93449da8e241ed568ff5b3a5ac6cef12951632eba91547845be49401102d072b05a83a3ed78705acd768b1ced +DIST rhino1_6R5.zip 1822832 SHA256 02a4f17121f148c94ac65fb6d9eb4a817ce86c378c96cc94e9fc1b087b34526f SHA512 bd10b2e687925e06a5a4da5bc0e29a65cff08fc26792e3183f2ab28efb71efcdbc2fb08142be2fd2622c0b94dfa2691ce898ba847935def780e8686a879720f0 WHIRLPOOL 5fda95c5a99a6e99322a81fda513135cece56df0c7d17efcaea0b5f9f8f63b3adccd47bf30f26521b36e33f34e642e05107d7e0f202b8d532356884954d01049 +DIST rhino1_7R2.zip 2996867 SHA256 677f7dc1b67a1587bc03974d5f0720474a56b8f29835e1d860739908df8462dc SHA512 e4472e11377e93b64df3a2a9f266956d86ba78c85ceba57ff05c983d577143351fcbbbc0b63f7034718fd74c13a9e50bac6e8813f320b86fcd09b571e919b858 WHIRLPOOL 546f9a0e565881dd6128e000ca8c8e017cf7432e40df885268c4827e2dbd28f86cde37dbc7284bd1b08b062060eca1465716f850dbd54f176ead475b4b55351d diff --git a/dev-java/rhino/files/00_dont-fetch-swing-ex.patch b/dev-java/rhino/files/00_dont-fetch-swing-ex.patch new file mode 100644 index 000000000000..994975149dd0 --- /dev/null +++ b/dev-java/rhino/files/00_dont-fetch-swing-ex.patch @@ -0,0 +1,10 @@ +--- toolsrc/build.xml 2004-03-25 15:54:34.000000000 +0100 ++++ toolsrc/build-patch.xml 2004-06-19 23:48:07.225123288 +0200 +@@ -20,7 +20,6 @@ + <!-- Download source from Sun's site, unzip it, remove
+ the files we don't need, and change the package
+ -->
+- <get src="http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip" dest="${nest}/${build.dir}/swingExSrc.zip"/>
+ <unzip src="${nest}/${build.dir}/swingExSrc.zip" dest="${src.debugger}"/>
+ <delete file="${src.debugger}/FileSystemModel2.java" />
+ <delete file="${src.debugger}/MergeSort.java" />
diff --git a/dev-java/rhino/files/1.5.5_jdk15.patch b/dev-java/rhino/files/1.5.5_jdk15.patch new file mode 100644 index 000000000000..0948921b4770 --- /dev/null +++ b/dev-java/rhino/files/1.5.5_jdk15.patch @@ -0,0 +1,23 @@ +diff -urpN rhino1_5R5.old/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java +--- rhino1_5R5.old/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2004-03-25 15:54:34.000000000 +0100 ++++ rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2005-02-01 13:58:26.521223264 +0100 +@@ -124,7 +124,7 @@ public class JavaPolicySecurity extends +
+ public JavaPolicySecurity() {
+ // To trigger error on jdk-1.1 with lazy load
+- new CodeSource(null, null);
++ new CodeSource(null, (java.security.cert.Certificate[])null);
+ }
+
+ protected void callProcessFileSecure(final Context cx,
+@@ -167,8 +167,8 @@ public class JavaPolicySecurity extends + }
+
+ private ProtectionDomain getUrlDomain(URL url) {
+- CodeSource cs = new CodeSource(url, null);
+- PermissionCollection pc = Policy.getPolicy().getPermissions(cs);
++ CodeSource cs = new CodeSource(url, (java.security.cert.Certificate[])null);
++ PermissionCollection pc = Policy.getPolicy().getPermissions(cs);
+ return new ProtectionDomain(cs, pc);
+ }
+
diff --git a/dev-java/rhino/files/public-NativeScript.patch b/dev-java/rhino/files/public-NativeScript.patch new file mode 100644 index 000000000000..026bcedb0e55 --- /dev/null +++ b/dev-java/rhino/files/public-NativeScript.patch @@ -0,0 +1,11 @@ +--- rhino1_5R5/src/org/mozilla/javascript/NativeScript.java.orig 2006-05-31 14:01:06.000000000 +0200 ++++ rhino1_5R5/src/org/mozilla/javascript/NativeScript.java 2006-05-31 14:03:37.000000000 +0200 +@@ -55,7 +55,7 @@ + * @author Norris Boyd
+ */
+
+-class NativeScript extends NativeFunction implements Script
++public class NativeScript extends NativeFunction implements Script
+ {
+
+ static void init(Context cx, Scriptable scope, boolean sealed)
diff --git a/dev-java/rhino/files/rhino-1.6-noget.patch b/dev-java/rhino/files/rhino-1.6-noget.patch new file mode 100644 index 000000000000..235091428392 --- /dev/null +++ b/dev-java/rhino/files/rhino-1.6-noget.patch @@ -0,0 +1,12 @@ +diff --git a/toolsrc/org/mozilla/javascript/tools/debugger/build.xml b/toolsrc/org/mozilla/javascript/tools/debugger/build.xml +index 7ed0236..5f7db6e 100644 +--- a/toolsrc/org/mozilla/javascript/tools/debugger/build.xml ++++ b/toolsrc/org/mozilla/javascript/tools/debugger/build.xml +@@ -47,7 +47,6 @@ + the files we don't need, and change the package + --> + <mkdir dir="downloaded"/> +- <get src="${swing-ex-url}" dest="downloaded/swingExSrc.zip"/> + <unzip src="downloaded/swingExSrc.zip" dest="downloaded/"> + <patternset> + <include name="AbstractCellEditor.java"/> diff --git a/dev-java/rhino/files/rhino-1.7.7-testsrc-build.xml.patch b/dev-java/rhino/files/rhino-1.7.7-testsrc-build.xml.patch new file mode 100644 index 000000000000..4760e980245d --- /dev/null +++ b/dev-java/rhino/files/rhino-1.7.7-testsrc-build.xml.patch @@ -0,0 +1,40 @@ +--- testsrc/build.xml.orig 2015-08-05 23:41:56.815000000 +0000 ++++ testsrc/build.xml 2015-08-05 23:46:10.026000000 +0000 +@@ -46,15 +46,8 @@ + --> + <property name="test.vm.mx" value="256m" /> + +- <target name="get-junit" unless="offline"> +- <mkdir dir="lib"/> +- <get src="${test.junit.url}" dest="lib/junit.jar" usetimestamp="true"/> +- <get src="${test.hamcrest.url}" dest="lib/hamcrest.jar" usetimestamp="true"/> +- </target> +- + <target name="junit-compile"> + <mkdir dir="${test.classes}" /> +- <antcall target="get-junit"/> + <javac + destdir="${test.classes}" debug="true" + encoding="UTF-8" +@@ -75,7 +68,6 @@ + + <target name="compile"> + <mkdir dir="${test.classes}" /> +- <antcall target="get-junit"/> + <javac + srcdir="testsrc" + destdir="${test.classes}" debug="true" +@@ -105,12 +97,7 @@ + <delete dir="${test.classes}" /> + </target> + +- <target name="get-emma" unless="offline"> +- <get src="${test.emma.url}" dest="lib/emma.jar" usetimestamp="true"/> +- <get src="${test.emma_ant.url}" dest="lib/emma_ant.jar" usetimestamp="true"/> +- </target> +- +- <target name="coverage-instrument" depends="get-emma"> ++ <target name="coverage-instrument"> + <property name="coverage.dir" location="${build.dir}/coverage"/> + <property name="coverage.classes.dir" location="${build.dir}/coverage/classes"/> + <mkdir dir="${coverage.classes.dir}"/> diff --git a/dev-java/rhino/metadata.xml b/dev-java/rhino/metadata.xml new file mode 100644 index 000000000000..edd54749e161 --- /dev/null +++ b/dev-java/rhino/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <longdescription> + Rhino is an implementation of JavaScript written entirely in Java. + It is typically embedded into Java applications to provide scripting + to end users. + </longdescription> +</pkgmetadata> diff --git a/dev-java/rhino/rhino-1.6.5.ebuild b/dev-java/rhino/rhino-1.6.5.ebuild new file mode 100644 index 000000000000..4c59f2556129 --- /dev/null +++ b/dev-java/rhino/rhino-1.6.5.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +JAVA_PKG_IUSE="doc examples source" +inherit java-pkg-2 java-ant-2 eutils versionator + +MY_P="${PN}$(replace_version_separator 1 _ $(replace_version_separator 2 R))" + +DESCRIPTION="An open-source implementation of JavaScript written in Java" +SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip + mirror://gentoo/rhino-swing-ex-1.0.zip" +HOMEPAGE="http://www.mozilla.org/rhino/" +# dual license for rhino and BSD-2 for the swing-ex from Sun's tutorial +LICENSE="|| ( MPL-1.1 GPL-2 ) BSD-2" +SLOT="1.6" +KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +CDEPEND="=dev-java/xml-xmlbeans-1*" +RDEPEND=">=virtual/jre-1.4 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${CDEPEND}" + +src_unpack() { + unpack ${MY_P}.zip + cd "${S}" + + # don't download src.zip from Sun + epatch "${FILESDIR}/rhino-1.6-noget.patch" + + rm -v *.jar || die + rm -rf docs/apidocs || die + + local dir="toolsrc/org/mozilla/javascript/tools/debugger/downloaded" + mkdir ${dir} || die + cp "${DISTDIR}/rhino-swing-ex-1.0.zip" ${dir}/swingExSrc.zip || die + + mkdir lib/ && cd lib/ || die + java-pkg_jar-from xml-xmlbeans-1 xbean.jar +} + +src_install() { + java-pkg_dojar build/${MY_P}/js.jar + + java-pkg_dolauncher jsscript-${SLOT} \ + --main org.mozilla.javascript.tools.shell.Main + + if use doc; then + local dir="build/${MY_P}/docs" + mv "${dir}"/{apidocs,api} || die + java-pkg_dohtml -r "${dir}"/* + dosym /usr/share/doc/${PF}/html/{api,apidocs} || die + fi + use examples && java-pkg_doexamples examples + use source && java-pkg_dosrc {src,toolsrc,xmlimplsrc}/org +} diff --git a/dev-java/rhino/rhino-1.7.2-r2.ebuild b/dev-java/rhino/rhino-1.7.2-r2.ebuild new file mode 100644 index 000000000000..b6e779c10b4f --- /dev/null +++ b/dev-java/rhino/rhino-1.7.2-r2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="1" +JAVA_PKG_IUSE="doc examples source" +inherit java-pkg-2 java-ant-2 eutils versionator + +MY_P="${PN}$(replace_version_separator 1 _ $(replace_version_separator 2 R))" + +DESCRIPTION="An open-source implementation of JavaScript written in Java" +SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip + mirror://gentoo/rhino-swing-ex-1.0.zip" +HOMEPAGE="http://www.mozilla.org/rhino/" +# dual license for rhino and BSD-2 for the swing-ex from Sun's tutorial +LICENSE="|| ( MPL-1.1 GPL-2 ) BSD-2" +SLOT="1.6" +KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +CDEPEND="=dev-java/xml-xmlbeans-1*" +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${CDEPEND}" + +src_unpack() { + unpack ${MY_P}.zip + cd "${S}" + + # don't download src.zip from Sun + epatch "${FILESDIR}/rhino-1.6-noget.patch" + + rm -v *.jar || die + rm -rf docs/apidocs || die + + local dir="toolsrc/org/mozilla/javascript/tools/debugger/downloaded" + mkdir ${dir} || die + cp "${DISTDIR}/rhino-swing-ex-1.0.zip" ${dir}/swingExSrc.zip || die + + mkdir lib/ && cd lib/ || die + java-pkg_jar-from xml-xmlbeans-1 xbean.jar + + # Stop downloading of deps + cd "${S}" + mkdir -p build/tmp-xbean + touch build/tmp-xbean/xbean.zip + touch lib/jsr173_1.0_api.jar +} + +src_install() { + java-pkg_dojar build/${MY_P}/js.jar + + java-pkg_dolauncher jsscript-${SLOT} \ + --main org.mozilla.javascript.tools.shell.Main + + use doc && java-pkg_dojavadoc "build/${MY_P}/javadoc" + use examples && java-pkg_doexamples examples + use source && java-pkg_dosrc {src,toolsrc,xmlimplsrc}/org +} diff --git a/dev-java/rhino/rhino-1.7.7.ebuild b/dev-java/rhino/rhino-1.7.7.ebuild new file mode 100644 index 000000000000..9a61bd72825e --- /dev/null +++ b/dev-java/rhino/rhino-1.7.7.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +JAVA_PKG_IUSE="doc examples source test" +inherit java-pkg-2 java-ant-2 versionator + +# rhino -> Rhino +MY_PN="${PN^}" + +# 1.7.7 -> 1_7_7 +MY_PV="$(replace_all_version_separators _ ${PV})" + +# rhino1.7.7 +MY_P="${PN}${PV}" + +# Rhino1_7_7_RELEASE +MY_RELEASE="${MY_PN}${MY_PV}_RELEASE" + +DESCRIPTION="An open-source implementation of JavaScript written in Java" +SRC_URI="https://github.com/mozilla/${PN}/archive/${MY_RELEASE}.zip" +HOMEPAGE="http://www.mozilla.org/rhino/" + +LICENSE="MPL-1.1 GPL-2" +SLOT="1.7" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="" + +# ../rhino-Rhino1_7_7_RELEASE +S="${WORKDIR}/${PN}-${MY_RELEASE}" + +CDEPEND="" +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.6 + test? ( + dev-java/emma:0 + dev-java/junit:4 + dev-java/ant-junit:0 + dev-java/hamcrest-core:1.3 + ) + ${CDEPEND}" + +JAVA_ANT_REWRITE_CLASSPATH="yes" + +PATCHES=( + "${FILESDIR}"/${P}-testsrc-build.xml.patch +) + +EANT_TEST_TARGET="junit" + +# StackOverFlow errors arise on some tests. +# Further, the test suite takes way too much time (> 5 min). +# Maybe reduce the numbers of tests? +RESTRICT="test" + +java_prepare() { + find . \ + -type f \ + -name \*.jar \ + -print \ + -exec rm -v {} \; || die "Couldn't delete bundled jar files." + + epatch ${PATCHES[@]} + + if use test; then + mkdir lib || die + java-pkg_jar-from --build-only emma emma.jar lib/emma.jar + java-pkg_jar-from --build-only emma emma_ant.jar lib/emma_ant.jar + java-pkg_jar-from --build-only hamcrest-core-1.3 hamcrest-core.jar lib/hamcrest.jar + java-pkg_jar-from --build-only junit-4 junit.jar lib/junit.jar + fi +} + +src_compile() { + java-pkg-2_src_compile + + if use source; then + EANT_BUILD_TARGET="source-zip" \ + java-pkg-2_src_compile + fi +} + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_dojar build/${MY_P}/js.jar + + java-pkg_dolauncher jsscript-${SLOT} \ + --main org.mozilla.javascript.tools.shell.Main + + use doc && java-pkg_dojavadoc "build/${MY_P}/javadoc" + use examples && java-pkg_doexamples examples + use source && java-pkg_dosrc {src,toolsrc,xmlimplsrc}/org +} |