1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/usr/bin/make -f
export JAVA_HOME=/usr/lib/jvm/default-java
%:
dh $@ --with javahelper
override_dh_auto_build:
ant jars
ant javadocs
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ant test -Djava.awt.headless=true
endif
get-orig-source:
svn export https://github.com/Starlink/starjava/trunk/vo starjava-vo ; \
wget -nv https://github.com/Starlink/starjava/raw/master/LICENSE.txt -P starjava-vo ; \
VERSION=`xmllint --xpath '//project/property[@name="version"]/@value' starjava-vo/build.xml | cut -d\" -f2| tr - .` ; \
DATE=`stat -c %y starjava-vo/src/main/uk/ac/starlink/vo/*.java | cut -c-10 | sort|uniq|tail -1| tr - .`; \
rm -f starjava-vo/src/lib/*.jar ; \
tar cf starjava-vo_$$VERSION+$$DATE.orig.tar starjava-vo ; \
rm -rf starjava-vo ; \
xz starjava-vo_$$VERSION+$$DATE.orig.tar
|