summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-07-27 15:24:34 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-07-27 15:24:34 +0000
commit2402f9638f39b522f1d8e0b633b23de79dbfd87e (patch)
tree196c82955d128a9a6213d6d7aeceba92076f1dab /dev-java/jython
parentRevision bump to use new Java system. (diff)
downloadhistorical-2402f9638f39b522f1d8e0b633b23de79dbfd87e.tar.gz
historical-2402f9638f39b522f1d8e0b633b23de79dbfd87e.tar.bz2
historical-2402f9638f39b522f1d8e0b633b23de79dbfd87e.zip
Revision bump to support new Java system.
Package-Manager: portage-2.1.1_pre3-r5
Diffstat (limited to 'dev-java/jython')
-rw-r--r--dev-java/jython/ChangeLog7
-rw-r--r--dev-java/jython/files/digest-jython-2.1-r62
-rw-r--r--dev-java/jython/files/digest-jython-2.1-r73
-rw-r--r--dev-java/jython/jython-2.1-r7.ebuild86
4 files changed, 97 insertions, 1 deletions
diff --git a/dev-java/jython/ChangeLog b/dev-java/jython/ChangeLog
index 1d3ea68100f0..f8e625372b66 100644
--- a/dev-java/jython/ChangeLog
+++ b/dev-java/jython/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/jython
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.29 2006/02/05 10:58:02 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.30 2006/07/27 15:24:34 nichoj Exp $
+
+*jython-2.1-r7 (20 Jul 2006)
+
+ 20 Jul 2006; Joshua Nichols <jnichols@gentoo.org> +jython-2.1-r7.ebuild:
+ Revision bump to support new Java system.
05 Feb 2006; Petteri Räty <betelgeuse@gentoo.org> files/jython:
Fixed a typo with the CLASSPATH environment variable usage in the starter
diff --git a/dev-java/jython/files/digest-jython-2.1-r6 b/dev-java/jython/files/digest-jython-2.1-r6
index 7f3b7891320b..430b21a5c3b2 100644
--- a/dev-java/jython/files/digest-jython-2.1-r6
+++ b/dev-java/jython/files/digest-jython-2.1-r6
@@ -1 +1,3 @@
MD5 74f21a0185135396c71453bc279c179f jython-2.1.tar.bz2 1301528
+RMD160 94ae22604c1a816af7d066f2ed88b2abaf5c51d1 jython-2.1.tar.bz2 1301528
+SHA256 faa57a55d137268e80221cd628b234ca67de13504b813be1c0499c9f4d5872b2 jython-2.1.tar.bz2 1301528
diff --git a/dev-java/jython/files/digest-jython-2.1-r7 b/dev-java/jython/files/digest-jython-2.1-r7
new file mode 100644
index 000000000000..430b21a5c3b2
--- /dev/null
+++ b/dev-java/jython/files/digest-jython-2.1-r7
@@ -0,0 +1,3 @@
+MD5 74f21a0185135396c71453bc279c179f jython-2.1.tar.bz2 1301528
+RMD160 94ae22604c1a816af7d066f2ed88b2abaf5c51d1 jython-2.1.tar.bz2 1301528
+SHA256 faa57a55d137268e80221cd628b234ca67de13504b813be1c0499c9f4d5872b2 jython-2.1.tar.bz2 1301528
diff --git a/dev-java/jython/jython-2.1-r7.ebuild b/dev-java/jython/jython-2.1-r7.ebuild
new file mode 100644
index 000000000000..87cc0fd8e614
--- /dev/null
+++ b/dev-java/jython/jython-2.1-r7.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/jython-2.1-r7.ebuild,v 1.1 2006/07/27 15:24:34 nichoj Exp $
+
+inherit java-pkg-2
+
+DESCRIPTION="An implementation of Python written in Java"
+HOMEPAGE="http://www.jython.org"
+MY_PV="21"
+#SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.class"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+LICENSE="JPython"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~ppc64"
+IUSE="readline source doc"
+# servlet
+
+RDEPEND=">=virtual/jre-1.2
+ readline? ( >=dev-java/libreadline-java-0.8.0 )
+ jikes? ( >=dev-java/jikes-1.18 )"
+# servlet? ( >=net-www/tomcat-5.0 )
+DEPEND=">=virtual/jdk-1.2
+ source? ( app-arch/zip )
+ ${RDEPEND}"
+
+src_compile() {
+ local cp="."
+ local exclude=""
+
+ if use readline ; then
+ cp=${cp}:$(java-pkg_getjars libreadline-java)
+ else
+ exclude="${exclude} ! -name ReadlineConsole.java"
+ fi
+
+ #if use servlet; then
+ # cp=${cp}:$(java-pkg_getjars servlet)
+ #else
+ exclude="${exclude} ! -name PyServlet.java"
+ #fi
+
+ ejavac -classpath ${cp} -nowarn $(find org -name "*.java" ${exclude})
+
+ find org -name "*.class" | xargs jar cf ${PN}.jar
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ dodoc README.txt NEWS ACKNOWLEDGMENTS
+ use doc && java-pkg_dohtml -A .css .jpg .gif -r Doc/*
+
+ java-pkg_dolauncher jythonc \
+ --main "org.python.util.jython" \
+ --java_args '-Dpython.home=/usr/share/jython' \
+ --pkg_args '/usr/share/jython/tools/jythonc/jythonc.py'
+
+ java-pkg_dolauncher jython \
+ --main 'org.python.util.jython' \
+ --java_args '-Dpython.home="/usr/share/jython"'
+
+ dodir /usr/share/jython/cachedir
+ chmod a+rw ${D}/usr/share/jython/cachedir
+
+ rm Demo/jreload/example.jar
+ insinto /usr/share/${PN}
+ doins -r Lib Demo registry
+
+ insinto /usr/share/${PN}/tools
+ doins -r Tools/*
+
+ use source && java-pkg_dosrc com org
+}
+
+pkg_postinst() {
+ if use readline; then
+ einfo "To use readline you need to add the following to your registery"
+ einfo
+ einfo "python.console=org.python.util.ReadlineConsole"
+ einfo "python.console.readlinelib=GnuReadline"
+ einfo
+ einfo "The global registry can be found in /usr/share/${PN}/registry"
+ einfo "User registry in \$HOME/.jython"
+ einfo "See http://www.jython.org/docs/registry.html for more information"
+ fi
+}