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 26 27 28
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
PACKAGE := $(DEB_SOURCE_PACKAGE)
VERSION := $(DEB_UPSTREAM_VERSION)
JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS := ant-nodeps ant-junit ant-trax junit jaxp-1.3 xalan2 serializer
DEB_ANT_BUILD_TARGET := jar test docs
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_ARGS := -Dxmlunit.version=$(VERSION) -Ddb5.xsl=/usr/share/xml/docbook/stylesheet/nwalsh
get-orig-source:
-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename --repack
binary-post-install/lib$(PACKAGE)-java::
cp build/lib/xmlunit-$(VERSION).pom build/lib/xmlunit.pom
mh_installpoms -plib$(PACKAGE)-java
mh_installjar -plib$(PACKAGE)-java -l debian/pom.xml build/lib/xmlunit-$(VERSION).jar
clean::
-rm -rf debian/tmp
mh_clean
get-orig-pom:
wget -O debian/pom.xml http://repo1.maven.org/maven2/xmlunit/xmlunit/$(VERSION)/xmlunit-$(VERSION).pom
|