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 31
|
#!/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_HOME)/lib/ant-launcher.jar junit
DEB_ANT_BUILD_TARGET := xpp3 junit apidoc
clean::
-rm -rf doc/api
-rm -rf debian/tmp
binary-post-install/$(PACKAGE)::
mh_installpoms -p$(PACKAGE)
mh_installjar -p$(PACKAGE) -l debian/xpp3.pom build/xpp3-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l --usj-name=xpp3-min debian/xpp3_min.pom build/xpp3_min-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l --usj-name=xpp3-xpath debian/xpp3_xpath.pom build/xpp3_xpath-$(VERSION).jar
get-orig-source:
-uscan --download-version $(VERSION) --force-download --rename
get-orig-pom: XPP3_XPATH_VERSION=1.1.3.4.O
get-orig-pom:
wget -O debian/xpp3.pom http://repository.sonatype.org/service/local/repositories/central-proxy/content/xpp3/xpp3/$(VERSION)/xpp3-$(VERSION).pom
wget -O debian/xpp3_min.pom http://repository.sonatype.org/service/local/repositories/central-proxy/content/xpp3/xpp3_min/$(VERSION)/xpp3_min-$(VERSION).pom
wget -O debian/xpp3_xpath.pom http://repository.sonatype.org/service/local/repositories/central-proxy/content/xpp3/xpp3_xpath/$(XPP3_XPATH_VERSION)/xpp3_xpath-$(XPP3_XPATH_VERSION).pom
perl -p -i -e 's/<version>$(XPP3_XPATH_VERSION)/<version>$(VERSION)/' debian/xpp3_xpath.pom
|