[med-svn] r10452 - trunk/packages/king/trunk/debian/patches
Andreas Tille
tille at alioth.debian.org
Fri Apr 20 08:12:20 UTC 2012
Author: tille
Date: 2012-04-20 08:12:19 +0000 (Fri, 20 Apr 2012)
New Revision: 10452
Added:
trunk/packages/king/trunk/debian/patches/delete_mac_specific_file.patch
Modified:
trunk/packages/king/trunk/debian/patches/series
trunk/packages/king/trunk/debian/patches/use_debian_packaged_jars.patch
Log:
Delete Mac specific file as explicitely advised inside the source code
Added: trunk/packages/king/trunk/debian/patches/delete_mac_specific_file.patch
===================================================================
--- trunk/packages/king/trunk/debian/patches/delete_mac_specific_file.patch (rev 0)
+++ trunk/packages/king/trunk/debian/patches/delete_mac_specific_file.patch 2012-04-20 08:12:19 UTC (rev 10452)
@@ -0,0 +1,100 @@
+Author: Andreas Tille <tille at debian.org>
+Description: As advised in the comment below this file should
+ be deleted on non Mac platforms. If it is not deleted the
+ documentation building process will fail.
+
+--- king-2.20.110601.orig/king-2.20-src/src/king/MacDropTarget.java
++++ /dev/null
+@@ -1,92 +0,0 @@
+-// (jEdit options) :folding=explicit:collapseFolds=1:
+-//{{{ Package, imports
+-package king;
+-
+-import com.apple.eawt.*;
+-
+-//import java.awt.*;
+-//import java.awt.event.*;
+-import java.io.*;
+-import java.net.URL;
+-import java.text.DecimalFormat;
+-import java.util.*;
+-//import java.util.regex.*;
+-//import javax.swing.*;
+-import driftwood.util.SoftLog;
+-//}}}
+-/**
+-* <code>MacDropTarget</code> provides drag-and-drop document opening
+-* under Mac OS X. This file will not compile on non-Mac platforms
+-* and should be removed (no other code depends on it).
+-*
+-* <p>Copyright (C) 2003-2007 by Ian W. Davis. All rights reserved.
+-* <br>Begun on Fri Nov 7 09:41:14 EST 2003
+-*/
+-public class MacDropTarget implements ApplicationListener
+-{
+-//{{{ Constants
+-//}}}
+-
+-//{{{ Variable definitions
+-//##############################################################################
+- static Application application = null;
+- KingMain kMain;
+-//}}}
+-
+-//{{{ Constructor(s)
+-//##############################################################################
+- private MacDropTarget(KingMain kmain)
+- {
+- super();
+- kMain = kmain;
+- }
+-//}}}
+-
+-//{{{ bindTo
+-//##############################################################################
+- static public void bindTo(KingMain kMain)
+- {
+- if(application == null)
+- application = new Application();
+-
+- MacDropTarget drop = new MacDropTarget(kMain);
+- application.addApplicationListener(drop);
+- }
+-//}}}
+-
+-//{{{ Unhandled events
+-//##############################################################################
+- public void handleAbout(ApplicationEvent e) {
+- }
+- public void handleOpenApplication(ApplicationEvent e) {
+- }
+- public void handleReOpenApplication(ApplicationEvent e) {
+- }
+- public void handlePreferences(ApplicationEvent e) {
+- }
+- public void handlePrintFile(ApplicationEvent e) {
+- }
+-//}}}
+-
+-//{{{ handleOpenFile, handleQuit
+-//##############################################################################
+- public void handleOpenFile(ApplicationEvent ev)
+- {
+- //SoftLog.err.println("Received notification of file drop!");
+- File f = new File(ev.getFilename());
+- kMain.getFileDropHandler().doFileDrop(f);
+- ev.setHandled(true);
+- }
+-
+- public void handleQuit(ApplicationEvent ev)
+- {
+- // Necessary in order for Cmd-Q to work
+- ev.setHandled(true);
+- }
+-//}}}
+-
+-//{{{ empty_code_segment
+-//##############################################################################
+-//}}}
+-}//class
+-
Modified: trunk/packages/king/trunk/debian/patches/series
===================================================================
--- trunk/packages/king/trunk/debian/patches/series 2012-04-20 08:11:30 UTC (rev 10451)
+++ trunk/packages/king/trunk/debian/patches/series 2012-04-20 08:12:19 UTC (rev 10452)
@@ -1 +1,2 @@
use_debian_packaged_jars.patch
+delete_mac_specific_file.patch
Modified: trunk/packages/king/trunk/debian/patches/use_debian_packaged_jars.patch
===================================================================
--- trunk/packages/king/trunk/debian/patches/use_debian_packaged_jars.patch 2012-04-20 08:11:30 UTC (rev 10451)
+++ trunk/packages/king/trunk/debian/patches/use_debian_packaged_jars.patch 2012-04-20 08:12:19 UTC (rev 10452)
@@ -1,3 +1,6 @@
+Author: Andreas Tille <tille at debian.org>
+Description: Use Debian packaged itext.jar and jogl.jar
+
--- king-2.20.110601.orig/king-2.20-src/build.xml
+++ king-2.20.110601/king-2.20-src/build.xml
@@ -68,7 +68,7 @@
More information about the debian-med-commit
mailing list