aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2010-03-06 07:19:39 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2010-03-06 07:19:39 +0000
commit343ae9adcda3c22f127d20834154cd408e03fc8a (patch)
tree566a5a6bb0fb32f352fd1eced7ee3cf832c5470d /dev-java/flexdock/files/flexdock-0.5.1-nativelib.patch
parentsci-mathematics/normaliz QA (diff)
downloadsci-343ae9adcda3c22f127d20834154cd408e03fc8a.tar.gz
sci-343ae9adcda3c22f127d20834154cd408e03fc8a.tar.bz2
sci-343ae9adcda3c22f127d20834154cd408e03fc8a.zip
Added flexdock
Diffstat (limited to 'dev-java/flexdock/files/flexdock-0.5.1-nativelib.patch')
-rw-r--r--dev-java/flexdock/files/flexdock-0.5.1-nativelib.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-java/flexdock/files/flexdock-0.5.1-nativelib.patch b/dev-java/flexdock/files/flexdock-0.5.1-nativelib.patch
new file mode 100644
index 000000000..ae8df8f23
--- /dev/null
+++ b/dev-java/flexdock/files/flexdock-0.5.1-nativelib.patch
@@ -0,0 +1,21 @@
+diff -urN flexdock-0.5.1-orig/src/java/drag/org/flexdock/docking/drag/outline/xlib/XlibRubberBand.java flexdock-0.5.1/src/java/drag/org/flexdock/docking/drag/outline/xlib/XlibRubberBand.java
+--- flexdock-0.5.1-orig/src/java/drag/org/flexdock/docking/drag/outline/xlib/XlibRubberBand.java 2010-02-22 21:35:42.000000000 -0500
++++ flexdock-0.5.1/src/java/drag/org/flexdock/docking/drag/outline/xlib/XlibRubberBand.java 2010-02-24 23:31:55.000000000 -0500
+@@ -17,7 +17,7 @@
+ *
+ */
+ public class XlibRubberBand extends RubberBand {
+- private static final String NATIVE_RESOURCE_PATH = "org/flexdock/docking/drag/outline/xlib/";
++ private static final String NATIVE_RESOURCE_PATH = "/usr/lib/flexdock/";
+ private static final String NATIVE_RESOURCE = "libRubberBand.so";
+ private static final String NATIVE_RESOURCE_START = "libRubberBand";
+ private static final String NATIVE_RESOURCE_END = ".so";
+@@ -46,7 +46,7 @@
+ String resource = NATIVE_RESOURCE_PATH + NATIVE_RESOURCE_START + key + NATIVE_RESOURCE_END;
+
+ try {
+- ResourceManager.loadLibrary(lib, resource);
++ System.load(resource);
+ // if the library was successfully loaded, then we don't
+ // need to do anything else.
+ return;