[pkg-java] r3042 - trunk/jtidy/debian

Paul Cager paulcager-guest at alioth.debian.org
Sat Mar 10 02:02:00 CET 2007


Author: paulcager-guest
Date: 2007-03-10 01:02:00 +0000 (Sat, 10 Mar 2007)
New Revision: 3042

Added:
   trunk/jtidy/debian/README.Debian
   trunk/jtidy/debian/build.xml
   trunk/jtidy/debian/changelog
   trunk/jtidy/debian/compat
   trunk/jtidy/debian/control
   trunk/jtidy/debian/copyright
   trunk/jtidy/debian/libjtidy-java-doc.doc-base
   trunk/jtidy/debian/rules
Log:
*Draft* packaging of JTidy.
This will close ITP 413526.
Notes:
  1)  An svn snapshot is used since the source tarballs are rather out of date.
  2)  Upstream do not provide a build.xml file. I have added one as debian/build.xml


Added: trunk/jtidy/debian/README.Debian
===================================================================
--- trunk/jtidy/debian/README.Debian	2007-03-06 10:30:16 UTC (rev 3041)
+++ trunk/jtidy/debian/README.Debian	2007-03-10 01:02:00 UTC (rev 3042)
@@ -0,0 +1,17 @@
+Debian README for JTidy
+=======================
+
+Upstream provide 3 types of downloads:
+
+   1)  The standard SourceForge.net dowloads. These appear to very
+       out of date - the latest archive is 04aug2000r7-dev on
+       August 1, 2001.
+
+   2)  Maven snapshots at
+       http://jtidy.sourceforge.net/snapshots/jtidy/jtidy/. These
+       do *not* include source code.
+
+   3)  svn access at
+       https://svn.sourceforge.net/svnroot/jtidy/trunk/jtidy/
+
+This Debian packaging uses an svn snapshot.

Added: trunk/jtidy/debian/build.xml
===================================================================
--- trunk/jtidy/debian/build.xml	2007-03-06 10:30:16 UTC (rev 3041)
+++ trunk/jtidy/debian/build.xml	2007-03-10 01:02:00 UTC (rev 3042)
@@ -0,0 +1,79 @@
+<?xml version="1.0"?>
+
+<!--
+      This build.xml file was written for the Debian build of jtidy.
+      This file copyright (c) Paul Cager <paul-debian at home.paulcager.org>
+
+        This software and documentation is provided "as is," and
+        the copyright holders and contributing author(s) make no
+        representations or warranties, express or implied, including
+        but not limited to, warranties of merchantability or fitness
+        for any particular purpose or that the use of the software or
+        documentation will not infringe any third party patents,
+        copyrights, trademarks or other rights. 
+
+        The copyright holders and contributing author(s) will not be
+        liable for any direct, indirect, special or consequential damages
+        arising out of any use of the software or documentation, even if
+        advised of the possibility of such damage.
+
+        Permission is hereby granted to use, copy, modify, and distribute
+        this source code, or portions hereof, documentation and executables,
+        for any purpose, without fee, subject to the following restrictions:
+
+        1. The origin of this source code must not be misrepresented.
+        2. Altered versions must be plainly marked as such and must
+           not be misrepresented as being the original source.
+        3. This Copyright notice may not be removed or altered from any
+           source or altered source distribution.
+-->
+
+<project name="jtidy" default="package" basedir="..">
+
+<target name="package" depends="jar,javadoc"/>
+
+<target name="init">
+	<property name="src.dir" value="src"/>
+	<property name="build.dir" value="build"/>
+	<property name="package" value="jtidy"/>
+	<property name="jar" value="${build.dir}/${package}-${version}.jar"/>
+	<property name="packages" value="org.w3c.dom.*, org.w3c.tidy.*"/>
+	<property name="javadoc.dir" value="build/doc/api"/>
+</target>
+
+<target name="compile" depends="init">
+	<mkdir dir="${build.dir}"/>
+	<javac srcdir="${src.dir}/main"
+		destdir="${build.dir}"
+		includes="**/*.java"
+		debug="on"
+	/>
+	<copy file="${src.dir}/main/resources/tidy.gif" tofile="${build.dir}/org/w3c/tidy/tidy.gif"/>
+	<copy file="${src.dir}/main/resources/org/w3c/tidy/TidyMessages.properties" tofile="${build.dir}/org/w3c/tidy/TidyMessages.properties"/>
+</target>
+
+<target name="jar" depends="compile">
+	<delete file="${jar}"/>
+
+	<jar jarfile="${jar}"
+		basedir="${build.dir}"
+		includes="**/*.class,**/*.properties,**/*.gif"
+	/>
+</target>
+
+<target name="javadoc" depends="init">
+	<mkdir dir="${javadoc.dir}"/>
+	<javadoc packagenames="${packages}"
+		sourcepath="${src.dir}/main/java"
+		destdir="${javadoc.dir}"
+		author="true"
+		version="true"
+		windowtitle="${package} API"
+		doctitle="${package} - ${version}"
+	/>
+</target>
+
+<target name="clean" depends="init">
+	<delete dir="${build.dir}"/>
+</target>
+</project>

Added: trunk/jtidy/debian/changelog
===================================================================
--- trunk/jtidy/debian/changelog	2007-03-06 10:30:16 UTC (rev 3041)
+++ trunk/jtidy/debian/changelog	2007-03-10 01:02:00 UTC (rev 3042)
@@ -0,0 +1,5 @@
+jtidy (7+svn20070309-1) unstable; urgency=low
+
+  * Initial release. (Closes: #413526)
+
+ -- Paul Cager <paul-debian at home.paulcager.org>  Fri,  9 Mar 2007 23:57:22 +0000

Added: trunk/jtidy/debian/compat
===================================================================
--- trunk/jtidy/debian/compat	2007-03-06 10:30:16 UTC (rev 3041)
+++ trunk/jtidy/debian/compat	2007-03-10 01:02:00 UTC (rev 3042)
@@ -0,0 +1 @@
+4

Added: trunk/jtidy/debian/control
===================================================================
--- trunk/jtidy/debian/control	2007-03-06 10:30:16 UTC (rev 3041)
+++ trunk/jtidy/debian/control	2007-03-10 01:02:00 UTC (rev 3042)
@@ -0,0 +1,31 @@
+Source: jtidy
+Section: libs
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Paul Cager <paul-debian at home.paulcager.org>
+Build-Depends-Indep: java-gcj-compat-dev (>=1.0.65), ant-optional, libxalan2-java
+Build-Depends: ant, debhelper (>= 5), cdbs (>= 0.4.5.3)
+Standards-Version: 3.7.2
+
+Package: libjtidy-java
+Architecture: all
+Section: libs
+Suggests: libjtidy-java-doc
+Description: a Java port of HTML Tidy, a HTML syntax checker and pretty printer
+ JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer.
+ Like its non-Java cousin, JTidy can be used as a tool for cleaning up malformed
+ and faulty HTML. In addition, JTidy provides a DOM interface to the document
+ that is being processed, which effectively makes you able to use JTidy as a
+ DOM parser for real-world HTML.
+ .
+  Homepage: http://jtidy.sourceforge.net/
+
+Package: libjtidy-java-doc
+Architecture: all
+Section: doc
+Depends: classpath-doc
+Suggests: libjtidy-java
+Description: API Documentation for JTidy
+ Documentation for JTidy, a syntax checker and pretty-printer for HTML.
+ .
+  Homepage: http://jtidy.sourceforge.net/

Added: trunk/jtidy/debian/copyright
===================================================================
--- trunk/jtidy/debian/copyright	2007-03-06 10:30:16 UTC (rev 3041)
+++ trunk/jtidy/debian/copyright	2007-03-10 01:02:00 UTC (rev 3042)
@@ -0,0 +1,4 @@
+This package was debianized by Paul Cager <paul-debian at home.paulcager.org> on
+Fri,  9 Mar 2007 23:57:22 +0000
+
+TO BE SUPPLIED

Added: trunk/jtidy/debian/libjtidy-java-doc.doc-base
===================================================================
--- trunk/jtidy/debian/libjtidy-java-doc.doc-base	2007-03-06 10:30:16 UTC (rev 3041)
+++ trunk/jtidy/debian/libjtidy-java-doc.doc-base	2007-03-10 01:02:00 UTC (rev 3042)
@@ -0,0 +1,9 @@
+Document: libjtidy-java
+Title: API Javadoc for jtidy
+Author: jtidy developers
+Abstract: This is the API Javadoc provided by the jtidy library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libjtidy-java/api/index.html
+Files: /usr/share/doc/libjtidy-java/api/*

Added: trunk/jtidy/debian/rules
===================================================================
--- trunk/jtidy/debian/rules	2007-03-06 10:30:16 UTC (rev 3041)
+++ trunk/jtidy/debian/rules	2007-03-10 01:02:00 UTC (rev 3042)
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+PACKAGE              := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ')
+VERSION              := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ' | cut -f1 -d-)
+JAVA_HOME            := /usr/lib/jvm/java-gcj
+ANT_HOME             := /usr/share/ant
+DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar xalan2
+DEB_ANT_BUILD_TARGET := package
+BUILD_FILE           := ./debian/build.xml
+DEB_ANT_INVOKE       := ant -Dpackage=$(PACKAGE) -Dversion=$(VERSION) -f $(BUILD_FILE)
+API_DOCS             := build/doc/api
+
+
+get-orig-source:
+	mkdir orig_tmp
+	cd orig_tmp && \
+		svn export -q https://svn.sourceforge.net/svnroot/jtidy/trunk/jtidy/ $(PACKAGE) && \
+		tar czf ../../$(PACKAGE)_$(VERSION).orig.tar.gz $(PACKAGE)
+	rm -rf orig_tmp
+	
+
+makebuilddir/libjtidy-java::
+	echo "build/$(PACKAGE)-$(VERSION).jar usr/share/java" >debian/lib$(PACKAGE)-java.install
+	echo "/usr/share/java/$(PACKAGE)-$(VERSION).jar /usr/share/java/$(PACKAGE).jar" >debian/lib$(PACKAGE)-java.links
+
+makebuilddir/lib$(PACKAGE)-java-doc::
+	echo "$(API_DOCS) usr/share/doc/lib$(PACKAGE)-java" >debian/lib$(PACKAGE)-java-doc.install
+	#echo "CHANGES usr/share/doc/lib$(PACKAGE)-java" >>debian/lib$(PACKAGE)-java-doc.install


Property changes on: trunk/jtidy/debian/rules
___________________________________________________________________
Name: svn:executable
   + *




More information about the pkg-java-commits mailing list