[pkg-java] r3257 - trunk/jta/debian
Paul Cager
paulcager-guest at alioth.debian.org
Mon Apr 16 21:56:05 UTC 2007
Author: paulcager-guest
Date: 2007-04-16 21:56:05 +0000 (Mon, 16 Apr 2007)
New Revision: 3257
Modified:
trunk/jta/debian/rules
Log:
Checkpoint before convert to CDBS
Modified: trunk/jta/debian/rules
===================================================================
--- trunk/jta/debian/rules 2007-04-16 20:02:35 UTC (rev 3256)
+++ trunk/jta/debian/rules 2007-04-16 21:56:05 UTC (rev 3257)
@@ -12,22 +12,32 @@
# export JITC_PROCESSOR_TYPE=6
# export JAVA_HOME=/usr/local/IBMJava2-ppc-142
#endif
-export JAVA_HOME=/usr/lib/kaffe
-JAVA = $(JAVA_HOME)/bin/java
-JAR = $(JAVA_HOME)/bin/jar
-JAVAC = $(JAVA_HOME)/bin/javac
-JAVADOC = $(JAVA_HOME)/bin/javadoc
-JAVAH = $(JAVA_HOME)/bin/javah
-export CLASSPATH=/usr/share/java/regexp.jar:/usr/share/java/crimson.jar:/usr/share/java/jdom0.jar
+
+export JAVA_HOME=/usr/lib/jvm/java-gcj
+
+# Class path: Ant requires an JAXP-compatible XML parser
+# You need to set CLASSPATH here (even if your build.xml assembles its own
+# class path) to ensure the same build results in all cases
+JARS=/usr/share/java
+ANT_HOME=/usr/share/ant
+export CLASSPATH=${JARS}/xmlParserAPI.jar:${JARS}/xmlImpl.jar:$(JARS)/junit.jar:/usr/share/java/regexp.jar:/usr/share/java/crimson.jar:/usr/share/java/jdom0.jar
+
+# Ant options
+ANT_OPTS=-Dant.build.javac.target=1.4
+ANT=/usr/bin/ant ${ANT_OPTS}
+VERSION=$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ' | cut -f1 -d-)
+
+
+
get-orig-source:
mkdir tmp
wget -O orig-jar http://javassh.org/download/jta26-src.jar && \
cd tmp && \
jar xf ../orig-jar && \
- rm jta26/doc/rfc854.txt && \
- mv jta26 jta_26+dfsg.orig && \
- tar czf ../../jta_2.6+dfsg.orig.tar.gz jta_26+dfsg.orig
+ rm jta26/doc/rfc854.txt jta26/tools/*relayd jta26/tools/*relayd.exe && \
+ mv jta26 jta_2.6+dfsg.orig && \
+ tar czf ../../jta_2.6+dfsg.orig.tar.gz jta_2.6+dfsg.orig
rm -rf tmp orig-jar
@@ -44,8 +54,8 @@
build-stamp: configure-stamp
dh_testdir
- # Add here commands to compile the package.
- $(MAKE) jar
+ -mkdir jar
+ $(ANT) bin-jar doc
touch build-stamp
More information about the pkg-java-commits
mailing list