-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wed, 27 Oct 2004 15:32:08 +0200, Paolo Ariano <[EMAIL PROTECTED]> wrote:
> Hi *, Ciao Paolo, > i've time to spend on my debianization of ImageJ (image processing in > Java) but i still have some doubt also after reading every documents i > found on web, i've downloaded the new java policy and jmol to (copy and > understand, as suggested time ago Egon) so my dir is: > > emoscion2:~/dev/imagej-1.32s :) $ lx > totale 20 > 4 drwxr-sr-x 7 paolo 4096 2004-10-27 15:05 source > 4 drwxr-sr-x 9 paolo 4096 2004-10-26 15:31 plugins > 4 drwxr-sr-x 4 paolo 4096 2004-10-26 15:31 macros > 4 drwxr-sr-x 2 paolo 4096 2004-10-27 11:51 jars > 4 drwxr-sr-x 2 paolo 4096 2004-10-27 14:55 debian > > 1. source directory contains all .java, build.xml and lots of things > 2. jars contain the ij.jar (the program that i launch with: > java -mx256m -cp ij.jar:plugins ij.ImageJ > 3. plugins contain .java and .class plugins to be used with > 4. macros: lot of .txt files > 5. debian has been created with dh_make and i'm still trying to modify > files ... Every file that can be produced by the build must not be in the source package (.orig.tar.gz). So, remove all the jars and .class from the source package. > now i've to use dh_java ? i've to *hand-write* rules, Makefile (doesn't > exist) and dirs ? Look at some packages at Alioth's pkg-java project, we build nearly all our package with 'cdbs' + 'ant' http://pkg-java.alioth.debian.org/ Here is a typical debian/rules with cdbs to build package with ant: #!/usr/bin/make -f # debian/rules for libcommons-jexl-java (uses CDBS) # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This is the debhelper compatibility version to use. #export DH_COMPAT=4 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 #JAVA_HOME_DIRS := /usr/lib/kaffe JAVACMD := /usr/bin/java-sablevm ANT_HOME := /usr/share/ant1.6 DEB_JARS := junit commons-logging gnujaxp /usr/share/ant1.6/lib/ant-launcher.jar DEB_ANT_COMPILER := jikes DEB_ANT_BUILD_TARGET := jar #DEB_ANT_TEST_TARGET := test LIBRARY=commons-jexl VERSION=1.0 Cheers, - -- .''`. : :' :rnaud `. `' `- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBgg3i4vzFZu62tMIRAleCAJwJNVNUPMs5IuWs/wBDQdhouP6HxwCeKYdk UB/aawdipysWBsS6U8QxyRA= =rmUy -----END PGP SIGNATURE-----