freebsd-ports/textproc/apache-xmlbeans/files/patch-bin___setlib
Thierry Thomas e6902c5714 textproc/apache-xmlbeans: adding XMLBeans, Java classes for XML
Note: this is release 3.1.0. The latest release is 5.0.3, but it is not
yet compatible with XLConnect (math/R-cran-XLConnect).
2022-05-01 22:09:07 +02:00

20 lines
691 B
Text

--- bin/_setlib.orig 2019-02-25 00:31:32 UTC
+++ bin/_setlib
@@ -19,14 +19,10 @@ if [ -z "$XMLBEANS_HOME" ]; then
XMLBEANS_HOME=`dirname $0`/..
fi
-XMLBEANS_LIB=
-if [ -f "$XMLBEANS_HOME"/build/lib/xbean.jar ]; then
- XMLBEANS_LIB=$XMLBEANS_HOME/build/lib
+if [ -f %%JAVAJARDIR%%/xmlbeans.jar ]; then
+ XMLBEANS_LIB=%%JAVAJARDIR%%
fi
-if [ -f "$XMLBEANS_HOME"/lib/xbean.jar ]; then
- XMLBEANS_LIB=$XMLBEANS_HOME/lib
-fi
if [ -z "$XMLBEANS_LIB" ]; then
- echo "ERROR: Could not find xbean.jar, try set XMLBEANS_LIB to the directory containing xbean.jar"
+ echo "ERROR: Could not find xmlbeans.jar, try set XMLBEANS_LIB to the directory containing xmlbeans.jar"
fi