[med-svn] [cinema] 01/10: Dependency for mauve. Builds. Does not install, yet.
Andreas Tille
tille at debian.org
Sat Dec 2 15:28:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository cinema.
commit bb7566abc63afbe904fb9397778bee371875dabe
Author: Steffen Moeller <moeller at debian.org>
Date: Tue Jun 7 18:14:13 2011 +0000
Dependency for mauve. Builds. Does not install, yet.
---
debian/README.Debian | 6 +
debian/README.source | 9 ++
debian/changelog | 5 +
debian/compat | 1 +
debian/control | 15 +++
debian/copyright | 36 ++++++
debian/docs | 1 +
debian/menu.ex | 2 +
debian/patches/ant.patch | 265 +++++++++++++++++++++++++++++++++++++++
debian/patches/application.patch | 52 ++++++++
debian/patches/series | 3 +
debian/rules | 28 +++++
debian/source/format | 1 +
debian/watch | 8 ++
14 files changed, 432 insertions(+)
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..fb6c9f6
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,6 @@
+cinema for Debian
+-----------------
+
+Cinema is a dependency for mauve. This shall just work.
+
+ -- Steffen Moeller <moeller at debian.org> Tue, 07 Jun 2011 18:40:09 +0200
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..36ac8f4
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+cinema for Debian
+-----------------
+
+<this file describes information about the source package, see Debian policy
+manual section 4.14. You WILL either need to modify or delete this file>
+
+
+
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f52add0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+cinema (3.0.23-1) unstable; urgency=low
+
+ * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+
+ -- Steffen Moeller <moeller at debian.org> Tue, 07 Jun 2011 18:40:09 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..2a7567f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,15 @@
+Source: cinema
+Section: unknown
+Priority: extra
+Maintainer: Steffen Moeller <moeller at debian.org>
+Build-Depends: debhelper (>= 7.0.50~)
+Standards-Version: 3.9.1
+Homepage: <insert the upstream URL, if relevant>
+#Vcs-Git: git://git.debian.org/collab-maint/cinema.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/cinema.git;a=summary
+
+Package: cinema
+Architecture: all
+Depends: ${misc:Depends}
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f6526b2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,36 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: cinema
+Source: <url://example.com>
+
+Files: *
+Copyright: <years> <put author's name and email here>
+ <years> <likewise for another author>
+License: <special license>
+ <Put the license of the package here indented by 1 space>
+ <This follows the format of Description: lines in control file>
+ .
+ <Including paragraphs>
+
+# If you want to use GPL v2 or later for the /debian/* files use
+# the following clauses, or change it to suit. Delete these two lines
+Files: debian/*
+Copyright: 2011 Steffen Moeller <moeller at debian.org>
+License: GPL-2+
+ This package 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 package 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/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/menu.ex b/debian/menu.ex
new file mode 100644
index 0000000..28d0d38
--- /dev/null
+++ b/debian/menu.ex
@@ -0,0 +1,2 @@
+?package(cinema):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
+ title="cinema" command="/usr/bin/cinema"
diff --git a/debian/patches/ant.patch b/debian/patches/ant.patch
new file mode 100644
index 0000000..c0daafc
--- /dev/null
+++ b/debian/patches/ant.patch
@@ -0,0 +1,265 @@
+Index: cinema-3.0.23/src/uk/ac/man/bioinf/build.xml
+===================================================================
+--- cinema-3.0.23.orig/src/uk/ac/man/bioinf/build.xml 2011-06-07 19:37:22.000000000 +0200
++++ cinema-3.0.23/src/uk/ac/man/bioinf/build.xml 2011-06-07 19:37:56.000000000 +0200
+@@ -57,7 +57,7 @@
+ <property name="javadoc.packages" value="uk.ac.man.bioinf.*" />
+
+ <!-- Support for texi doclet. Set the first to use -->
+- <property name="javadoc.use.texidoc"/>
++ <property name="javadoc.use.texidoc" value="." />
+ <property name="javadoc.texidoc.path" value="."/>
+ <property name="javadoc.texi" value="${javadoc}" />
+
+@@ -91,6 +91,9 @@
+ <fileset dir="${ext}">
+ <include name="**/*.jar" />
+ </fileset>
++ <fileset dir="/usr/share/java">
++ <include name="**/*.jar" />
++ </fileset>
+
+ </path>
+
+@@ -108,6 +111,7 @@
+ <javac classpathref="project.class.path"
+ debug="${debug}"
+ srcdir="${src}"
++ source="1.4"
+ destdir="${classes}">
+ <include name="uk/**/*.java" />
+ <exclude name="${exclude}" />
+@@ -327,7 +331,3 @@
+ <target name="all" description="Build everything from scratch"
+ depends="clean,prepare,dist_build,javadoc" />
+ </project>
+-
+-
+-
+-
+\ No newline at end of file
+Index: cinema-3.0.23/home/moeller/alioth/debian-med/packages/cinema/cinema-3.0.23/src/uk/ac/man/bioinf/apps/cinema/CinemaXMLParserFactory.java
+===================================================================
+--- cinema-3.0.23.orig/home/moeller/alioth/debian-med/packages/cinema/cinema-3.0.23/src/uk/ac/man/bioinf/apps/cinema/CinemaXMLParserFactory.java 2011-06-07 19:38:20.000000000 +0200
++++ /dev/null 1970-01-01 00:00:00.000000000 +0000
+@@ -1,96 +0,0 @@
+-/*
+- * 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 program; if not, write to the Free Software
+- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+-*/
+-
+-/*
+- * This software was written by Phillip Lord (p.lord at hgmp.mrc.ac.uk)
+- * whilst at the University of Manchester as a Pfizer post-doctoral
+- * Research Fellow.
+- *
+- * The initial code base is copyright by Pfizer, or the University
+- * of Manchester. Modifications to the initial code base are copyright
+- * of their respective authors, or their employers as appropriate.
+- * Authorship of the modifications may be determined from the ChangeLog
+- * placed at the end of this file
+- */
+-
+-package uk.ac.man.bioinf.apps.cinema; // Package name inserted by JPack
+-import org.xml.sax.InputSource;
+-import org.xml.sax.SAXException;
+-import org.xml.sax.XMLReader;
+-import org.xml.sax.helpers.DefaultHandler;
+-import org.xml.sax.helpers.XMLReaderFactory;
+-import uk.ac.man.bioinf.apps.cinema.resources.CinemaResources;
+-import uk.ac.man.bioinf.apps.xml.XMLParserFactory;
+-import uk.ac.man.bioinf.debug.Debug;
+-
+-
+-/**
+- * CinemaXMLParserFactory.java
+- *
+- *
+- * Created: Mon Sep 18 18:59:17 2000
+- *
+- * @author Phillip Lord
+- * @version $Id: CinemaXMLParserFactory.java,v 1.3 2001/04/11 17:04:41 lord Exp $
+- */
+-
+-public class CinemaXMLParserFactory implements XMLParserFactory
+-{
+-
+- public XMLReader getXMLParser()
+- {
+- try{
+-
+- XMLReader read = XMLReaderFactory.createXMLReader( "org.apache.xerces.parsers.SAXParser" );
+- read.setEntityResolver
+- ( new DefaultHandler(){
+- public InputSource resolveEntity( String publicId, String systemId ) throws SAXException
+- {
+- if( systemId.equals( "file:module.dtd" ) ){
+- return new InputSource( CinemaResources.getModuleDTDAsResource() );
+- }
+-
+- return super.resolveEntity( publicId, systemId );
+- }
+- });
+- return read;
+- }
+- catch( Exception exp ){
+- if( Debug.debug )
+- Debug.throwable( this, exp );
+- }
+- return null;
+- }
+-} // CinemaXMLParserFactory
+-
+-
+-
+-/*
+- * ChangeLog
+- * $Log: CinemaXMLParserFactory.java,v $
+- * Revision 1.3 2001/04/11 17:04:41 lord
+- * Added License agreements to all code
+- *
+- * Revision 1.2 2000/12/18 12:09:23 jns
+- * o getting rid of system.out.println to avoid noisy output out of debug
+- * mode
+- *
+- * Revision 1.1 2000/09/25 16:35:34 lord
+- * Changes made so that the XMLParser used is no longer hard coded
+- * but comes from a factory. This allows for instance giving the parser a
+- * custom entity resolver.
+- *
+- */
+Index: cinema-3.0.23/home/moeller/alioth/debian-med/packages/cinema/cinema-3.0.23/src/uk/ac/man/bioinf/apps/xml/DefaultXMLParser.java
+===================================================================
+--- cinema-3.0.23.orig/home/moeller/alioth/debian-med/packages/cinema/cinema-3.0.23/src/uk/ac/man/bioinf/apps/xml/DefaultXMLParser.java 2011-06-07 19:38:40.000000000 +0200
++++ /dev/null 1970-01-01 00:00:00.000000000 +0000
+@@ -1,119 +0,0 @@
+-/*
+- *This library is free software; you can redistribute it and/or
+- *modify it under the terms of the GNU Lesser General Public
+- *License as published by the Free Software Foundation; either
+- *version 2.1 of the License, or (at your option) any later version.
+- *
+- *This library 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
+- *Lesser General Public License for more details.
+- *
+- *You should have received a copy of the GNU Lesser General Public
+- *License along with this library; if not, write to the Free Software
+- *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+-*/
+-
+-/*
+- * This software was written by Phillip Lord (p.lord at hgmp.mrc.ac.uk)
+- * whilst at the University of Manchester as a Pfizer post-doctoral
+- * Research Fellow.
+- *
+- * The initial code base is copyright by Pfizer, or the University
+- * of Manchester. Modifications to the initial code base are copyright
+- * of their respective authors, or their employers as appropriate.
+- * Authorship of the modifications may be determined from the ChangeLog
+- * placed at the end of this file
+- */
+-
+-package uk.ac.man.bioinf.apps.xml; // Package name inserted by JPack
+-import org.xml.sax.InputSource;
+-import org.xml.sax.SAXException;
+-import org.xml.sax.XMLReader;
+-import org.xml.sax.helpers.DefaultHandler;
+-import org.xml.sax.helpers.XMLReaderFactory;
+-import uk.ac.man.bioinf.debug.Debug;
+-
+-
+-/**
+- * DefaultXMLParser.java
+- *
+- *
+- * Created: Mon May 8 21:08:32 2000
+- *
+- * @author Phillip Lord
+- * @version $Id: DefaultXMLParser.java,v 1.5 2001/04/11 17:04:42 lord Exp $
+- */
+-
+-public class DefaultXMLParser implements XMLParserFactory
+-{
+- public XMLReader getXMLParser()
+- {
+- try{
+- XMLReader read = XMLReaderFactory.createXMLReader( "org.apache.xerces.parsers.SAXParser" );
+- read.setEntityResolver
+- ( new DefaultHandler(){
+- public InputSource resolveEntity( String publicId, String systemId ) throws SAXException
+- {
+- InputSource retn = super.resolveEntity( publicId, systemId );
+- System.out.println( "ENTITY:- " + retn + " pub " + publicId + " sys " + systemId );
+- return retn;
+- }
+- });
+- return read;
+- }
+- catch( Exception exp ){
+- if( Debug.debug )
+- Debug.throwable( this, exp );
+- }
+- return null;
+- }
+-} // DefaultXMLParser
+-
+-
+-
+-/*
+- * ChangeLog
+- * $Log: DefaultXMLParser.java,v $
+- * Revision 1.5 2001/04/11 17:04:42 lord
+- * Added License agreements to all code
+- *
+- * Revision 1.4 2000/12/18 12:12:53 jns
+- * o getting rid of system.out.println to avoid noisy output out of debug
+- * mode
+- *
+- * Revision 1.3 2000/10/19 17:51:15 lord
+- * Import rationalisation
+- *
+- * Revision 1.2 2000/09/25 16:35:34 lord
+- * Changes made so that the XMLParser used is no longer hard coded
+- * but comes from a factory. This allows for instance giving the parser a
+- * custom entity resolver.
+- *
+- * Revision 1.1 2000/05/15 16:23:53 lord
+- * Initial checkin
+- *
+- */
+-
+-/*
+- * ChangeLog
+- * $Log: DefaultXMLParser.java,v $
+- * Revision 1.5 2001/04/11 17:04:42 lord
+- * Added License agreements to all code
+- *
+- * Revision 1.4 2000/12/18 12:12:53 jns
+- * o getting rid of system.out.println to avoid noisy output out of debug
+- * mode
+- *
+- * Revision 1.3 2000/10/19 17:51:15 lord
+- * Import rationalisation
+- *
+- * Revision 1.2 2000/09/25 16:35:34 lord
+- * Changes made so that the XMLParser used is no longer hard coded
+- * but comes from a factory. This allows for instance giving the parser a
+- * custom entity resolver.
+- *
+- * Revision 1.1 2000/05/15 16:23:53 lord
+- * Initial checkin
+- *
+- */
diff --git a/debian/patches/application.patch b/debian/patches/application.patch
new file mode 100644
index 0000000..95e7440
--- /dev/null
+++ b/debian/patches/application.patch
@@ -0,0 +1,52 @@
+Index: cinema-3.0.23/bin/cinema
+===================================================================
+--- cinema-3.0.23.orig/bin/cinema 2011-06-07 19:41:52.000000000 +0200
++++ cinema-3.0.23/bin/cinema 2011-06-07 20:12:19.000000000 +0200
+@@ -16,6 +16,7 @@
+ ## to this is probably to do as much of the command liner parsing in
+ ## Java as possible.
+
++set -e
+
+ ## This is the location of the main install directory where Cinema
+ ## should find all most of its jar files.
+@@ -66,8 +67,15 @@
+ ext_jars=${ext_jars}:$jar_file
+ done
+
++#for jar_file in $( find /usr/share/java/ -name "*.jar" -a ! -type l )
++for jar_file in /usr/share/java/gnu-getopt.jar /usr/share/java/regexp.jar /usr/share/java/xalan2.jar /usr/share/java/nekohtml.jar /usr/share/java/nekohtmlXni.jar
++do
++ [ -r $jar_file ] || echo "Not found: $jar_file"
++ system_jars=${system_jars}:$jar_file
++done
++
+ # classpath
+-classpath=${user_jars}${cinema_jars}${ext_jars}
++classpath=${user_jars}${cinema_jars}${ext_jars}:${system_jars}
+
+
+ ##
+@@ -81,4 +89,5 @@
+ echo "Running Cinema as ${COMMAND_LINE}"
+ fi
+
++echo "executing java -classpath ${classpath} uk.ac.man.bioinf.apps.cinema.Cinema $OTHER_ARGUMENTS $*"
+ java -classpath ${classpath} uk.ac.man.bioinf.apps.cinema.Cinema $OTHER_ARGUMENTS $*
+Index: cinema-3.0.23/bin/cinema.pl
+===================================================================
+--- cinema-3.0.23.orig/bin/cinema.pl 2011-06-07 19:43:56.000000000 +0200
++++ cinema-3.0.23/bin/cinema.pl 2011-06-07 19:44:32.000000000 +0200
+@@ -63,7 +63,11 @@
+ $ext_jars.=":$jarfile";
+ }
+
+-my $classpath="$user_jars$cinema_jars$ext_jars";
++foreach $jarfile ( glob( "/usr/share/java/*jar" ) ){
++ $system_jars.=":$jarfile";
++}
++
++my $classpath="$user_jars$cinema_jars$ext_jars$system_jars";
+
+ if( $VERBOSE ){
+ print "java -classpath $classpath $JVM_OPTIONS uk.ac.man.bioinf.apps.cinema.Cinema @ARGV";
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6ff84be
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+ant.patch
+application.patch
+ioexception.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7d4544b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
+
+dh_override_auto_build:
+ mkdir -p classes/ext
+ cd src/uk/ac/man/bioinf && ant dist_build
+
+
+get-orig-source:
+ # this version is mostly historical
+ [ -r cinema-3_0_23.tar.gz ] || wget http://homepages.cs.ncl.ac.uk/phillip.lord/download/java/cinema/cinema-3_0_23.tar.gz
+ tar xzvf cinema-3_0_23.tar.gz
+ cd cinema-3_0_23 && rm -r classes lib
+ mv cinema-3_0_23 cinema-3.0.23
+ tar czvf cinema-3.0.23.orig.tar.gz cinema-3.0.23
+ rm -r cinema-3.0.23
+ rm cinema-3_0_23.tar.gz
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8175d16
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,8 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+http://homepages.cs.ncl.ac.uk/phillip.lord/download/java/cinema/cinema-([0-9_]+).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/cinema.git
More information about the debian-med-commit
mailing list