[med-svn] r10409 - in trunk/packages: . king king/trunk king/trunk/debian king/trunk/debian/patches king/trunk/debian/source

Andreas Tille tille at alioth.debian.org
Wed Apr 18 17:47:06 UTC 2012


Author: tille
Date: 2012-04-18 17:47:05 +0000 (Wed, 18 Apr 2012)
New Revision: 10409

Added:
   trunk/packages/king/
   trunk/packages/king/trunk/
   trunk/packages/king/trunk/debian/
   trunk/packages/king/trunk/debian/changelog
   trunk/packages/king/trunk/debian/compat
   trunk/packages/king/trunk/debian/control
   trunk/packages/king/trunk/debian/copyright
   trunk/packages/king/trunk/debian/get-orig-source
   trunk/packages/king/trunk/debian/patches/
   trunk/packages/king/trunk/debian/patches/series
   trunk/packages/king/trunk/debian/patches/use_debian_packaged_jars.patch
   trunk/packages/king/trunk/debian/rules
   trunk/packages/king/trunk/debian/source/
   trunk/packages/king/trunk/debian/source/format
   trunk/packages/king/trunk/debian/watch
Log:
Inject first shot at king which is used in Qiime; packaging is not finished yet (something is missing in the upstream source)


Added: trunk/packages/king/trunk/debian/changelog
===================================================================
--- trunk/packages/king/trunk/debian/changelog	                        (rev 0)
+++ trunk/packages/king/trunk/debian/changelog	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1,5 @@
+king (2.20.110601-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #)
+
+ -- Andreas Tille <tille at debian.org>  Wed, 18 Apr 2012 14:27:49 +0200

Added: trunk/packages/king/trunk/debian/compat
===================================================================
--- trunk/packages/king/trunk/debian/compat	                        (rev 0)
+++ trunk/packages/king/trunk/debian/compat	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1 @@
+8

Added: trunk/packages/king/trunk/debian/control
===================================================================
--- trunk/packages/king/trunk/debian/control	                        (rev 0)
+++ trunk/packages/king/trunk/debian/control	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1,19 @@
+Source: king
+Section: java
+Priority: optional
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+DM-Upload-Allowed: yes
+Build-Depends: debhelper (>= 8), default-jdk, javahelper, libitext-java,
+ libjogl-java
+Standards-Version: 3.9.3
+Homepage:  http://kinemage.biochem.duke.edu/software/king.php
+Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/king/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/king/
+
+Package: king
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: FIXME
+ FIXME
+

Added: trunk/packages/king/trunk/debian/copyright
===================================================================
--- trunk/packages/king/trunk/debian/copyright	                        (rev 0)
+++ trunk/packages/king/trunk/debian/copyright	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1,57 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: King
+Upstream-Contact: Ian W. Davis <ian.w.davis at gmail.com>,
+                  Vincent B. Chen <vincent.chen at duke.edu>
+Source: http://kinemage.biochem.duke.edu/software/king.php
+
+Files: *
+Copyright: 2002-2011 Ian W. Davis <ian.w.davis at gmail.com>,
+                     Vincent B. Chen <vincent.chen at duke.edu>
+License: KiNG-License
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ 1. Redistributions of source code must retain the above copyright notice, this
+    list of conditions and the following disclaimer.
+ 2. 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.
+ 3. The end-user documentation included with the redistribution, if any, must
+    include the following acknowledgment:
+ .
+    "This product includes software developed in the Richardon lab at Duke
+    University (http://kinemage.biochem.duke.edu)."
+ .
+    Alternately, this acknowledgment may appear in the software itself, if and
+    wherever such third-party acknowledgments normally appear.
+ .
+ 4. The name of the copyright holder, the names of the contributors, and the
+    names "KiNG", "Kinemage, Next Generation", and "Mage" must not be used to
+    endorse or promote products derived from this software without prior
+    written permission.
+ 5. Products derived from this software may not be called "KiNG", nor may
+    "KiNG" appear in their name, without prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED 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 HOLDERS 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.
+ .
+ This license is based on the BSD and Apache licenses.
+ See http://www.opensource.org/ for more details on these and other licenses.
+Comment:  The Files driftwood-*-src/* are released under "The Driftwood License"
+ but this is just another name for the completely identical text as the "King
+ License" and copyright holders are identical as well.
+
+Files: debian/*
+Copyright: 2012 Andreas Tille <tille at debian.org>
+License: BSD
+ On Debian systems the complete text of the BSD license can be found at
+ `/usr/share/common-licenses/BSD`.
+

Added: trunk/packages/king/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/king/trunk/debian/get-orig-source	                        (rev 0)
+++ trunk/packages/king/trunk/debian/get-orig-source	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1,44 @@
+#!/bin/sh
+# get source for king and strip binary JARs
+
+set -e
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+
+if ! echo $@ | grep -q upstream-version ; then
+    VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+else
+    VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${name}.*?\1?"`
+    if echo "$VERSION" | grep -q "upstream-version" ; then
+        echo "Unable to parse version number"
+        exit
+    fi
+fi
+
+TARDIR=${NAME}-${VERSION}
+
+mkdir -p ../tarballs/$TARDIR
+cd ../tarballs/$TARDIR
+unzip ../../${NAME}.${VERSION}.src.zip
+
+# Remove useless JARs
+find . -name "*.jar" -delete
+
+# Remove useless dirs
+rm -rf lib
+find . -name .xvpics | xargs rm -rf
+
+# Clean up binary installer code
+rm -rf king-*-src/installer/win* king-*-src/installer/linux*
+
+# once we are cleaning up the tarball anyway it makes sense to remove useless file duplicates
+rm -rf extratools-*-src/doc/tools-manual.pdf
+rm -rf king-*-src/installer/kingicon-orig.png \
+       king-*-src/installer/kingicon[12346][02468].png \
+       king-*-src/installer/kingicon[13][26].gif
+
+# there is only no point in keeping copies of old versions of the code
+rm -rf king-*-src/1.x_src
+
+cd ..
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -czf "$NAME"_"$VERSION".orig.tar.gz "${TARDIR}"
+rm -rf "$TARDIR"


Property changes on: trunk/packages/king/trunk/debian/get-orig-source
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/packages/king/trunk/debian/patches/series
===================================================================
--- trunk/packages/king/trunk/debian/patches/series	                        (rev 0)
+++ trunk/packages/king/trunk/debian/patches/series	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1 @@
+use_debian_packaged_jars.patch

Added: trunk/packages/king/trunk/debian/patches/use_debian_packaged_jars.patch
===================================================================
--- trunk/packages/king/trunk/debian/patches/use_debian_packaged_jars.patch	                        (rev 0)
+++ trunk/packages/king/trunk/debian/patches/use_debian_packaged_jars.patch	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1,40 @@
+--- 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 @@
+     <ant antfile="../driftwood/build.xml" inheritAll="false" target="compile">
+         <!-- inherited properties go here -->
+     </ant>
+-    <copy file="../lib/iText/itext-1.02b.jar" tofile="${basedir}/itext.jar" failonerror="false"/>
++    <copy file="/usr/share/java/itext.jar" tofile="${basedir}/itext.jar" failonerror="false"/>
+     <mkdir dir="${build}"/>
+     <javac srcdir="${src}" destdir="${build}" debug="on" debuglevel="lines,source" target="1.5" source="1.5">
+          <include name="**/*.java"/>
+@@ -102,7 +102,7 @@
+          <classpath>
+             <pathelement location="${build}"/>
+             <pathelement location="../driftwood/build"/>
+-            <pathelement location="../lib/jogl/jogl.jar"/>
++            <pathelement location="/usr/share/java/jogl.jar"/>
+          </classpath>
+     </javac>
+ </target>
+@@ -118,8 +118,8 @@
+         <zipfileset dir="../chiropraxis/dist/" includes="chiropraxis-*-src/"/>
+         <zipfileset dir="../extratools/dist/" includes="extratools-*-src/"/>
+         <zipfileset dir="../lib/" prefix="lib/">
+-            <include name="iText/*.jar"/>
+-            <include name="jogl/*.jar"/>
++            <include name="/usr/share/java/itext.jar"/>
++            <include name="/usr/share/java/jogl.jar"/>
+         </zipfileset>
+     </zip>
+     <zip basedir="${dist}"
+@@ -150,7 +150,7 @@
+     <mkdir dir="${dist}/javadocs"/>
+     <javadoc packagenames="driftwood.*,Jama.*,king.*"
+         sourcepath="src:../driftwood/src"
+-        classpath="../lib:../lib/iText/itext-1.02b.jar:../lib/jogl/jogl.jar"
++        classpath="../lib:/usr/share/java/itext.jar:/usr/share/java/jogl.jar"
+         destdir="${dist}/javadocs" access="protected" source="1.5"
+         breakiterator="true" noqualifier="all"
+         version="true" use="true" author="true"

Added: trunk/packages/king/trunk/debian/rules
===================================================================
--- trunk/packages/king/trunk/debian/rules	                        (rev 0)
+++ trunk/packages/king/trunk/debian/rules	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@ --with javahelper
+
+override_dh_auto_build:
+	ln -s driftwood-*-src driftwood
+	cd driftwood; ant
+	ln -s king-*-src king
+	ant -buildfile `find chiropraxis-*-src -mindepth 1 -maxdepth 1 -name build.xml`
+	ant -buildfile `find extratools-*-src -mindepth 1 -maxdepth 1 -name build.xml`
+	ant -buildfile `find king-*-src -mindepth 1 -maxdepth 1 -name build.xml`
+
+override_dh_auto_clean:
+	cd driftwood-*-src; ant clean
+	find . -mindepth 1 -maxdepth 1 -type l -delete
+	rm -rf king_jar


Property changes on: trunk/packages/king/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/packages/king/trunk/debian/source/format
===================================================================
--- trunk/packages/king/trunk/debian/source/format	                        (rev 0)
+++ trunk/packages/king/trunk/debian/source/format	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: trunk/packages/king/trunk/debian/watch
===================================================================
--- trunk/packages/king/trunk/debian/watch	                        (rev 0)
+++ trunk/packages/king/trunk/debian/watch	2012-04-18 17:47:05 UTC (rev 10409)
@@ -0,0 +1,5 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://kinemage.biochem.duke.edu/downloads/software/king/king\.([.0-9]+)\.src\.zip \
+   debian debian/get-orig-source




More information about the debian-med-commit mailing list