the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: xmlbeans
Version: 2.2.0
Revision: 2
Type: java(1.5)
Source: mirror:apache:%n/source/%n-%v-src.tgz
Source-MD5: 876997b12c591cae606c6db6b9f2aafd
SourceDirectory: %n-%v
BuildDepends: fink (>= 0.24.12-1), system-java-dev (>= 1.5)
Depends: system-java (>= 1.5), saxon-b (>= 8.6.1), xerces-j, xalan-j, stax
PatchFile: %n.patch
PatchFile-MD5: 30cbefb2d670314d6d519bb1f9421dee
CompileScript: <<
#!/bin/sh -ex
ant
ant docs
<<
InstallScript: <<
#!/bin/sh -ex
# Scripts
mkdir -p %i/bin
cp bin/dumpxsb %i/bin
cp bin/inst2xsd %i/bin
cp bin/scomp %i/bin
cp bin/sdownload %i/bin
cp bin/sfactor %i/bin
cp bin/svalidate %i/bin
cp bin/validate %i/bin
cp bin/xpretty %i/bin
cp bin/xsd2inst %i/bin
cp bin/xsdtree %i/bin
cp bin/xstc %i/bin
# Fix permissions ("other" mode did not have executable bit set)
find %i/bin -type f -print0 | xargs -0 chmod 755
# Documentation
mkdir -p %i/share/doc/%n/docs
cp -R docs/* %i/share/doc/%n/docs/
# Samples
mkdir -p %i/share/doc/%n/samples
cp -R samples/* %i/share/doc/%n/samples/
# Fix permissions
find %i/share/doc/%n -type d -print0 | xargs -0 chmod 755
find %i/share/doc/%n -type f -print0 | xargs -0 chmod 644
# The jam source JAR (not binary)
mkdir -p %i/share/%n/jam
cp external/lib/jam* %i/share/%n/jam
# Fix permissions
find %i/share/%n -type d -print0 | xargs -0 chmod 755
find %i/share/%n -type f -print0 | xargs -0 chmod 644
<<
JarFiles: build/lib/xbean.jar build/lib/xbean_xpath.jar build/lib/xmlpublic.jar
DocFiles: LICENSE.txt NOTICE.txt README.txt
Homepage: http://xmlbeans.apache.org/
Maintainer: Trevor Harmon
Description: XML processing tool for Java
DescDetail: <<
XMLBeans is a tool that allows you to access the full power of XML in a Java
friendly way. The idea is that you can take advantage of the richness and
features of XML and XML Schema and have these features mapped as naturally as
possible to the equivalent Java language and typing constructs. XMLBeans uses
XML Schema to compile Java interfaces and classes that you can then use to
access and modify XML instance data. Using XMLBeans is similar to using any
other Java interface/class, you will see things like getFoo or setFoo just as
you would expect when working with Java. While a major use of XMLBeans is to
access your XML instance data with strongly typed Java classes there are also
API's that allow you access to the full XML infoset (XMLBeans keeps XML Infoset
fidelity) as well as to allow you to reflect into the XML schema itself
through an XML Schema Object model.
<<
DescUsage: <<
For the extension feature using plain .java files, the jam-0.1.0-src.jar file
can be found in the %p/share/%n/jam directory.
<<
DescPackaging: <<
saxon-b is required for XPath/XQuery.
xerces-j is required for Resolver (http://xml.apache.org/commons/components/resolver/).
xalan-j is required for JAXP.
stax is required for JSR-173.
The purpose of the Piccolo JARs in external/lib is unclear. They are currently
not included in the Fink package.
The patch changes the build file in the following ways:
* Alters the "version" target so that svn-client and ant-optional are not
needed.
* Alters the "saxon8.jar" target to prevent the unnecessary attempt to
download saxonb8-6-1.zip.
* Alters the "javadoc" target so that links to external JavaDoc packages are
removed. This is unfortunate, but it's necessary to comply with the Fink
policy that the Internet not be accessed during build.
The patch also alters the helper scripts (in %p/bin) so that the XMLBEANS_LIB
and XMLBEANS_HOME environment variables don't need to be set.
<<
License: BSD
diff -ur xmlbeans-2.2.0.orig/bin/dumpxsb xmlbeans-2.2.0/bin/dumpxsb
--- xmlbeans-2.2.0.orig/bin/dumpxsb 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/dumpxsb 2006-09-24 12:45:23.000000000 -0700
@@ -18,16 +18,4 @@
#XSB file dumper
#Prints the contents of an xsb file in human-readmble form
-echo `dirname $0`
-
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -classpath "$cp" org.apache.xmlbeans.impl.tool.XsbDumper "$@"
+java org.apache.xmlbeans.impl.tool.XsbDumper "$@"
diff -ur xmlbeans-2.2.0.orig/bin/inst2xsd xmlbeans-2.2.0/bin/inst2xsd
--- xmlbeans-2.2.0.orig/bin/inst2xsd 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/inst2xsd 2006-09-24 12:45:36.000000000 -0700
@@ -18,14 +18,4 @@
#Instance to Schema tool
#Builds xsd files from xml instance files.
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -classpath "$cp" org.apache.xmlbeans.impl.inst2xsd.Inst2Xsd "$@"
+java org.apache.xmlbeans.impl.inst2xsd.Inst2Xsd "$@"
diff -ur xmlbeans-2.2.0.orig/bin/scomp xmlbeans-2.2.0/bin/scomp
--- xmlbeans-2.2.0.orig/bin/scomp 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/scomp 2006-09-24 12:47:20.000000000 -0700
@@ -18,14 +18,4 @@
#Schema compiler
#Builds XBean types from xsd files.
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$JAVA_HOME/lib/tools.jar:$XMLBEANS_LIB/resolver.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -Xmx256m -classpath "$cp" org.apache.xmlbeans.impl.tool.SchemaCompiler "$@"
+java -Xmx256m org.apache.xmlbeans.impl.tool.SchemaCompiler "$@"
diff -ur xmlbeans-2.2.0.orig/bin/sdownload xmlbeans-2.2.0/bin/sdownload
--- xmlbeans-2.2.0.orig/bin/sdownload 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/sdownload 2006-09-24 12:47:20.000000000 -0700
@@ -18,14 +18,4 @@
#Schema downloader
#Tool to download Schema files
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -classpath "$cp" org.apache.xmlbeans.impl.tool.SchemaResourceManager "$@"
+java org.apache.xmlbeans.impl.tool.SchemaResourceManager "$@"
diff -ur xmlbeans-2.2.0.orig/bin/sfactor xmlbeans-2.2.0/bin/sfactor
--- xmlbeans-2.2.0.orig/bin/sfactor 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/sfactor 2006-09-24 12:47:20.000000000 -0700
@@ -20,15 +20,5 @@
## Factors redundant definitions out of a set of schemas and
## uses imports instead.
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/resolver.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -Xmx256m -classpath "$cp" org.apache.xmlbeans.impl.tool.FactorImports "$@"
+java -Xmx256m org.apache.xmlbeans.impl.tool.FactorImports "$@"
diff -ur xmlbeans-2.2.0.orig/bin/svalidate xmlbeans-2.2.0/bin/svalidate
--- xmlbeans-2.2.0.orig/bin/svalidate 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/svalidate 2006-09-24 12:47:20.000000000 -0700
@@ -19,14 +19,4 @@
#
# Validates an instance against a schema.
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/jsr173_1.0_ri.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -classpath "$cp" org.apache.xmlbeans.impl.tool.StreamInstanceValidator "$@"
+java org.apache.xmlbeans.impl.tool.StreamInstanceValidator "$@"
diff -ur xmlbeans-2.2.0.orig/bin/validate xmlbeans-2.2.0/bin/validate
--- xmlbeans-2.2.0.orig/bin/validate 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/validate 2006-09-24 12:47:20.000000000 -0700
@@ -19,14 +19,4 @@
#
# Validates an instance against a schema.
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-exec java -classpath "$cp" org.apache.xmlbeans.impl.tool.InstanceValidator "$@"
+java org.apache.xmlbeans.impl.tool.InstanceValidator "$@"
diff -ur xmlbeans-2.2.0.orig/bin/xpretty xmlbeans-2.2.0/bin/xpretty
--- xmlbeans-2.2.0.orig/bin/xpretty 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/xpretty 2006-09-24 12:47:20.000000000 -0700
@@ -17,14 +17,4 @@
#Invokes pretty printer
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -classpath "$cp" org.apache.xmlbeans.impl.tool.PrettyPrinter "$@"
+java org.apache.xmlbeans.impl.tool.PrettyPrinter "$@"
diff -ur xmlbeans-2.2.0.orig/bin/xsd2inst xmlbeans-2.2.0/bin/xsd2inst
--- xmlbeans-2.2.0.orig/bin/xsd2inst 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/xsd2inst 2006-09-24 12:47:20.000000000 -0700
@@ -17,14 +17,4 @@
#Schema to instance tool
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -classpath "$cp" org.apache.xmlbeans.impl.xsd2inst.SchemaInstanceGenerator "$@"
+java org.apache.xmlbeans.impl.xsd2inst.SchemaInstanceGenerator "$@"
diff -ur xmlbeans-2.2.0.orig/bin/xsdtree xmlbeans-2.2.0/bin/xsdtree
--- xmlbeans-2.2.0.orig/bin/xsdtree 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/xsdtree 2006-09-24 12:47:20.000000000 -0700
@@ -17,14 +17,4 @@
# Invokes type hierarchy printer
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -Xmx256m -classpath "$cp" org.apache.xmlbeans.impl.tool.TypeHierarchyPrinter "$@"
+java -Xmx256m org.apache.xmlbeans.impl.tool.TypeHierarchyPrinter "$@"
diff -ur xmlbeans-2.2.0.orig/bin/xstc xmlbeans-2.2.0/bin/xstc
--- xmlbeans-2.2.0.orig/bin/xstc 2006-05-05 10:28:16.000000000 -0700
+++ xmlbeans-2.2.0/bin/xstc 2006-09-24 12:54:03.000000000 -0700
@@ -17,14 +17,4 @@
# Invokes XSTC
-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
-
-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/resolver.jar
-
-case "`uname`" in
- CYGWIN*)
- cp=`cygpath -w -p $cp`
- ;;
-esac
-
-java -classpath "$cp" org.apache.xmlbeans.impl.tool.XSTCTester "$@"
+java org.apache.xmlbeans.impl.tool.XSTCTester "$@"
Only in xmlbeans-2.2.0/: build
diff -ur xmlbeans-2.2.0.orig/build.xml xmlbeans-2.2.0/build.xml
--- xmlbeans-2.2.0.orig/build.xml 2006-06-09 12:01:23.000000000 -0700
+++ xmlbeans-2.2.0/build.xml 2006-09-24 13:01:49.000000000 -0700
@@ -100,19 +100,6 @@
-
-
- verbose="true" usetimestamp="true" ignoreerrors="true"/>
-
-
-
-
-
-
-
-
-
-
-
-
- replace="svn.last.rev=r\1"
- byline="true"/>
-
-
-
-
-
-
-
-
+
@@ -294,10 +265,6 @@
windowtitle="XMLBeans ${version.base} Documentation" source="${javac.source}" stylesheetfile="docs/stylesheet.css">
-
-
-
-