[pkg-java] r5967 - in trunk: . libhamcrest-java libhamcrest-java/debian
varun at alioth.debian.org
varun at alioth.debian.org
Sat Mar 8 07:55:00 UTC 2008
Author: varun
Date: 2008-03-08 07:54:59 +0000 (Sat, 08 Mar 2008)
New Revision: 5967
Added:
trunk/libhamcrest-java/
trunk/libhamcrest-java/debian/
trunk/libhamcrest-java/debian/ant.properties
trunk/libhamcrest-java/debian/build.xml
trunk/libhamcrest-java/debian/changelog
trunk/libhamcrest-java/debian/compat
trunk/libhamcrest-java/debian/control
trunk/libhamcrest-java/debian/copyright
trunk/libhamcrest-java/debian/orig-tar.sh
trunk/libhamcrest-java/debian/rules
trunk/libhamcrest-java/debian/watch
Log:
* New package hamcrest (required to package junit4-4.4)
Property changes on: trunk/libhamcrest-java/debian
___________________________________________________________________
Name: mergeWithUpstream
+ 1
Added: trunk/libhamcrest-java/debian/ant.properties
===================================================================
--- trunk/libhamcrest-java/debian/ant.properties (rev 0)
+++ trunk/libhamcrest-java/debian/ant.properties 2008-03-08 07:54:59 UTC (rev 5967)
@@ -0,0 +1,17 @@
+project.name=libhamcrest-java
+class.dir=classes
+source.dir=src/main/java
+
+hamcrest-core.dir=hamcrest-core
+hamcrest-integration.dir=hamcrest-integration
+hamcrest-generator.dir=hamcrest-generator
+hamcrest-library.dir=hamcrest-library
+hamcrest-text.dir=hamcrest-text
+
+hamcrest-core.jar=hamcrest-core.jar
+hamcrest-integration.jar=hamcrest-integration.jar
+hamcrest-generator.jar=hamcrest-generator.jar
+hamcrest-library.jar=hamcrest-library.jar
+hamcrest-text.jar=hamcrest-text.jar
+
+qdox.jar=/usr/share/java/qdox.jar
Added: trunk/libhamcrest-java/debian/build.xml
===================================================================
--- trunk/libhamcrest-java/debian/build.xml (rev 0)
+++ trunk/libhamcrest-java/debian/build.xml 2008-03-08 07:54:59 UTC (rev 5967)
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project default="jar" name="${project.name}" basedir="..">
+
+ <target name="clean">
+ <delete dir="${hamcrest-text.dir}/${class.dir}" quiet="true"/>
+ <delete dir="${hamcrest-library.dir}/${class.dir}" quiet="true"/>
+ <delete dir="${hamcrest-integration.dir}/${class.dir}" quiet="true"/>
+ <delete dir="${hamcrest-generator.dir}/${class.dir}" quiet="true"/>
+ <delete dir="${hamcrest-core.dir}/${class.dir}" quiet="true"/>
+ <delete dir="generated" quiet="true"/>
+
+ <delete file="${hamcrest-text.jar}" quiet="true"/>
+ <delete file="${hamcrest-library.jar}" quiet="true"/>
+ <delete file="${hamcrest-integration.jar}" quiet="true"/>
+ <delete file="${hamcrest-generator.jar}" quiet="true"/>
+ <delete file="${hamcrest-core.jar}" quiet="true"/>
+ </target>
+
+ <target name="jar">
+ <mkdir dir="${hamcrest-core.dir}/${class.dir}"/>
+ <javac srcdir="${hamcrest-core.dir}/${source.dir}" destdir="${hamcrest-core.dir}/${class.dir}"
+ debug="true" source="1.5"/>
+
+ <jar jarfile="${hamcrest-core.jar}">
+ <fileset dir="${hamcrest-core.dir}/${class.dir}">
+ <include name="**"/>
+ </fileset>
+ </jar>
+
+ <mkdir dir="${hamcrest-integration.dir}/${class.dir}"/>
+ <javac srcdir="${hamcrest-integration.dir}/${source.dir}" destdir="${hamcrest-integration.dir}/${class.dir}"
+ debug="true" source="1.5" classpath="${hamcrest-core.jar}"/>
+
+ <jar jarfile="${hamcrest-integration.jar}">
+ <fileset dir="${hamcrest-integration.dir}/${class.dir}">
+ <include name="**"/>
+ </fileset>
+ </jar>
+
+<!-- The below jars can be built only using sun-jdk -->
+
+ <mkdir dir="${hamcrest-generator.dir}/${class.dir}"/>
+ <javac srcdir="${hamcrest-generator.dir}/${source.dir}" destdir="${hamcrest-generator.dir}/${class.dir}"
+ debug="true" source="1.5" classpath="${hamcrest-core.jar}"/>
+
+ <jar jarfile="${hamcrest-generator.jar}">
+ <fileset dir="${hamcrest-generator.dir}/${class.dir}">
+ <include name="**"/>
+ </fileset>
+ </jar>
+
+ <mkdir dir="generated/code"/>
+ <java classname="org.hamcrest.generator.config.XmlConfigurator"
+ fork="yes"
+ failonerror="yes"
+ classpath="${hamcrest-core.jar}:${hamcrest-generator.jar}:${qdox.jar}">
+ <arg value="core-matchers.xml"/>
+ <arg value="${hamcrest-core.dir}/${source.dir}"/>
+ <arg value="org.hamcrest.CoreMatchers"/>
+ <arg value="generated/code"/>
+ </java>
+
+ <mkdir dir="generated/classes"/>
+ <javac srcdir="generated/code" destdir="generated/classes"
+ debug="true" source="1.5" classpath="${hamcrest-core.jar}"/>
+
+ <jar jarfile="${hamcrest-core.jar}">
+ <fileset dir="${hamcrest-core.dir}/${class.dir}">
+ <include name="**"/>
+ </fileset>
+ <fileset dir="generated/classes">
+ <include name="**"/>
+ </fileset>
+ </jar>
+
+ <mkdir dir="${hamcrest-library.dir}/${class.dir}"/>
+ <javac srcdir="${hamcrest-library.dir}/${source.dir}" destdir="${hamcrest-library.dir}/${class.dir}"
+ debug="true" source="1.5" classpath="${hamcrest-core.jar}"/>
+
+ <jar jarfile="${hamcrest-library.jar}">
+ <fileset dir="${hamcrest-library.dir}/${class.dir}">
+ <include name="**"/>
+ </fileset>
+ </jar>
+
+ <mkdir dir="${hamcrest-text.dir}/${class.dir}"/>
+ <javac srcdir="${hamcrest-text.dir}/${source.dir}" destdir="${hamcrest-text.dir}/${class.dir}"
+ debug="true" source="1.5" classpath="${hamcrest-core.jar}:${hamcrest-library.jar}"/>
+
+ <jar jarfile="${hamcrest-text.jar}">
+ <fileset dir="${hamcrest-text.dir}/${class.dir}">
+ <include name="**"/>
+ </fileset>
+ </jar>
+
+ </target>
+
+</project>
Added: trunk/libhamcrest-java/debian/changelog
===================================================================
--- trunk/libhamcrest-java/debian/changelog (rev 0)
+++ trunk/libhamcrest-java/debian/changelog 2008-03-08 07:54:59 UTC (rev 5967)
@@ -0,0 +1,5 @@
+libhamcrest-java (1.1-1) UNRELEASED; urgency=low
+
+ * Initial release
+
+ -- Varun Hiremath <varun at debian.org> Sat, 08 Mar 2008 13:08:15 +0530
Added: trunk/libhamcrest-java/debian/compat
===================================================================
--- trunk/libhamcrest-java/debian/compat (rev 0)
+++ trunk/libhamcrest-java/debian/compat 2008-03-08 07:54:59 UTC (rev 5967)
@@ -0,0 +1 @@
+6
Added: trunk/libhamcrest-java/debian/control
===================================================================
--- trunk/libhamcrest-java/debian/control (rev 0)
+++ trunk/libhamcrest-java/debian/control 2008-03-08 07:54:59 UTC (rev 5967)
@@ -0,0 +1,22 @@
+Source: libhamcrest-java
+Section: contrib/libs
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Varun Hiremath <varun at debian.org>
+Priority: optional
+Build-Depends: cdbs, debhelper (>= 6)
+Build-Depends-Indep: ant, sun-java6-jdk, libqdox-java,
+ libeasymock-java, libjmock-java
+Standards-Version: 3.7.3
+Homepage: http://code.google.com/p/hamcrest/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libhamcrest-java
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libhamcrest-java
+
+
+Package: libhamcrest-java
+Architecture: all
+Depends: java-gcj-compat | java1-runtime | java2-runtime
+Description: library of matchers for building test expressions
+ Provides a library of matcher objects (also known as constraints or
+ predicates) allowing 'match' rules to be defined declaratively, to be
+ used in other frameworks. Typical scenarios include testing
+ frameworks, mocking libraries and UI validation rules.
Added: trunk/libhamcrest-java/debian/copyright
===================================================================
--- trunk/libhamcrest-java/debian/copyright (rev 0)
+++ trunk/libhamcrest-java/debian/copyright 2008-03-08 07:54:59 UTC (rev 5967)
@@ -0,0 +1,51 @@
+This package was debianized by Varun Hiremath <varun at debian.org> on
+Fri, 7 Mar 2008 16:56:14 +0530
+
+It was downloaded from http://code.google.com/p/hamcrest/
+
+Repackaging:
+ The upstream supplied source package contains binary jar files,
+ and hence upstream sources have been repackaged. Please use the
+ get-orig-source target from debian/rules to create the orig.tar.gz
+ used for Debian packaging. For more details on repackaging of
+ upstream sources please see the debian/orig-tar.sh file.
+
+Upstream Authors: www.hamcrest.org
+
+Copyright: © 2000-2006, www.hamcrest.org
+
+License:
+ 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 Hamcrest 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.
+
+ On Debian systems, the complete text of the BSD License can be
+ found in `/usr/share/common-licenses/BSD'.
+
+The Debian packaging is (C) 2008, Varun Hiremath <varun at debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
Added: trunk/libhamcrest-java/debian/orig-tar.sh
===================================================================
--- trunk/libhamcrest-java/debian/orig-tar.sh (rev 0)
+++ trunk/libhamcrest-java/debian/orig-tar.sh 2008-03-08 07:54:59 UTC (rev 5967)
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+SOURCE=$(dpkg-parsechangelog | sed -ne 's,Source: \(.*\),\1,p')
+DIR=${SOURCE}-$2
+
+# clean up the upstream tarball
+tar -z -x -f $3
+mv hamcrest-$2 $DIR
+GZIP=--best tar -c -z -f $3 --exclude '*.jar' --exclude '*/lib/*' $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $3 $origDir
+ echo "moved $3 to $origDir"
+fi
Property changes on: trunk/libhamcrest-java/debian/orig-tar.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/libhamcrest-java/debian/rules
===================================================================
--- trunk/libhamcrest-java/debian/rules (rev 0)
+++ trunk/libhamcrest-java/debian/rules 2008-03-08 07:54:59 UTC (rev 5967)
@@ -0,0 +1,23 @@
+#!/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/java-6-sun
+DEB_ANT_BUILDFILE := debian/build.xml
+DEB_ANT_BUILD_TARGET := jar
+DEB_JARS := easymock jmock qdox
+
+ALL_JARS = $(wildcard *.jar)
+DEST_DIR = $(DEB_DESTDIR)/usr/share/java
+
+common-install-prehook-indep::
+ for jar in $(ALL_JARS); do \
+ BASENAME=`basename $$jar .jar`; \
+ FULLNAME=$$BASENAME-$(DEB_UPSTREAM_VERSION).jar; \
+ install -m 644 -D $$jar $(DEST_DIR)/$$FULLNAME; \
+ ln -s $$FULLNAME $(DEST_DIR)/$$BASENAME.jar; \
+ done
+
+get-orig-source:
+ -uscan --upstream-version 0 --rename
Property changes on: trunk/libhamcrest-java/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/libhamcrest-java/debian/watch
===================================================================
--- trunk/libhamcrest-java/debian/watch (rev 0)
+++ trunk/libhamcrest-java/debian/watch 2008-03-08 07:54:59 UTC (rev 5967)
@@ -0,0 +1,2 @@
+version=3
+http://code.google.com/p/hamcrest/downloads/list .*/hamcrest-(.*).tgz debian debian/orig-tar.sh
More information about the pkg-java-commits
mailing list