[pkg-java] r7869 - trunk/lib-com-stevesoft-regex-java/debian

fourmond at alioth.debian.org fourmond at alioth.debian.org
Sat Jan 24 23:59:29 UTC 2009


Author: fourmond
Date: 2009-01-24 23:59:29 +0000 (Sat, 24 Jan 2009)
New Revision: 7869

Added:
   trunk/lib-com-stevesoft-regex-java/debian/build.xml
   trunk/lib-com-stevesoft-regex-java/debian/new-upstream
Modified:
   trunk/lib-com-stevesoft-regex-java/debian/changelog
   trunk/lib-com-stevesoft-regex-java/debian/control
   trunk/lib-com-stevesoft-regex-java/debian/copyright
   trunk/lib-com-stevesoft-regex-java/debian/rules
   trunk/lib-com-stevesoft-regex-java/debian/watch
Log:
[lib-com-stevesoft-regex-java] Mostly ready for upload

Added: trunk/lib-com-stevesoft-regex-java/debian/build.xml
===================================================================
--- trunk/lib-com-stevesoft-regex-java/debian/build.xml	                        (rev 0)
+++ trunk/lib-com-stevesoft-regex-java/debian/build.xml	2009-01-24 23:59:29 UTC (rev 7869)
@@ -0,0 +1,27 @@
+<?xml version="1.0"?> 
+<!-- Ant build file for the lib-com-stevesoft-regex-java debian package -->
+<!-- Copyright 2009 by Vincent Fourmond -->
+<project name="test" default="build" basedir="..">
+  <property name="srcdir" value="src" />
+  <property name="builddir" value="build" />
+  <property name="jardir" value="dist" />
+  <property name="jarname" value="${jardir}/regex-${PACKAGE_VERSION}.jar" />
+
+  <target name="init">
+    <mkdir dir="${builddir}" />
+    <mkdir dir="${jardir}" />
+  </target>
+
+  <target name="clean">
+    <delete dir="${builddir}" />
+    <delete dir="${jardir}" />
+  </target>
+  
+  <target name="compile" depends="init">
+    <javac srcdir="${srcdir}" destdir="${builddir}" />
+  </target>
+
+  <target name="build" depends="compile">
+    <jar basedir="${builddir}" destfile="${jarname}" />
+  </target>
+</project>
\ No newline at end of file

Modified: trunk/lib-com-stevesoft-regex-java/debian/changelog
===================================================================
--- trunk/lib-com-stevesoft-regex-java/debian/changelog	2009-01-24 22:42:39 UTC (rev 7868)
+++ trunk/lib-com-stevesoft-regex-java/debian/changelog	2009-01-24 23:59:29 UTC (rev 7869)
@@ -1,5 +1,8 @@
 lib-com-stevesoft-regex-java (1.5.3-1) experimental; urgency=low
 
   * Initial release (Closes: #512353)
+  * Adding a watchfile and a small debian/new-upstream script to
+    repackage from jar to tarball.
+  * Writing a debian/build.xml ant task file to compile the project
 
- -- Vincent Fourmond <fourmond at debian.org>  Sat, 24 Jan 2009 23:23:02 +0100
+ -- Vincent Fourmond <fourmond at debian.org>  Sun, 25 Jan 2009 00:46:36 +0100

Modified: trunk/lib-com-stevesoft-regex-java/debian/control
===================================================================
--- trunk/lib-com-stevesoft-regex-java/debian/control	2009-01-24 22:42:39 UTC (rev 7868)
+++ trunk/lib-com-stevesoft-regex-java/debian/control	2009-01-24 23:59:29 UTC (rev 7869)
@@ -2,7 +2,7 @@
 Section: libs
 Priority: optional
 Maintainer: Vincent Fourmond <fourmond at debian.org>
-Build-Depends: cdbs, debhelper (>= 7)
+Build-Depends: cdbs, debhelper (>= 7), ant, default-jdk-builddep
 Standards-Version: 3.8.0
 Homepage: http://www.javaregex.com/home.html 
 

Modified: trunk/lib-com-stevesoft-regex-java/debian/copyright
===================================================================
--- trunk/lib-com-stevesoft-regex-java/debian/copyright	2009-01-24 22:42:39 UTC (rev 7868)
+++ trunk/lib-com-stevesoft-regex-java/debian/copyright	2009-01-24 23:59:29 UTC (rev 7869)
@@ -3,7 +3,7 @@
 
 It was downloaded from <http://www.javaregex.com/download.html>
 
-Upstream Author(s):
+Upstream Author:
 
     Steven R. Brandt <questions at stevenrbrandt.com>
 

Copied: trunk/lib-com-stevesoft-regex-java/debian/new-upstream (from rev 7866, trunk/jalview/debian/new-upstream)
===================================================================
--- trunk/lib-com-stevesoft-regex-java/debian/new-upstream	                        (rev 0)
+++ trunk/lib-com-stevesoft-regex-java/debian/new-upstream	2009-01-24 23:59:29 UTC (rev 7869)
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# new-upstream: copyright 2009 by Vincent Fourmond.
+# This script simply repackages the original jarball into a real tarball.
+#
+# Called by uscan; from uscan(1):
+#
+# Finally,  if a third parameter (an action) is given in the watchfile
+# line, this is taken as the name of a command, and the command
+#  command --upstream-version version filename
+# 
+# is executed, using either the original file or the symlink name.
+#
+# Thanks to Sam Morris <sam at robots.org.uk> for giving me the idea
+#
+
+version=$2
+filename=$3
+
+dir=`mktemp -d`
+target_dir=$dir/lib-com-stevesoft-regex-java-$version/src
+
+# We repackage the upstream source zip file:
+mkdir -p $target_dir
+unzip "$filename" -d "$target_dir"
+origname=lib-com-stevesoft-regex-java_$version.orig.tar.gz
+
+# We repackage excluding the lib/ subdir
+cd $dir
+echo "Creating archive"
+tar cvz -f $origname lib-com*
+cd -
+# We remove any file already existing there: it might be a symlink.
+rm -f $orginame 
+mv $dir/$origname ..


Property changes on: trunk/lib-com-stevesoft-regex-java/debian/new-upstream
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mergeinfo
   + 

Modified: trunk/lib-com-stevesoft-regex-java/debian/rules
===================================================================
--- trunk/lib-com-stevesoft-regex-java/debian/rules	2009-01-24 22:42:39 UTC (rev 7868)
+++ trunk/lib-com-stevesoft-regex-java/debian/rules	2009-01-24 23:59:29 UTC (rev 7869)
@@ -16,15 +16,20 @@
 ANT_HOME             := /usr/share/ant
 DEB_ANT_COMPILER     := modern
 DEB_BUILDDIR         := .
-# DEB_ANT_BUILDFILE    := build.xml
+DEB_ANT_BUILDFILE    := debian/build.xml
 DEB_ANT_CLEAN_TARGET := clean
 
+ANT_ARGS := -DPACKAGE_VERSION=$(VERSION)
+
+target_dir=debian/lib-com-stevesoft-regex-java/usr/share/java
+
 print-version:
 	echo $(VERSION)
 
-# install/statsvn::
-# 	install -m 644 dist/statsvn.jar debian/statsvn/usr/share/java/statsvn-$(VERSION).jar
-# 	ln -s statsvn-$(VERSION).jar debian/statsvn/usr/share/java/statsvn.jar
-# 	install -m 755 -t debian/statsvn/usr/bin debian/wrappers/statsvn
 
 
+install/lib-com-stevesoft-regex-java::
+	install -m 644 dist/*.jar $(target_dir)/regex-$(VERSION).jar
+	ln -s regex-$(VERSION).jar $(target_dir)/regex.jar
+
+

Modified: trunk/lib-com-stevesoft-regex-java/debian/watch
===================================================================
--- trunk/lib-com-stevesoft-regex-java/debian/watch	2009-01-24 22:42:39 UTC (rev 7868)
+++ trunk/lib-com-stevesoft-regex-java/debian/watch	2009-01-24 23:59:29 UTC (rev 7869)
@@ -3,4 +3,4 @@
 # Compulsory line, this is a version 3 file
 version=3
 
-http://www.javaregex.com/binaries/patsrcfree(.)(.)?(.)?.jar
+http://www.javaregex.com/binaries/patsrcfree(.)(.)?(.)?.jar debian debian/new-upstream




More information about the pkg-java-commits mailing list