r245 - in /packages/jeuclid/trunk/debian: control patches/AppleJavaExtensions.patch patches/MacOSX.patch rules

sylvestre-guest at users.alioth.debian.org sylvestre-guest at users.alioth.debian.org
Fri Aug 15 18:57:46 UTC 2008


Author: sylvestre-guest
Date: Fri Aug 15 18:57:46 2008
New Revision: 245

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=245
Log:
jeuclib mathviewer added

Added:
    packages/jeuclid/trunk/debian/patches/AppleJavaExtensions.patch
    packages/jeuclid/trunk/debian/patches/MacOSX.patch
Modified:
    packages/jeuclid/trunk/debian/control
    packages/jeuclid/trunk/debian/rules

Modified: packages/jeuclid/trunk/debian/control
URL: http://svn.debian.org/wsvn/debian-science/packages/jeuclid/trunk/debian/control?rev=245&op=diff
==============================================================================
--- packages/jeuclid/trunk/debian/control (original)
+++ packages/jeuclid/trunk/debian/control Fri Aug 15 18:57:46 2008
@@ -6,7 +6,7 @@
 Build-Depends: debhelper (>= 5), autotools-dev, cdbs, 
  default-jdk-builddep, ant, junit, libxmlgraphics-commons-java (>= 1.3.0), 
  libcommons-logging-java, libbatik-java (>= 1.7)
-Standards-Version: 3.8.0.1
+Standards-Version: 3.8.0
 Homepage: http://jeuclid.sourceforge.net
 Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/jeuclib/trunk
 Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/jeuclid/trunk

Added: packages/jeuclid/trunk/debian/patches/AppleJavaExtensions.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/jeuclid/trunk/debian/patches/AppleJavaExtensions.patch?rev=245&op=file
==============================================================================
--- packages/jeuclid/trunk/debian/patches/AppleJavaExtensions.patch (added)
+++ packages/jeuclid/trunk/debian/patches/AppleJavaExtensions.patch Fri Aug 15 18:57:46 2008
@@ -1,0 +1,266 @@
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationAdapter.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationAdapter.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,36 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public class ApplicationAdapter {
++    public void handleAbout(ApplicationEvent event) {}
++    public void handleOpenApplication(ApplicationEvent event) {}
++    public void handleOpenFile(ApplicationEvent event) {}
++    public void handlePreferences(ApplicationEvent event) {}
++    public void handlePrintFile(ApplicationEvent event) {}
++    public void handleQuit(ApplicationEvent event) {}
++    public void handleReOpenApplication(ApplicationEvent event) {} 
++}
++
++
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationBeanInfo.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationBeanInfo.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,29 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public class ApplicationBeanInfo extends java.beans.SimpleBeanInfo
++{
++    public java.awt.Image getIcon(int iconKind) { return null; }
++}
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationEvent.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationEvent.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,34 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public class ApplicationEvent extends java.util.EventObject implements 
++java.io.Serializable
++{
++    public ApplicationEvent(Object source) { super(source); }
++    public java.lang.String getFilename() { return null; }
++    public boolean isHandled() { return false; }
++    public void setHandled(boolean state) {}
++}
++
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/Application.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/Application.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,45 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public class Application
++{
++    public Application() { }
++    public void addAboutMenuItem() {}
++    public void addApplicationListener(ApplicationListener listener) {}
++    public void addPreferencesMenuItem() {}
++    public static Application getApplication() { return null; }
++    public boolean getEnabledAboutMenu() { return false; }
++    public boolean getEnabledPreferencesMenu() { return false; }
++    public static java.awt.Point getMouseLocationOnScreen() { return 
++null; }
++    public boolean isAboutMenuItemPresent() { return false; }
++    public boolean isPreferencesMenuItemPresent() { return false; }
++    public void removeAboutMenuItem() {}
++    public void removeApplicationListener(ApplicationListener listener) 
++{}
++    public void removePreferencesMenuItem() {}
++    public void setEnabledAboutMenu(boolean enable) {}
++    public void setEnabledPreferencesMenu(boolean enable) {}
++}
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationListener.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationListener.java	2008-08-15 19:47:48.000000000 +0200
+@@ -0,0 +1,35 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public interface ApplicationListener extends java.util.EventListener
++{
++    public void handleAbout(ApplicationEvent event);
++    public void handleOpenApplication(ApplicationEvent event);
++    public void handleOpenFile(ApplicationEvent event);
++    public void handlePreferences(ApplicationEvent event);
++    public void handlePrintFile(ApplicationEvent event);
++    public void handleQuit(ApplicationEvent event);
++    public void handleReOpenApplication(ApplicationEvent event);
++}
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/CocoaComponent.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/CocoaComponent.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,31 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple EAWT
++ * on non-Mac platforms possible.
++ */
++
++
++package com.apple.eawt;
++
++public abstract class CocoaComponent extends java.awt.Canvas
++{
++    public abstract int createNSView();
++    public long createNSViewLong() { return 0; }
++    public abstract java.awt.Dimension getMaximumSize();
++    public abstract java.awt.Dimension getMinimumSize();
++    public abstract java.awt.Dimension getPreferredSize();
++    public void sendMessage(int messageID, java.lang.Object message) {}
++}
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/package	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/package	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,35 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public interface ApplicationListener extends java.util.EventListener
++{
++    public void handleAbout(ApplicationEvent event);
++    public void handleOpenApplication(ApplicationEvent event);
++    public void handleOpenFile(ApplicationEvent event);
++    public void handlePreferences(ApplicationEvent event);
++    public void handlePrintFile(ApplicationEvent event);
++    public void handleQuit(ApplicationEvent event);
++    public void handleReOpenApplication(ApplicationEvent event);
++}
++

Added: packages/jeuclid/trunk/debian/patches/MacOSX.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/jeuclid/trunk/debian/patches/MacOSX.patch?rev=245&op=file
==============================================================================
--- packages/jeuclid/trunk/debian/patches/MacOSX.patch (added)
+++ packages/jeuclid/trunk/debian/patches/MacOSX.patch Fri Aug 15 18:57:46 2008
@@ -1,0 +1,18 @@
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/net/sourceforge/jeuclid/app/mathviewer/MathViewer.java	2008-06-03 12:02:46.000000000 +0200
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/net/sourceforge/jeuclid/app/mathviewer/MathViewer.java	2008-08-15 20:11:59.000000000 +0200
+@@ -86,13 +86,13 @@
+             public void run() {
+                 final MainFrame mainFrame = new MainFrame();
+                 mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+-                if (MathViewer.OSX) {
++/*                if (MathViewer.OSX) {
+                     final Application a = Application.getApplication();
+                     a.setEnabledAboutMenu(true);
+                     a.setEnabledPreferencesMenu(true);
+                     a.addApplicationListener(new MainFrameAppListener(
+                             mainFrame));
+-                }
++                }*/
+                 if (MathViewer.source != null) {
+                     mainFrame.loadFile(MathViewer.source);
+                 }

Modified: packages/jeuclid/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/jeuclid/trunk/debian/rules?rev=245&op=diff
==============================================================================
--- packages/jeuclid/trunk/debian/rules (original)
+++ packages/jeuclid/trunk/debian/rules Fri Aug 15 18:57:46 2008
@@ -5,18 +5,18 @@
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 JAVA_HOME                  := /usr/lib/jvm/java-1.5.0-sun/
-DEB_SRCDIR 		   		   := $(CURDIR)/jeuclid-core/
 DEB_ANT_BUILDFILE    	   := $(CURDIR)/debian/build.xml
 DEB_JARS                   := ant-nodeps junit
 DEB_ANT_BUILD_TARGET       := compile-core compile-mathviewer
-# compile-mathviewer
 DEB_ANT_CLEAN_TARGET       := clean
 
-VERSION=3.1.1
+install/libjeuclid-core-java::
+	install -m 644 target/jeuclid-core.jar debian/libjeuclid-core-java/usr/share/java/jeuclid-core-${DEB_UPSTREAM_VERSION}.jar
+	ln -s jeuclid-core-${DEB_UPSTREAM_VERSION}.jar debian/libjeuclid-core-java/usr/share/java/jeuclid-core.jar
 
-install/libjeuclid-core-java::
-	install -m 644 target/jeuclid-core.jar debian/libjeuclid-core-java/usr/share/java/jeuclid-core-$(VERSION).jar
-	ln -s jeuclid-core-$(VERSION).jar debian/libjeuclid-core-java/usr/share/java/jeuclid-core.jar
+install/jeuclid-mathviewer::
+	install -m 644 -D target/jeuclid-mathviewer.jar debian/jeuclid-mathviewer/usr/share/java/jeuclid-mathviewer-${DEB_UPSTREAM_VERSION}.jar
+	ln -s jeuclid-mathviewer-${DEB_UPSTREAM_VERSION}.jar debian/jeuclid-mathviewer/usr/share/java/jeuclid-mathviewer.jar
 
 
 get-orig-source:




More information about the debian-science-commits mailing list