Update of /cvsroot/fink/experimental/michga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12218
Added Files:
fop.info fop.patch
Log Message:
fop for use with java 1.5 installed
--- NEW FILE: fop.info ---
Package: fop
Version: 0.20.5
Revision: 7
Maintainer: Thomas Kotzian <[EMAIL PROTECTED]>
Source: mirror:custom:/xml/%n/%n-%v-src.tar.gz
CustomMirror: <<
nam-US: http://apache.webmeta.com/
nam-US: http://apache.get-software.com/
nam-US: http://www.oss.redundant.com/pub/apache/
nam-US: http://apache.secsup.org/dist/
asi-JP: http://www.meisei-u.ac.jp/mirror/apache/dist/
asi-JP: http://japache.infoscience.co.jp/apache/dist/
asi-SG: http://apache.en.com.sg/
eur-DE: http://www.apache.de/dist/
eur-HR: ftp://sunsite.srce.hr/mirrors/ftp.apache.org/apache/dist/
eur-CZ: ftp://ftp.gin.cz/pub/mirrors/www.apache.org/dist/
eur-SK: http://apache.tuke.sk/
eur-DK: ftp://sunsite.auc.dk/pub/infosystems/www/apache/dist/
eur-DK: ftp://ftp.dkuug.dk/pub/apache/
eur-BE: http://apache.belnet.be/dist/
eur-AT: http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/
Primary: http://nagoya.apache.org/mirror/
Secondary: http://www.apache.org/dist/
<<
Source-MD5: 1a31eb1357e5d4b8d32d4cb3edae2da2
SourceDirectory: %n-%v
Type: java (1.4)
PatchScript: sed 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1
CompileScript: <<
#!/bin/sh -e
## Not needed since Type: java (1.4) is set
## JAVA_HOME=/Library/Java/Home ./build.sh
./build.sh
rm -f lib/ant*.jar
<<
JarFiles: build/fop.jar lib/*.jar
RuntimeVars: <<
## Need to adjust to the right Framework
JAVA_HOME: /System/Library/Frameworks/JavaVM.Framework/Versions/1.4.2/Home
<<
InstallScript: <<
mkdir -p %i/bin
install -m 0755 fop.sh %i/bin/fop
install -m 0755 fop_pfmreader.sh %i/bin/fop_pfmreader
install -m 0755 fop_ttfreader.sh %i/bin/fop_ttfreader
mkdir -p %i/share/doc/%n/xslfoRef
cp -r docs/* %i/share/doc/%n/xslfoRef/
cp -r build/site/* %i/share/doc/%n/
<<
DocFiles: CHANGES LICENSE README ReleaseNotes.html STATUS
Description: Formatting Objects (FO) Processor
DescDetail: <<
FOP (Formatting Objects Processor) is the world's first print formatter driven
by XSL formatting objects and the world's first output independent formatter.
.
It is a Java application that reads a formatting object tree and then renders
the resulting pages to a specified output. Output formats currently supported
are PDF, PCL, PS, SVG, XML (area tree representation), Print, AWT, MIF and TXT.
<<
License: BSD
Homepage: http://xml.apache.org/fop
--- NEW FILE: fop.patch ---
diff -urN fop-0.20.5.orig/fop.sh fop-0.20.5/fop.sh
--- fop-0.20.5.orig/fop.sh 2003-07-15 04:03:23.000000000 +0200
+++ fop-0.20.5/fop.sh 2004-11-17 09:21:18.000000000 +0100
@@ -11,7 +11,11 @@
darwin=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
- Darwin*) darwin=true ;;
+ Darwin*) darwin=true
+ if [ -z "$JAVA_HOME" ] ; then
+ JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+ fi
+ ;;
esac
if [ -z "$FOP_HOME" ] ; then
@@ -42,6 +46,8 @@
fi
[EMAIL PROTECTED]@/share/java/fop
+
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$FOP_HOME" ] &&
@@ -76,10 +82,10 @@
fi
# add fop.jar, which resides in $FOP_HOME/build
-LOCALCLASSPATH=${FOP_HOME}/build/fop.jar:$LOCALCLASSPATH
+LOCALCLASSPATH=${FOP_HOME}/fop.jar:$LOCALCLASSPATH
# add in the dependency .jar files, which reside in $FOP_HOME/lib
-DIRLIBS=${FOP_HOME}/lib/*.jar
+DIRLIBS=${FOP_HOME}/*.jar
for i in ${DIRLIBS}
do
# if the directory is empty, then it will return the input string
@@ -100,5 +106,5 @@
LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
fi
-$JAVACMD -classpath "$LOCALCLASSPATH" $FOP_OPTS org.apache.fop.apps.Fop "$@"
+$JAVACMD -Xms64M -Xmx320M -Djava.awt.headless=true -classpath
"$LOCALCLASSPATH" $FOP_OPTS org.apache.fop.apps.Fop "$@"
diff -urN fop-0.20.5.orig/fop_pfmreader.sh fop-0.20.5/fop_pfmreader.sh
--- fop-0.20.5.orig/fop_pfmreader.sh 1970-01-01 01:00:00.000000000 +0100
+++ fop-0.20.5/fop_pfmreader.sh 2004-11-17 10:39:43.000000000 +0100
@@ -0,0 +1,110 @@
+#! /bin/sh
+#
+# Shell script to run FOP, adapted from the Jakarta-Ant project.
+
+if [ -f $HOME/.foprc ] ; then
+ . $HOME/.foprc
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+ Darwin*) darwin=true
+ if [ -z "$JAVA_HOME" ] ; then
+ JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+ fi
+ ;;
+esac
+
+if [ -z "$FOP_HOME" ] ; then
+ # try to find FOP
+ if [ -d /opt/fop ] ; then
+ FOP_HOME=/opt/fop
+ fi
+
+ if [ -d ${HOME}/opt/fop ] ; then
+ FOP_HOME=${HOME}/opt/fop
+ fi
+
+ ## resolve links - $0 may be a link to fop's home
+ PRG=$0
+ progname=`basename $0`
+
+ while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '.*/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname $PRG`/$link"
+ fi
+ done
+
+ FOP_HOME=`dirname "$PRG"`
+
+fi
+
[EMAIL PROTECTED]@/share/java/fop
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$FOP_HOME" ] &&
+ FOP_HOME=`cygpath --unix "$FOP_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ else
+ JAVACMD=java
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly."
+ echo " We cannot execute $JAVACMD"
+ exit
+fi
+
+if [ -n "$CLASSPATH" ] ; then
+ LOCALCLASSPATH=$CLASSPATH
+fi
+
+# add fop.jar, which resides in $FOP_HOME/build
+LOCALCLASSPATH=${FOP_HOME}/fop.jar:$LOCALCLASSPATH
+
+# add in the dependency .jar files, which reside in $FOP_HOME/lib
+DIRLIBS=${FOP_HOME}/*.jar
+for i in ${DIRLIBS}
+do
+ # if the directory is empty, then it will return the input string
+ # this is stupid, so case for it
+ if [ "$i" != "${DIRLIBS}" ] ; then
+ if [ -z "$LOCALCLASSPATH" ] ; then
+ LOCALCLASSPATH=$i
+ else
+ LOCALCLASSPATH="$i":$LOCALCLASSPATH
+ fi
+ fi
+done
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ FOP_HOME=`cygpath --path --windows "$FOP_HOME"`
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+ LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
+fi
+
+$JAVACMD -Xms64M -Xmx320M -Djava.awt.headless=true -classpath
"$LOCALCLASSPATH" $FOP_OPTS org.apache.fop.fonts.apps.PFMReader "$@"
+
diff -urN fop-0.20.5.orig/fop_ttfreader.sh fop-0.20.5/fop_ttfreader.sh
--- fop-0.20.5.orig/fop_ttfreader.sh 1970-01-01 01:00:00.000000000 +0100
+++ fop-0.20.5/fop_ttfreader.sh 2004-11-17 10:40:18.000000000 +0100
@@ -0,0 +1,110 @@
+#! /bin/sh
+#
+# Shell script to run FOP, adapted from the Jakarta-Ant project.
+
+if [ -f $HOME/.foprc ] ; then
+ . $HOME/.foprc
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+ Darwin*) darwin=true
+ if [ -z "$JAVA_HOME" ] ; then
+ JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+ fi
+ ;;
+esac
+
+if [ -z "$FOP_HOME" ] ; then
+ # try to find FOP
+ if [ -d /opt/fop ] ; then
+ FOP_HOME=/opt/fop
+ fi
+
+ if [ -d ${HOME}/opt/fop ] ; then
+ FOP_HOME=${HOME}/opt/fop
+ fi
+
+ ## resolve links - $0 may be a link to fop's home
+ PRG=$0
+ progname=`basename $0`
+
+ while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '.*/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname $PRG`/$link"
+ fi
+ done
+
+ FOP_HOME=`dirname "$PRG"`
+
+fi
+
[EMAIL PROTECTED]@/share/java/fop
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$FOP_HOME" ] &&
+ FOP_HOME=`cygpath --unix "$FOP_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ else
+ JAVACMD=java
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly."
+ echo " We cannot execute $JAVACMD"
+ exit
+fi
+
+if [ -n "$CLASSPATH" ] ; then
+ LOCALCLASSPATH=$CLASSPATH
+fi
+
+# add fop.jar, which resides in $FOP_HOME/build
+LOCALCLASSPATH=${FOP_HOME}/fop.jar:$LOCALCLASSPATH
+
+# add in the dependency .jar files, which reside in $FOP_HOME/lib
+DIRLIBS=${FOP_HOME}/*.jar
+for i in ${DIRLIBS}
+do
+ # if the directory is empty, then it will return the input string
+ # this is stupid, so case for it
+ if [ "$i" != "${DIRLIBS}" ] ; then
+ if [ -z "$LOCALCLASSPATH" ] ; then
+ LOCALCLASSPATH=$i
+ else
+ LOCALCLASSPATH="$i":$LOCALCLASSPATH
+ fi
+ fi
+done
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ FOP_HOME=`cygpath --path --windows "$FOP_HOME"`
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+ LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
+fi
+
+$JAVACMD -Xms64M -Xmx320M -Djava.awt.headless=true -classpath
"$LOCALCLASSPATH" $FOP_OPTS org.apache.fop.fonts.apps.TTFReader "$@"
+
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits