[pkg-java] r6959 - trunk/libpdfrenderer-java/debian
twerner at alioth.debian.org
twerner at alioth.debian.org
Sat Aug 30 17:07:33 UTC 2008
Author: twerner
Date: 2008-08-30 17:07:32 +0000 (Sat, 30 Aug 2008)
New Revision: 6959
Added:
trunk/libpdfrenderer-java/debian/ant.properties
trunk/libpdfrenderer-java/debian/build.xml
Modified:
trunk/libpdfrenderer-java/debian/
trunk/libpdfrenderer-java/debian/rules
Log:
use our own build.xml
Property changes on: trunk/libpdfrenderer-java/debian
___________________________________________________________________
Name: mergeWithUpstream
+ 1
Added: trunk/libpdfrenderer-java/debian/ant.properties
===================================================================
--- trunk/libpdfrenderer-java/debian/ant.properties (rev 0)
+++ trunk/libpdfrenderer-java/debian/ant.properties 2008-08-30 17:07:32 UTC (rev 6959)
@@ -0,0 +1,4 @@
+project.name=pdfrenderer
+class.dir=class
+source.dir=src
+jar.name=pdfrenderer.jar
Added: trunk/libpdfrenderer-java/debian/build.xml
===================================================================
--- trunk/libpdfrenderer-java/debian/build.xml (rev 0)
+++ trunk/libpdfrenderer-java/debian/build.xml 2008-08-30 17:07:32 UTC (rev 6959)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project default="jar" name="${project.name}" basedir="..">
+
+ <target name="clean">
+ <delete dir="${class.dir}" quiet="true"/>
+ <delete file="${jar.name}" quiet="true"/>
+ </target>
+
+ <target name="compile">
+ <mkdir dir="${class.dir}"/>
+ <javac srcdir="${source.dir}" destdir="${class.dir}"
+ debug="true" source="1.5"/>
+ </target>
+
+ <target name="jar" description="o Create the jar" depends="compile">
+ <jar jarfile="${jar.name}">
+ <fileset dir="${class.dir}">
+ <include name="**"/>
+ </fileset>
+ </jar>
+ </target>
+
+</project>
Modified: trunk/libpdfrenderer-java/debian/rules
===================================================================
--- trunk/libpdfrenderer-java/debian/rules 2008-08-29 22:20:21 UTC (rev 6958)
+++ trunk/libpdfrenderer-java/debian/rules 2008-08-30 17:07:32 UTC (rev 6959)
@@ -3,13 +3,19 @@
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
-JAVA_HOME := /usr/lib/jvm/default-java
+JAVA_HOME := /usr/lib/jvm/default-java
+DEB_ANT_BUILDFILE := debian/build.xml
install/libpdfrenderer-java::
+ install -m644 -D pdfrenderer.jar \
+ $(DEB_DESTDIR)/usr/share/java/pdfrenderer-$(DEB_UPSTREAM_VERSION).jar
+ dh_link -plibpdfrenderer-java \
+ /usr/share/java/pdfrenderer-$(DEB_UPSTREAM_VERSION).jar \
+ /usr/share/java/pdfrenderer.jar
get-orig-source:
wget https://pdf-renderer.dev.java.net/demos/latest/PDFRenderer_src.zip
unzip PDFRenderer_src.zip
- tar cfz ../libpdfrenderer-java_$(DEB_UPSTREAM_JAVA).orig.tar.gz \
+ tar cfz ../libpdfrenderer-java_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
PDFRenderer_src
$(RM) -r PDFRenderer_src.zip PDFRenderer_src
More information about the pkg-java-commits
mailing list