Update of /cvsroot/fink/experimental/rangerrick/common/main/finkinfo/languages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15833
Added Files:
jython.info jython.patch
Log Message:
buttload of java updates, more to come
--- NEW FILE: jython.patch ---
diff -uNr jython-2.1.0.orig/org/python/core/PySystemState.java
jython-2.1.0.orig-patched/org/python/core/PySystemState.java
--- jython-2.1.0.orig/org/python/core/PySystemState.java 2001-12-31
06:18:18.000000000 -0500
+++ jython-2.1.0.orig-patched/org/python/core/PySystemState.java 2004-07-08
11:06:45.000000000 -0400
@@ -298,8 +298,8 @@
}
try {
addRegistryFile(new File(prefix, "registry"));
- File homeFile = new File(registry.getProperty("user.home"),
- ".jython");
+ File homeFile = new File(new File(registry.getProperty("user.home"),
+ ".jython"), "registry");
addRegistryFile(homeFile);
} catch (Exception exc) {
;
@@ -441,8 +441,13 @@
}
cachedir = new File(props.getProperty("python.cachedir", "cachedir"));
if (!cachedir.isAbsolute()) {
- cachedir = new File(PySystemState.prefix, cachedir.getPath());
- }
+ File jythondir = new File(System.getProperty("user.home"), ".jython");
+
+ if (!jythondir.isDirectory()) {
+ jythondir.mkdirs();
+ }
+
+ cachedir = new File(jythondir, cachedir.getPath()); }
}
private static void initPackages(Properties props) {
--- NEW FILE: jython.info ---
Package: jython
Version: 2.2
Revision: 0.alpha1.1
Source: mirror:custom:jython-cvs.tar.bz2
Source-MD5: b36026e31a3065681eddb99a526cd4c3
SourceDirectory: %n
Source2: mirror:custom:python-release22-maint-cvs.tar.bz2
Source2-MD5: 2b81cfa5288d88349cdfc86da4ec33d5
Source2ExtractDir: %n
Patch: %n.patch
BuildDepends: ht2html, jakarta-oro, jakarta-servletapi, mysql-java, postgresql-java |
postgresql-ssl-java, python22 | python22-nox, pyxml-py22, readline-java,
system-java14-dev
Depends: jakarta-oro, jakarta-servletapi, mysql-java, postgresql-java |
postgresql-ssl-java, readline-java, system-java14 | system-java15
CompileScript: <<
#!/bin/sh -xe
JAVAVER=`find /System/Library/Frameworks/JavaVM.framework/Versions -name include
2>/dev/null | perl -p -e 's,.*Versions/(.*?)/.*,$1,g' | grep -E '^1.4' | tail -1`
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/$JAVAVER/Home
export PATH="$JAVA_HOME/bin:$PATH"
find . -name \*.jar -exec rm -rf {} \; || :
find . -type d -name CVS -exec rm -rf {} \; || :
rm -rf org/apache || :
perl -p -i -e 's|execon|apply|g' build.xml
ant copy-dist -Dpython.lib=./python/dist/src/Lib -DPyXmlHome=%p/lib/python2.2
ant -Dpython.home="%p/bin" -Dht2html.dir="%p/lib/ht2html" doc
ant javadoc
<<
InstallScript: <<
#!/bin/sh -xe
JAVAVER=`find /System/Library/Frameworks/JavaVM.framework/Versions -name include
2>/dev/null | perl -p -e 's,.*Versions/(.*?)/.*,$1,g' | grep -E '^1.4' | tail -1`
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/$JAVAVER/Home
# documentation
rm -rf Doc/Makefile Doc/api
install -d -m 755 %i/share/doc/%n
mv dist/Doc/javadoc %i/share/doc/%n/
# data
find dist/Lib -type d -name test | xargs rm -rf
install -d -m 755 %i/share/%n
cp -pr dist/Lib %i/share/%n/
cp -pr dist/Tools %i/share/%n/
cp -pr dist/Demo %i/share/%n/
install -m 644 registry %i/share/%n/
# binaries
install -d -m 755 %i/bin
cat <<END >%i/bin/%n
#!/bin/sh
source /sw/bin/init.sh
export DYLD_LIBRARY_PATH="%p/lib:\$DYLD_LIBRARY_PATH"
# Source system prefs
if [ -f %p/etc/%n.conf ] ; then
. %p/etc/%n.conf
fi
# Source user prefs
if [ -f \$HOME/.%nrc ] ; then
. \$HOME/.%nrc
fi
# Configuration
MAIN_CLASS="org.python.util.%n"
BASE_FLAGS=-Dpython.home="%p/share/%n"
if [ -f %p/lib/libJavaReadline.jnilib ]; then
BASE_FLAGS="\$BASE_FLAGS -Dpython.console=org.python.util.ReadlineConsole"
BASE_FLAGS="\$BASE_FLAGS -Djava.library.path=%p/lib"
BASE_FLAGS="\$BASE_FLAGS -Dpython.console.readlinelib=GnuReadline"
fi
java \$MAIN_CLASS \$BASE_FLAGS "\$@"
END
cat <<END >%i/bin/jythonc
#!/bin/sh
%p/bin/%n %p/share/%n/Tools/jythonc/jythonc.py "\$@"
END
chmod 755 %i/bin/*
rm -f %i/share/%n/Lib/UserDict.py
<<
JarFiles: dist/*.jar
Homepage: http://www.jython.org/
Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
Description: An implementation of Python in Java
DescDetail: <<
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated
with the Java platform. It thus allows you to run Python on any Java
platform.
<<
License: BSD
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits