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 29 30
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
JAVA_HOME := /usr/lib/jvm/default-java
ANT_HOME := /usr/share/ant
DEB_ANT_COMPILER := modern
DEB_JARS := ant-nodeps junit ant-junit ant-trax
DEB_ANT_BUILD_TARGET := debiandist
DEB_BUILDDIR := .
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_CLEAN_TARGET := clean
DEB_ANT_CHECK_TARGET := test
clean::
-rm -Rf build doc test dist woodstox-core-lgpl.patched.pom
mh_clean
configure/libwoodstox-java::
# Patch the POM to include the correct version number
cp src/maven/woodstox-core-lgpl.pom woodstox-core-lgpl.patched.pom
sed -i woodstox-core-lgpl.patched.pom -e 's/@VERSION@/$(DEB_UPSTREAM_VERSION)/g'
sed -i woodstox-core-lgpl.patched.pom -e 's/javax.xml.stream/stax/'
install/libwoodstox-java::
mh_install -plibwoodstox-java
get-orig-source:
uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
|