debian swirl logo

Back to the packages list asm3

#!/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             := gnujaxp ant ant-junit junit xalan2 $(JAVA_HOME)/lib/tools.jar
DEB_ANT_BUILD_TARGET := dist
DEB_ANT_BUILDFILE    := build.xml
DEB_ANT_ARGS         := -propertyfile debian/ant.properties -Dproduct.version=$(VERSION)

get-orig-source:
		uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename

binary-post-install/lib$(PACKAGE)-java:: 
		mkdir -p target/poms/
		set -eu; cd archive; for POM in *.pom; do sed "s,@product.artifact@,$(VERSION)," $$POM > ../target/poms/$$POM; done
		mh_installpoms -plib$(PACKAGE)-java -e$(VERSION)
	mh_installjar -plib$(PACKAGE)-java -l --usj-name= asm3 -e$(VERSION) target/poms/asm.pom output/dist/lib/asm-$(VERSION).jar
	mh_installjar -plib$(PACKAGE)-java -l --usj-name= asm3-analysis -e$(VERSION) target/poms/asm-analysis.pom output/dist/lib/asm-analysis-$(VERSION).jar
	mh_installjar -plib$(PACKAGE)-java -l --usj-name= asm3-commons -e$(VERSION) target/poms/asm-commons.pom output/dist/lib/asm-commons-$(VERSION).jar
	mh_installjar -plib$(PACKAGE)-java -l --usj-name= asm3-tree -e$(VERSION) target/poms/asm-tree.pom output/dist/lib/asm-tree-$(VERSION).jar
	mh_installjar -plib$(PACKAGE)-java -l --usj-name= asm3-util -e$(VERSION) target/poms/asm-util.pom output/dist/lib/asm-util-$(VERSION).jar
	mh_installjar -plib$(PACKAGE)-java -l --usj-name= asm3-xml -e$(VERSION) target/poms/asm-xml.pom output/dist/lib/asm-xml-$(VERSION).jar
	mh_installjar -plib$(PACKAGE)-java -l --usj-name= asm3-debug-all -e$(VERSION) target/poms/asm-debug-all.pom output/dist/lib/all/asm-debug-all-$(VERSION).jar
	# add osgi headers to asm3-all
		jar umf debian/osgi.MF output/dist/lib/all/asm-all-$(VERSION).jar
	mh_installjar -plib$(PACKAGE)-java -l --usj-name= asm3-all -e$(VERSION) target/poms/asm-all.pom output/dist/lib/all/asm-all-$(VERSION).jar

binary-post-install/lib$(PACKAGE)-java-doc::
		dh_install -plib$(PACKAGE)-java-doc output/dist/doc/javadoc/user/* usr/share/doc/libasm3-java-doc/api
		dh_install -plib$(PACKAGE)-java-doc output/dist/examples usr/share/doc/libasm3-java-doc

clean::
		mh_clean
		rm -Rf target

Builds:

libasm3-java-doc
documentation for asm, the java(tm) bytecode manipulation framework
libasm3-java
java bytecode manipulation framework