summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2010-03-19 09:59:29 +0000
committerAlistair Bush <ali_bush@gentoo.org>2010-03-19 09:59:29 +0000
commit94e6e99ba71db734cc5171f638a6a5c9e6d77fdd (patch)
treebadea11b47a993f0461f76a1225e7533d12b3781 /dev-java/jython
parentRemove ancient version, also it had plugins-symlink missing in IUSE. (diff)
downloadhistorical-94e6e99ba71db734cc5171f638a6a5c9e6d77fdd.tar.gz
historical-94e6e99ba71db734cc5171f638a6a5c9e6d77fdd.tar.bz2
historical-94e6e99ba71db734cc5171f638a6a5c9e6d77fdd.zip
Prepare jython to be Python ABI provider #305103.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-java/jython')
-rw-r--r--dev-java/jython/ChangeLog7
-rw-r--r--dev-java/jython/Manifest3
-rw-r--r--dev-java/jython/jython-2.5.1-r1.ebuild157
3 files changed, 165 insertions, 2 deletions
diff --git a/dev-java/jython/ChangeLog b/dev-java/jython/ChangeLog
index 69444eb76b29..782478e96604 100644
--- a/dev-java/jython/ChangeLog
+++ b/dev-java/jython/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/jython
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.67 2010/03/05 21:18:48 ali_bush Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.68 2010/03/19 09:59:29 ali_bush Exp $
+
+*jython-2.5.1-r1 (19 Mar 2010)
+
+ 19 Mar 2010; Alistair Bush <ali_bush@gentoo.org> +jython-2.5.1-r1.ebuild:
+ Prepare jython to be Python ABI provider #305103.
*jython-2.5.1 (05 Mar 2010)
diff --git a/dev-java/jython/Manifest b/dev-java/jython/Manifest
index da7a87216b3f..4c1d0dc01c54 100644
--- a/dev-java/jython/Manifest
+++ b/dev-java/jython/Manifest
@@ -13,6 +13,7 @@ DIST jython_installer-2.2.1.jar 4663097 RMD160 73959d072925644b2959bc0c28ddd6a84
EBUILD jython-2.1-r11.ebuild 2939 RMD160 a1f3596dfc5d6f15fc60fe522b4ef3ab2c4fc00e SHA1 75f8317afdb1366a7fc9d72fa620d9717a133a8e SHA256 350f0ca38c869a06ad20b73f41b22c54f9b8017a676cc550069d87c5f8593338
EBUILD jython-2.2.1-r1.ebuild 3772 RMD160 ed33983e8e7f44513d346c20fda80b7b4a91e8e1 SHA1 da67f232692f2cb81db93beb371d31aeaba72585 SHA256 9765c773d4a910bfbe0a88490605af71a897e891a38ba9c12f3da8eb10d14bcf
EBUILD jython-2.5.0-r1.ebuild 4487 RMD160 08048d243aaa4cc39a17d4ca261af38e733f7cb2 SHA1 ee626b767dae47542a0d59e11b05b0c777fc2f78 SHA256 b69561dc67fa6b203269f93ad7c3b9535107ff3d96eff31fce7a1e18f4d65200
+EBUILD jython-2.5.1-r1.ebuild 4964 RMD160 d5c49876a67148c4f38ba41538024ff991339e0a SHA1 f16c9a9957cc3064ed6d4d4bfe7927dd9c48152a SHA256 1e363f6a982c91e7650bace01f26faabf09d5d754ddff95222d9bf9bc2dc000a
EBUILD jython-2.5.1.ebuild 4779 RMD160 12c91d7aa83219aaeff34bf73869926c56de44b4 SHA1 4e2a5d8f8911ddb56e3150a5f97e37d71ae4cfb1 SHA256 cc751451690cf9efce8a3573aa1a0e8e6f47959b46321f5afcb3cbb800f986b1
-MISC ChangeLog 9433 RMD160 2d4e5c8bd5d8066eab3df9c92a3d60055c6d3f70 SHA1 43802f3ef53a35231056d753c62a6ba938a3ea6b SHA256 a0823fb22a4398049b54b84b0a15e0c4466ad481b3b119ef56106da4ad673bf7
+MISC ChangeLog 9594 RMD160 63b40728422eccf3f653768a534c80017b008dee SHA1 b0be78faa61e63ea5ab27554221eb87354a01678 SHA256 b402a68921d406a58e5ceb0f63bf3c1a1d147627dea5c72ef4e239284cff4d9a
MISC metadata.xml 248 RMD160 2f209fd2ecdd173d50305f140d7154e1c9a634fa SHA1 25e0f2914006e3cc39f704309e8644af57608a44 SHA256 7faa9b92889ac0d4fe4b02b2dd8e534b534fc4241386fe769803b047f467d6bf
diff --git a/dev-java/jython/jython-2.5.1-r1.ebuild b/dev-java/jython/jython-2.5.1-r1.ebuild
new file mode 100644
index 000000000000..f841be35d3d4
--- /dev/null
+++ b/dev-java/jython/jython-2.5.1-r1.ebuild
@@ -0,0 +1,157 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/jython-2.5.1-r1.ebuild,v 1.1 2010/03/19 09:59:29 ali_bush Exp $
+
+JAVA_PKG_IUSE="source doc examples oracle"
+#informix missing. This is a jdbc driver, similar to oracle use flag
+#functionality.
+
+EAPI="2"
+
+inherit base java-pkg-2 java-ant-2
+
+DESCRIPTION="An implementation of Python written in Java"
+HOMEPAGE="http://www.jython.org"
+
+PYVER="2.5.5"
+
+SRC_URI="http://www.python.org/ftp/python/${PYVER%_*}/Python-${PYVER}.tgz
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="PSF-2.2"
+SLOT="2.5"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+#>=dev-java/jdbc-mysql-3.1
+#dev-java/jdbc-postgresql
+CDEPEND="=dev-java/jakarta-oro-2.0*
+ >=dev-java/libreadline-java-0.8.0
+ dev-java/asm:3
+ oracle? ( dev-java/jdbc-oracle-bin:10.2 )
+ java-virtuals/servlet-api:2.5
+ !<=dev-java/freemarker-2.3.10
+ dev-java/constantine:0
+ dev-java/jline:0
+ dev-java/jna-posix:0
+ dev-java/jna:0
+ dev-java/antlr:0
+ dev-java/antlr:3
+ dev-java/stringtemplate:0
+ dev-java/xerces:2
+ dev-java/jsr223:0"
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.5
+ dev-java/ant-core:0
+ dev-java/junit:0
+ ${CDEPEND}"
+
+java_prepare() {
+ epatch "${FILESDIR}/${P}-build.patch"
+
+ rm -Rfv org || die "Unable to remove class files."
+ find extlibs -iname '*.jar' | xargs rm -fv || die "Unable to remove bundled jars"
+ find "${WORKDIR}" -iname '*.pyc' | xargs rm -fv
+ java-pkg_jar-from --into extlibs libreadline-java libreadline-java.jar \
+ libreadline-java-0.8.jar
+ java-pkg_jar-from --into extlibs antlr-3 antlr3.jar antlr-3.1.3.jar
+ java-pkg_jar-from --into extlibs antlr antlr.jar antlr-2.7.7.jar
+ java-pkg_jar-from --into extlibs stringtemplate stringtemplate.jar \
+ stringtemplate-3.2.jar
+ java-pkg_jar-from --into extlibs servlet-api-2.5 servlet-api.jar \
+ servlet-api-2.5.jar
+ java-pkg_jar-from --into extlibs asm-3 asm.jar asm-3.1.jar
+ java-pkg_jar-from --into extlibs asm-3 asm-commons.jar \
+ asm-commons-3.1.jar
+ java-pkg_jar-from --into extlibs constantine constantine.jar \
+ constantine-0.4.jar
+ java-pkg_jar-from --into extlibs jline jline.jar \
+ jline-0.9.95-SNAPSHOT.jar
+ java-pkg_jar-from --into extlibs jna jna.jar
+ java-pkg_jar-from --into extlibs jna-posix jna-posix.jar
+ java-pkg_jar-from --build-only --into extlibs ant-core ant.jar
+ java-pkg_jar-from --build-only --into extlibs junit junit.jar \
+ junit-3.8.2.jar
+ java-pkg_jar-from --into extlibs xerces-2 xercesImpl.jar
+ java-pkg_jar-from --into extlibs jsr223 script-api.jar \
+ livetribe-jsr223-2.0.5.jar
+
+ echo "has.repositories.connection=false" > ant.properties
+
+ if use oracle; then
+ echo \
+ "oracle.jar=$(java-pkg-getjar jdbc-oracle-bin-10.2 ojdbc14.jar)" \
+ >> ant.properties
+ fi
+}
+
+src_compile() {
+ local antflags=""
+ local pylib="../Python-${PYVER}/Lib"
+ antflags="${antflags} -Dpython.lib=${pylib}"
+ eant ${antflags} developer-build $(use_doc javadoc)
+}
+
+# Restrict tests as some dont compile and others (a couple) are broken.
+RESTRICT="test"
+src_test() {
+#[exec] 311 tests OK.
+#[exec] 3 tests skipped:
+#[exec] test_subprocess test_urllib2net test_urllibnet
+#[exec] 2 tests failed:
+#[exec] test_pbcvm test_pkgimport
+#[exec] 2 fails unexpected:
+#[exec] test_pbcvm test_pkgimport
+ local antflags=""
+ antflags="${antflags} -Dgentoo.library.path=$(java-config -di jna-posix)"
+ antflags="${antflags} -Dpython.home=dist"
+ local pylib="../Python-${PYVER}/Lib"
+ antflags="${antflags} -Dpython.lib=${pylib}"
+ ANT_TASKS="ant-junit" eant ${antflags} test
+}
+
+src_install() {
+ dodoc README.txt NEWS ACKNOWLEDGMENTS README.txt
+ cd dist || die
+ java-pkg_newjar "${PN}-dev.jar"
+
+ local java_args="-Dpython.home=/usr/share/${PN}-${SLOT}"
+ java_args="${java_args} -Dpython.cachedir=\${JYTHON_CACHEDIR-\${HOME}/.jythoncachedir}"
+ java_args="${java_args} -Dpython.executable=${ROOT}/usr/bin/jython-${SLOT}"
+
+ java-pkg_dolauncher jython-${SLOT} \
+ --main "org.python.util.jython" \
+ --pkg_args "${java_args}"
+ sed -i -e 's_#!/bin/bash_#!/bin/bash\nunset EPYTHON_g' \
+ "${D}/usr/binjython-2.5"
+
+ java-pkg_register-optional-dependency jdbc-mysql
+ java-pkg_register-optional-dependency jdbc-postgresql
+
+ insinto /usr/share/${PN}-${SLOT}
+ doins -r Lib registry
+
+ use doc && java-pkg_dojavadoc Doc/javadoc
+ use source && java-pkg_dosrc ../src
+ cd "${S}"
+ use examples && java-pkg_doexamples Demo/*
+}
+
+pkg_postinst() {
+ einfo "Version of jython > 2.2* no longer has jythonc. Please see"
+ einfo "http://www.jython.org/Project/jythonc.html for details"
+
+ if use readline; then
+ elog
+ elog "To use readline you need to add the following to your registry"
+ elog
+ elog "python.console=org.python.util.ReadlineConsole"
+ elog "python.console.readlinelib=GnuReadline"
+ elog
+ elog "The global registry can be found in /usr/share/${PN}/registry"
+ elog "User registry in \$HOME/.jython"
+ elog "See http://www.jython.org/docs/registry.html for more information"
+ elog ""
+ fi
+}