]> git.pld-linux.org Git - packages/libreoffice.git/blobdiff - libreoffice-hamcrest.patch
- updated hamcrest/junit patch
[packages/libreoffice.git] / libreoffice-hamcrest.patch
index 05b0a56bfcceba53a0b87481f60dcc13c07d41a9..8c1c6835d6600104e34ca614e9f14e72bf64a38f 100644 (file)
@@ -1,24 +1,13 @@
---- configure.ac.orig  2012-02-01 13:56:49.000000000 +0100
-+++ configure.ac       2012-02-23 18:57:32.000000000 +0100
-@@ -7561,6 +7561,11 @@
-                     [AC_MSG_ERROR(commons-logging.jar not found.)], [])
-             fi
-         fi
-+        # hamcrest is a dependency of junit, add it to the classpath if
-+        # found
-+        if test -e /usr/share/java/hamcrest-core.jar; then
-+            OOO_JUNIT_JAR=$OOO_JUNIT_JAR:/usr/share/java/hamcrest-core.jar
-+        fi
-     else
-         AC_MSG_RESULT([internal])
-         SYSTEM_APACHE_COMMONS=NO
-@@ -9159,7 +9159,7 @@
-     if test $? -eq 0; then
-         # check if either class-path entry is available for hamcrest or
-         # it's bundled
--        if "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" |$GREP -q hamcrest || \
-+        if "$JAVA_HOME/bin/jar" tf /usr/share/java/hamcrest-core.jar |$GREP -q hamcrest || \
-             "$UNZIP" -c "$OOO_JUNIT_JAR" META-INF/MANIFEST.MF |$GREP 'Class-Path:' | $GREP -q 'hamcrest'; then
-             AC_MSG_RESULT([$OOO_JUNIT_JAR])
-         else
-
+--- ../BUILD/libreoffice-4.3.2.2/configure.ac.orig     2014-10-12 14:42:16.760723674 +0200
++++ ../BUILD/libreoffice-4.3.2.2/configure.ac  2014-10-12 14:59:04.195877183 +0200
+@@ -12315,6 +12315,10 @@
+     if test "$_os" = "WINNT"; then
+         OOO_JUNIT_JAR=`cygpath -m "$OOO_JUNIT_JAR"`
+     fi
++    # hamcrest is a dependency of junit, add it to the classpath if found
++    if test -e /usr/share/java/hamcrest-core.jar; then
++        OOO_JUNIT_JAR=$OOO_JUNIT_JAR:/usr/share/java/hamcrest-core.jar
++    fi
+     printf 'import org.junit.Before; import org.hamcrest.BaseDescription;' \
+         > conftest.java
+     if "$JAVACOMPILER" -classpath "$OOO_JUNIT_JAR" conftest.java >&5 2>&5; then
This page took 0.042339 seconds and 4 git commands to generate.