debian swirl logo

Back to the packages list libaxiom-java

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

SRCARCHIVE           := http://archive.apache.org/dist/ws/commons/axiom/
SRCDIRECTORY         := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 'y/\./_/')
JAVA_HOME            := /usr/lib/jvm/default-java
DEB_ANT_CHECK_TARGET := test
DEB_ANT_BUILDFILE    := ./debian/build.xml
DEB_ANT_ARGS         := -DartifactVersion=$(DEB_UPSTREAM_VERSION)
DEB_JARS             := commons-logging-api jaxen log4j-1.2 xercesImpl \
                        gnumail inetlib ant-junit junit

binary-post-install/libaxiom-java::
		for jar in api dom impl; do \
			dh_install -plibaxiom-java target/axiom-$$jar-$(DEB_UPSTREAM_VERSION).jar usr/share/java; \
			dh_link -plibaxiom-java usr/share/java/axiom-$$jar-$(DEB_UPSTREAM_VERSION).jar usr/share/java/axiom-$$jar.jar; \
		done

get-orig-source:
		mkdir -p orig_tmp
		cd orig_tmp && \
			wget $(SRCARCHIVE)/$(SRCDIRECTORY)/axiom-$(DEB_UPSTREAM_VERSION)-src.zip && \
			unzip -n axiom-$(DEB_UPSTREAM_VERSION)-src.zip && \
			tar czf ../../libaxiom-java_$(DEB_UPSTREAM_VERSION).orig.tar.gz axiom-$(DEB_UPSTREAM_VERSION)
		rm -rf orig_tmp

Builds:

libaxiom-java
apache axiom java library (axis object model)