[jtidy] 03/30: *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

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Dec 18 09:20:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository jtidy.

commit 47abb7c573373ce5cc1c7f689e756400cd4af415
Author: Paul Cager <paul-debian at home.paulcager.org>
Date:   Sat Mar 10 01:02:00 2007 +0000

    *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
---
 debian/README.Debian              | 17 +++++++++
 debian/build.xml                  | 79 +++++++++++++++++++++++++++++++++++++++
 debian/changelog                  |  5 +++
 debian/compat                     |  1 +
 debian/control                    | 31 +++++++++++++++
 debian/copyright                  |  4 ++
 debian/libjtidy-java-doc.doc-base |  9 +++++
 debian/rules                      | 32 ++++++++++++++++
 8 files changed, 178 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..62338eb
--- /dev/null
+++ b/debian/README.Debian
@@ -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.
diff --git a/debian/build.xml b/debian/build.xml
new file mode 100644
index 0000000..9a07e63
--- /dev/null
+++ b/debian/build.xml
@@ -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>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d01dee5
--- /dev/null
+++ b/debian/changelog
@@ -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
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..07b3953
--- /dev/null
+++ b/debian/control
@@ -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/
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2cc5a0d
--- /dev/null
+++ b/debian/copyright
@@ -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
diff --git a/debian/libjtidy-java-doc.doc-base b/debian/libjtidy-java-doc.doc-base
new file mode 100644
index 0000000..4cd0741
--- /dev/null
+++ b/debian/libjtidy-java-doc.doc-base
@@ -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/*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f2037f0
--- /dev/null
+++ b/debian/rules
@@ -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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jtidy.git



More information about the pkg-java-commits mailing list