--- libmiglayout-java-3.7.2.orig/debian/watch
+++ libmiglayout-java-3.7.2/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://www.migcalendar.com/miglayout/versions/([\d\.]+)/miglayout-([\d\.]+)-sources.jar \
+  debian debian/orig-tar.sh
--- libmiglayout-java-3.7.2.orig/debian/rules
+++ libmiglayout-java-3.7.2/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+JAVA_HOME		:= /usr/lib/jvm/default-java
+DEB_ANT_BUILDFILE	:= debian/build.xml
+DEB_JARS		:= substance swt
+
+install/libmiglayout-java:: 
+	install -m644 -D miglayout.jar $(DEB_DESTDIR)/usr/share/java/miglayout-$(DEB_UPSTREAM_VERSION).jar
+	dh_link -plibmiglayout-java /usr/share/java/miglayout-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/miglayout.jar
+
+get-orig-source:
+	-uscan --upstream-version 0 --rename	
--- libmiglayout-java-3.7.2.orig/debian/copyright
+++ libmiglayout-java-3.7.2/debian/copyright
@@ -0,0 +1,38 @@
+This package was debianized by Varun Hiremath <varun@debian.org> on
+Fri,  8 May 2009 23:31:48 -0400.
+
+It was downloaded from http://www.miglayout.com
+
+Upstream Authors: Mikael Grev
+
+Copyright: © 2004, Mikael Grev, MiG InfoCom AB. <miglayout@miginfocom.com>
+
+License: BSD
+
+    Redistribution and use in source and binary forms, with or without modification,
+    are permitted provided that the following conditions are met:
+    Redistributions of source code must retain the above copyright notice, this list
+    of conditions and the following disclaimer.
+    Redistributions in binary form must reproduce the above copyright notice, this
+    list of conditions and the following disclaimer in the documentation and/or other
+    materials provided with the distribution.
+    Neither the name of the MiG InfoCom AB nor the names of its contributors may be
+    used to endorse or promote products derived from this software without specific
+    prior written permission.
+   
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+    IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+    OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+    OF SUCH DAMAGE.
+
+    The full text of the BSD license can be found in
+    /usr/share/common-licenses/BSD on Debian GNU/Linux systems.
+
+The Debian packaging is © 2009, Varun Hiremath <varun@debian.org>> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- libmiglayout-java-3.7.2.orig/debian/orig-tar.sh
+++ libmiglayout-java-3.7.2/debian/orig-tar.sh
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+DIR=miglayout-$2
+TAR=../libmiglayout-java_$2.orig.tar.gz
+
+# clean up the upstream tarball
+mkdir $DIR
+(cd $DIR && jar xf ../$3)
+tar -c -z -f $TAR $DIR
+rm -rf $DIR $3
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+    . .svn/deb-layout
+    mv $TAR $origDir
+    echo "moved $TAR to $origDir"
+fi
--- libmiglayout-java-3.7.2.orig/debian/changelog
+++ libmiglayout-java-3.7.2/debian/changelog
@@ -0,0 +1,29 @@
+libmiglayout-java (3.7.2-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: replace libswt-gtk-3.4-java with libswt-gtk-3.5-java,
+    fixes build (Closes: #564387)
+
+ -- Varun Hiremath <varun@debian.org>  Sun, 24 Jan 2010 13:59:12 -0500
+
+libmiglayout-java (3.7.1-2) unstable; urgency=low
+
+  * debian/rules: DEB_JARS use swt.jar provided using alternatives in
+    /usr/share/java instead of the versioned jar in /usr/lib/java
+
+ -- Varun Hiremath <varun@debian.org>  Mon, 31 Aug 2009 19:50:21 -0400
+
+libmiglayout-java (3.7.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Build-Depends: Replace libswt3.2-gtk-java with libswt-gtk-3.4-java,
+    fixes FTBFS (Closes: #543129)
+  * Bump Standards-Version to 3.8.3
+
+ -- Varun Hiremath <varun@debian.org>  Mon, 24 Aug 2009 03:10:26 -0400
+
+libmiglayout-java (3.7-1) unstable; urgency=low
+
+  * Initial release (Closes: #530490)
+
+ -- Varun Hiremath <varun@debian.org>  Mon, 25 May 2009 01:59:26 -0400
--- libmiglayout-java-3.7.2.orig/debian/build.xml
+++ libmiglayout-java-3.7.2/debian/build.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project default="jar" name="${project.name}" basedir="..">
+
+  <target name="clean">
+    <delete dir="${class.dir}" quiet="true"/>
+  </target>
+
+  <target name="compile" description="o Compile the source files">
+    <mkdir dir="${class.dir}"/>
+    <javac srcdir="${source.dir}" destdir="${class.dir}"
+      debug="true" source="1.5" nowarn="true"/>
+  </target>
+
+  <target name="jar" description="o Create the jar" depends="compile">
+    <jar jarfile="${jar}">
+      <fileset dir="${class.dir}">
+          <include name="**"/>
+      </fileset>
+    </jar>
+  </target>
+
+</project>
--- libmiglayout-java-3.7.2.orig/debian/ant.properties
+++ libmiglayout-java-3.7.2/debian/ant.properties
@@ -0,0 +1,4 @@
+project.name=miglayout
+class.dir=build
+source.dir=.
+jar=miglayout.jar
--- libmiglayout-java-3.7.2.orig/debian/control
+++ libmiglayout-java-3.7.2/debian/control
@@ -0,0 +1,22 @@
+Source: libmiglayout-java
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Varun Hiremath <varun@debian.org>, Torsten Werner <twerner@debian.org>
+Build-Depends: debhelper (>= 6), cdbs
+Build-Depends-Indep: ant, default-jdk, libswt-gtk-3.5-java, substance
+Standards-Version: 3.8.3
+Homepage: http://www.miglayout.com
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libmiglayout-java
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libmiglayout-java
+
+Package: libmiglayout-java
+Architecture: all
+Depends: ${misc:Depends}, default-jre | java2-runtime
+Description: The Java Layout Manager
+ MiGLayout is a superbly versatile SWT/Swing layout manager that makes
+ layout problems trivial. It is using String or API type-checked
+ constraints to format the layout. MiGLayout can produce flowing, grid
+ based, absolute (with links), grouped and docking layouts. MiGLayout
+ is created to be to manually coded layouts what Matisse/GroupLayout
+ is to IDE supported visual layouts.
--- libmiglayout-java-3.7.2.orig/debian/compat
+++ libmiglayout-java-3.7.2/debian/compat
@@ -0,0 +1 @@
+6
