#! /bin/sh /usr/share/dpatch/dpatch-run
## 01-without-osx.dpatch by Yves Combe <yves@ycombe.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Compiling without the apple platform.

@DPATCH@
diff -urNad carmetal-2.9.8~/src/Zirkel.java carmetal-2.9.8/src/Zirkel.java
--- carmetal-2.9.8~/src/Zirkel.java	2009-02-22 21:11:01.000000000 +0100
+++ carmetal-2.9.8/src/Zirkel.java	2009-02-22 21:14:55.000000000 +0100
@@ -96,14 +96,14 @@
 					PORT, FILES);
 
 			if (uniqueInstance.launch()) {
-
+			    /*
 				if (System.getProperty("mrj.version") != null) {
 
 					new eric.JMacOShandler();
 
 				}
 				
-
+			    */
 				rene.zirkel.Zirkel.main(args);
 
 			}
diff -urNad carmetal-2.9.8~/src/eric/JMacOShandler.java carmetal-2.9.8/src/eric/JMacOShandler.java
--- carmetal-2.9.8~/src/eric/JMacOShandler.java	2009-02-16 09:02:53.000000000 +0100
+++ carmetal-2.9.8/src/eric/JMacOShandler.java	1970-01-01 01:00:00.000000000 +0100
@@ -1,69 +0,0 @@
-/* 
-
-Copyright 2006 Eric Hakenholz
-
-This file is part of C.a.R. software.
-
-C.a.R. is a free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, version 3 of the License.
-
-C.a.R. is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
- */
-package eric;
-
-import com.apple.eawt.Application;
-import com.apple.eawt.ApplicationAdapter;
-import javax.swing.SwingUtilities;
-
-/**
- * 
- * @author erichake
- */
-public class JMacOShandler extends Application {
-
-    /** Creates a new instance of JMacOShandler */
-    public JMacOShandler() {
-        addApplicationListener(new OpenHandler());
-    }
-
-    class OpenHandler extends ApplicationAdapter {
-
-        @Override
-        public void handleOpenFile(final com.apple.eawt.ApplicationEvent evt) {
-            JMacrosTools.busy=true;
-            JMacrosTools.removeListeners();
-            final String filename=evt.getFilename();
-            if (JMacrosTools.isStartup) {
-                JMacrosTools.StartupFiles.add(filename);
-            } else {
-                if ((filename.endsWith(".mcr"))) {
-                    JMacrosTools.OpenMacro(filename);
-                } else {
-                    JMacrosTools.OpenFile(filename, null, false);
-                }
-            }
-            if (!JMacrosTools.isStartup) {
-                SwingUtilities.invokeLater(new Runnable() {
-                    public void run() {
-                        JMacrosTools.RefreshDisplay();
-                        JMacrosTools.busy=false;
-                        JMacrosTools.addListeners();
-                    }
-                });
-            }
-        }
-
-        @Override
-        public void handleQuit(final com.apple.eawt.ApplicationEvent e) {
-            JMacrosTools.disposeAllJZFs();
-        }
-    }
-}
