[pkg-java] r4793 - in trunk: . libgrinvin-core-java libgrinvin-core-java/debian libgrinvin-core-java/debian/patches

apeeters-guest at alioth.debian.org apeeters-guest at alioth.debian.org
Tue Nov 20 16:27:51 UTC 2007


Author: apeeters-guest
Date: 2007-11-20 16:27:51 +0000 (Tue, 20 Nov 2007)
New Revision: 4793

Added:
   trunk/libgrinvin-core-java/
   trunk/libgrinvin-core-java/debian/
   trunk/libgrinvin-core-java/debian/README.Debian
   trunk/libgrinvin-core-java/debian/build.xml
   trunk/libgrinvin-core-java/debian/changelog
   trunk/libgrinvin-core-java/debian/compat
   trunk/libgrinvin-core-java/debian/control
   trunk/libgrinvin-core-java/debian/copyright
   trunk/libgrinvin-core-java/debian/patches/
   trunk/libgrinvin-core-java/debian/patches/org.grinvin.grinvin.Grinvin.java.patch
   trunk/libgrinvin-core-java/debian/patches/org.grinvin.grinvin.MacOSXHandler.java.patch
   trunk/libgrinvin-core-java/debian/patches/org.grinvin.preferences.GrinvinPreferences.java.patch
   trunk/libgrinvin-core-java/debian/rules
Log:
libgrinvin-core-java (1.0.2-1) unstable; urgency=low

  * Initial release

 -- Adriaan Peeters <apeeters at lashout.net>  Wed, 14 Nov 2007 13:26:49 +0100


Added: trunk/libgrinvin-core-java/debian/README.Debian
===================================================================
--- trunk/libgrinvin-core-java/debian/README.Debian	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/README.Debian	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1,12 @@
+libgrinvin-core-java
+====================
+
+This package provides the following JAR in /usr/share/java/
+  * grinvin-core-1.0.2.jar
+
+To use the library properly, add gui-commands.jar (provided by
+libgui-commands-java), jmathtex.jar (provided by libjmathtex-java), swirl.jar
+(provided by libswirl-java), jh.jar (provided by javahelp2) and batik-all.jar
+(provided by libbatik-java) to the class path.
+
+ -- Adriaan Peeters <apeeters at lashout.net>  Thu, 18 Oct 2007 10:51:07 +0200

Added: trunk/libgrinvin-core-java/debian/build.xml
===================================================================
--- trunk/libgrinvin-core-java/debian/build.xml	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/build.xml	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1,48 @@
+<project default="all">
+    
+    <property name="build.dir" value="../build"/>
+    <property name="src.dir" value=".."/>
+    
+    <target name="prepare">
+        <mkdir dir="${build.dir}"/>
+    </target>
+    
+    <target name="compile" depends="prepare">
+        <javac srcdir="${src.dir}" destdir="${build.dir}" source="1.5"/>
+        <copy todir="${build.dir}/org/">
+            <fileset dir="${src.dir}/org/">
+                <include name="**/*.properties"/>
+                <include name="**/*.cmds"/>
+                <include name="**/*.txt"/>
+                <include name="**/*.dtd"/>
+                <include name="**/*.xml"/>
+                <include name="**/*.svg"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <target name="javadoc" depends="prepare">
+        <mkdir dir="${build.dir}/api"/>
+        <javadoc destdir="${build.dir}/api">
+            <sourcepath>
+                <pathelement location="${src.dir}"/>
+            </sourcepath>
+            <packageset dir="${src.dir}" includes="*/**"/>
+            <fileset dir="${src.dir}" includes="*.java"/>
+        </javadoc>
+    </target>
+
+    <target name="jar" depends="compile">
+        <jar jarfile="${build.dir}/grinvin-core.jar"
+             basedir="${build.dir}"
+             compress="true" >
+        </jar>
+    </target>
+
+    <target name="all" depends="jar, javadoc"/>
+    
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+    
+</project>

Added: trunk/libgrinvin-core-java/debian/changelog
===================================================================
--- trunk/libgrinvin-core-java/debian/changelog	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/changelog	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1,5 @@
+libgrinvin-core-java (1.0.2-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Adriaan Peeters <apeeters at lashout.net>  Wed, 14 Nov 2007 13:26:49 +0100

Added: trunk/libgrinvin-core-java/debian/compat
===================================================================
--- trunk/libgrinvin-core-java/debian/compat	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/compat	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1 @@
+5

Added: trunk/libgrinvin-core-java/debian/control
===================================================================
--- trunk/libgrinvin-core-java/debian/control	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/control	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1,21 @@
+Source: libgrinvin-core-java
+Section: contrib/libs
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Adriaan Peeters <apeeters at lashout.net>
+Homepage: http://www.grinvin.org/
+Build-Depends: debhelper (>> 5.0.0), cdbs, patchutils, ant, java-gcj-compat-dev, libgui-commands-java (>= 1.1.42-1), libjdom1-java, libjmathtex-java, libswirl-java, javahelp2, libbatik-java
+Vcs-Svn: svn://svn.debian.org/pkg-java/trunk/libgrinvin-core-java/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libgrinvin-core-java/
+Standards-Version: 3.7.2
+
+Package: libgrinvin-core-java
+Architecture: all
+Depends: gij | java-gcj-compat | java1-runtime | java2-runtime, libgui-commands-java, libjdom1-java, libjmathtex-java, libswirl-java, javahelp2, libbatik-java
+Description: interactive software package for studying graphs (core libraries)
+ GrInvIn is a software package for studying graphs, their properties
+ (invariants) and the relations between these properties. It has been designed
+ to optimally support the user in learning graph theory by means of examples
+ and by experimenting with graphs and their properties.
+ .
+ This package contains the main (core) libraries 

Added: trunk/libgrinvin-core-java/debian/copyright
===================================================================
--- trunk/libgrinvin-core-java/debian/copyright	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/copyright	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1,33 @@
+This package was debianized by Adriaan Peeters <apeeters at lashout.net> on
+Tue, 21 Aug 2007 11:16:12 +0200.
+
+It was downloaded from http://downloads.grinvin.org/
+The upstream src.jar was repackaged as a tar.gz by the package maintainer.
+
+The upstream source code and the Debian packaging is licensed under the
+following license.
+
+Upstream Authors: Gunnar Brinkmann, Kris Coolsaet, Veerle Fack, Adriaan
+  Peeters, Nico Van Cleemput
+
+Copyright (c) 2004-2007 Universiteit Gent
+
+License:
+
+   This program is 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; either version 2 of the License, or (at
+   your option) any later version.
+
+   This program 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 package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+   02110-1301 USA.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in '/usr/share/common-licenses/GPL'.

Added: trunk/libgrinvin-core-java/debian/patches/org.grinvin.grinvin.Grinvin.java.patch
===================================================================
--- trunk/libgrinvin-core-java/debian/patches/org.grinvin.grinvin.Grinvin.java.patch	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/patches/org.grinvin.grinvin.Grinvin.java.patch	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1,13 @@
+--- org/grinvin/grinvin/Grinvin.java	2007-06-18 09:50:00.000000000 +0200
++++ org/grinvin/grinvin/Grinvin.java.new	2007-10-05 10:54:29.000000000 +0200
+@@ -107,10 +107,6 @@
+         // install url stream handler
+         URL.setURLStreamHandlerFactory(new GrinvinURLStreamHandlerFactory());
+         
+-        // install about handler
+-        if (GrinvinPreferences.INSTANCE.getOsType() == OsType.MAC_OS_X)
+-            new MacOSXHandler();
+-        
+         // don't hide tooltips
+         ToolTipManager.sharedInstance().setDismissDelay(Integer.MAX_VALUE);
+         

Added: trunk/libgrinvin-core-java/debian/patches/org.grinvin.grinvin.MacOSXHandler.java.patch
===================================================================
--- trunk/libgrinvin-core-java/debian/patches/org.grinvin.grinvin.MacOSXHandler.java.patch	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/patches/org.grinvin.grinvin.MacOSXHandler.java.patch	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1,95 @@
+--- org/grinvin/grinvin/MacOSXHandler.java	2007-06-18 09:50:02.000000000 +0200
++++ org/grinvin/grinvin/MacOSXHandler.java.new	2007-10-05 10:16:58.000000000 +0200
+@@ -1,92 +0,0 @@
+-/* MacOSXHandler.java
+- * =========================================================================
+- * This file is part of the GrInvIn project - http://www.grinvin.org
+- * 
+- * Copyright (C) 2005-2007 Universiteit Gent
+- * 
+- * This program is 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; either version 2 of the License, or (at
+- * your option) any later version.
+- * 
+- * This program 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.
+- * 
+- * A copy of the GNU General Public License can be found in the file
+- * LICENSE.txt provided with the source distribution of this program (see
+- * the META-INF directory in the source jar). This license can also be
+- * found on the GNU website at http://www.gnu.org/licenses/gpl.html.
+- * 
+- * If you did not receive a copy of the GNU General Public License along
+- * with this program, contact the lead developer, or write to the Free
+- * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+- * 02110-1301, USA.
+- */
+-
+-package org.grinvin.grinvin;
+-
+-import com.apple.eawt.Application;
+-import com.apple.eawt.ApplicationAdapter;
+-import com.apple.eawt.ApplicationEvent;
+-
+-import java.util.ResourceBundle;
+-import java.util.logging.Level;
+-import java.util.logging.Logger;
+-
+-import org.grinvin.about.AboutDialog;
+-import org.grinvin.workspace.Workspace;
+-import org.grinvin.workspace.WorkspaceException;
+-
+-/**
+- * Handle the OSX events.
+- */
+-public class MacOSXHandler extends Application {
+-    
+-    //
+-    private static final ResourceBundle BUNDLE
+-            = ResourceBundle.getBundle("org.grinvin.grinvin.resources");
+-    
+-    //
+-    public MacOSXHandler() {
+-        addApplicationListener(new AboutBoxHandler());
+-        addApplicationListener(new QuitHandler());
+-    }
+-    
+-    //
+-    private class AboutBoxHandler extends ApplicationAdapter {
+-        
+-        AboutBoxHandler() {
+-            // avoid creation of access type
+-        }
+-        
+-        //
+-        public void handleAbout(ApplicationEvent event) {
+-            new AboutDialog(null).setVisible(true);
+-            event.setHandled(true);
+-        }
+-        
+-    }
+-    
+-    private class QuitHandler extends ApplicationAdapter {
+-        
+-        QuitHandler() {
+-            // avoid creation of access type
+-        }
+-        
+-        //
+-        public void handleQuit(ApplicationEvent event) {
+-            event.setHandled(false);
+-            try {
+-                Workspace.getInstance().save();
+-            } catch (WorkspaceException ex) {
+-                Logger.getLogger("org.grinvin.io").log(Level.SEVERE, BUNDLE.getString("workspace.savefailed.text"), ex);
+-            }
+-            System.exit(0);
+-        }
+-        
+-    }
+-    
+-    
+-}

Added: trunk/libgrinvin-core-java/debian/patches/org.grinvin.preferences.GrinvinPreferences.java.patch
===================================================================
--- trunk/libgrinvin-core-java/debian/patches/org.grinvin.preferences.GrinvinPreferences.java.patch	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/patches/org.grinvin.preferences.GrinvinPreferences.java.patch	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1,25 @@
+--- org/grinvin/preferences/GrinvinPreferences.java	2007-06-18 09:50:02.000000000 +0200
++++ org/grinvin/preferences/GrinvinPreferences.java.new	2007-10-05 10:20:24.000000000 +0200
+@@ -27,8 +27,6 @@
+ 
+ package org.grinvin.preferences;
+ 
+-import com.apple.eio.FileManager;
+-
+ import java.io.File;
+ import java.io.FileNotFoundException;
+ import java.io.IOException;
+@@ -160,12 +158,7 @@
+         } else if (key == Preference.GRINVIN_BIN_DIR) {
+             String defaultValue;
+             if (osType == OsType.MAC_OS_X) {
+-                try {
+-                    defaultValue = FileManager.getResource("benzene");
+-                    defaultValue = defaultValue.substring(0,defaultValue.lastIndexOf('/'));
+-                } catch (FileNotFoundException ex) {
+-                    defaultValue = null;
+-                }
++                throw new RuntimeException("Invalid Os Type: MAC_OS_X");
+             } else if (osType == OsType.WINDOWS) {
+                 assert systemPreferences != null : "System preferences not available";
+                 defaultValue = systemPreferences.get(key.getId(), null);

Added: trunk/libgrinvin-core-java/debian/rules
===================================================================
--- trunk/libgrinvin-core-java/debian/rules	                        (rev 0)
+++ trunk/libgrinvin-core-java/debian/rules	2007-11-20 16:27:51 UTC (rev 4793)
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+JAVA_HOME := /usr/lib/jvm/java-gcj
+ANT_HOME  := /usr/share/ant
+
+DEB_JARS := gui-commands jdom1 jmathtex swirl jh batik-all
+
+DEB_ANT_CLEAN_TARGET := clean
+DEB_ANT_BUILD_TARGET := all
+DEB_ANT_BUILDFILE := debian/build.xml
+
+install/libgrinvin-core-java::
+	mv build/grinvin-core.jar build/grinvin-core-$(DEB_UPSTREAM_VERSION).jar
+	dh_install -plibgrinvin-core-java build/grinvin-core-$(DEB_UPSTREAM_VERSION).jar usr/share/java/
+	dh_link -plibgrinvin-core-java usr/share/java/grinvin-core-$(DEB_UPSTREAM_VERSION).jar usr/share/java/grinvin-core.jar


Property changes on: trunk/libgrinvin-core-java/debian/rules
___________________________________________________________________
Name: svn:executable
   + 




More information about the pkg-java-commits mailing list