debian swirl logo

Back to the packages list libxpp3-java

#!/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/$(XPP3_XPATH_VERSION)/$(VERSION)/' debian/xpp3_xpath.pom

Builds:

libxpp3-java
xml pull parser library for java