diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2007-05-03 22:10:43 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2007-05-03 22:10:43 +0000 |
commit | 7852230ff66805c8a4348e57b1c25a3c826eeeb4 (patch) | |
tree | d9c5665ea49997197a71fc36eb80533dce3e3678 /net-p2p/bittyrant/files | |
parent | 4fb9227f5210b1777480814e6c8a9166f4094c6f (diff) |
Notes
Diffstat (limited to 'net-p2p/bittyrant/files')
4 files changed, 73 insertions, 0 deletions
diff --git a/net-p2p/bittyrant/files/bittyrant.in b/net-p2p/bittyrant/files/bittyrant.in new file mode 100644 index 000000000000..bdb81a4dc03d --- /dev/null +++ b/net-p2p/bittyrant/files/bittyrant.in @@ -0,0 +1,11 @@ +#!/bin/sh +# +# $FreeBSD$ + +export JAVA_VERSION="%%JAVA_VERSION%%" +export JAVA_OS="%%JAVA_OS%%" + +LIB_PATH="%%LIBDIR%%" +CLASS_PATH="%%JAVAJARDIR%%/%%JARFILE%%:%%SWTJAR%%" + +exec "%%JAVA%%" -cp "${CLASS_PATH}" "-Djava.library.path=${LIB_PATH}" "-Dos.name=FreeBSD" "-Dazureus.config.path=${HOME}/.BitTyrant" "-Duser.dir=${HOME}/.BitTyrant" org.gudy.azureus2.ui.swt.Main "${@}" diff --git a/net-p2p/bittyrant/files/patch-build.xml b/net-p2p/bittyrant/files/patch-build.xml new file mode 100644 index 000000000000..1ca3632e3b17 --- /dev/null +++ b/net-p2p/bittyrant/files/patch-build.xml @@ -0,0 +1,13 @@ +--- build.xml.orig Thu Jan 4 15:51:46 2007 ++++ build.xml Thu May 3 00:29:25 2007 +@@ -32,6 +32,10 @@ + <!-- increasing the memory for javac avoids heap space problems when compiling so many source files --> + <!--- uses java1.5 --> + <javac srcdir="${root.dir}" destdir="${root.dir}" nowarn="yes" source="1.5" target="1.5" includeAntRuntime="no" debug="true" debuglevel="lines,vars,source" fork="yes" memoryMaximumSize="256m"> ++ <include name="**/*.java"/> ++ <exclude name="**/Win32*.java"/> ++ <exclude name="**/swt/osx/**"/> ++ <exclude name="**/macosx/**"/> + <classpath refid="libs.classpath" /> + </javac> + </target> diff --git a/net-p2p/bittyrant/files/patch-org__gudy__azureus2__platform__macosx__access__jnilib__OSXAccess.java b/net-p2p/bittyrant/files/patch-org__gudy__azureus2__platform__macosx__access__jnilib__OSXAccess.java new file mode 100644 index 000000000000..0c6659f8b515 --- /dev/null +++ b/net-p2p/bittyrant/files/patch-org__gudy__azureus2__platform__macosx__access__jnilib__OSXAccess.java @@ -0,0 +1,20 @@ +--- ./org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java.orig Fri Nov 3 16:47:18 2006 ++++ ./org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java Thu May 3 00:24:10 2007 +@@ -19,7 +19,7 @@ + */ + package org.gudy.azureus2.platform.macosx.access.jnilib; + +-import org.eclipse.swt.internal.carbon.AEDesc; ++//import org.eclipse.swt.internal.carbon.AEDesc; + + import org.gudy.azureus2.core3.util.Debug; + +@@ -42,7 +42,7 @@ + } + } + +- public static final native int AEGetParamDesc(int theAppleEvent, int theAEKeyword, int desiredType, AEDesc result); ++// public static final native int AEGetParamDesc(int theAppleEvent, int theAEKeyword, int desiredType, AEDesc result); + + public static final native String getVersion(); + diff --git a/net-p2p/bittyrant/files/patch-org__gudy__azureus2__ui__swt__test__PrintTransferTypes.java b/net-p2p/bittyrant/files/patch-org__gudy__azureus2__ui__swt__test__PrintTransferTypes.java new file mode 100644 index 000000000000..b39e3fb53b64 --- /dev/null +++ b/net-p2p/bittyrant/files/patch-org__gudy__azureus2__ui__swt__test__PrintTransferTypes.java @@ -0,0 +1,29 @@ +--- ./org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java.orig Fri Nov 3 16:46:40 2006 ++++ ./org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java Thu May 3 00:25:01 2007 +@@ -40,7 +40,7 @@ + + TransferData[] data = event.dataTypes; + for (int i = 0; i < data.length; i++) { +- int id = data[i].type; ++ long id = data[i].type; + String name = getNameFromId(id); + System.out.println("Data type is " + id + " " + name); + } +@@ -96,8 +96,8 @@ + protected int[] getTypeIds() { + return ids; + } +- static String getNameFromId(int id) { +- switch (id) { ++ static String getNameFromId(long id) { ++ switch ((int)id) { + case 1 : + return "CF_TEXT"; + case 8 : +@@ -144,4 +144,4 @@ + } + return "*UNKNOWN_TYPE*"; + } +-} +\ No newline at end of file ++} |