debian swirl logo

Back to the packages list cglib

#!/usr/bin/make -f

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

# the upstream version without the +dfsg suffix:
VERSION  := `expr match $(DEB_UPSTREAM_VERSION) '\(.*\)+dfsg'`

POM_VERSION          := 2.2
MAVEN_REPO           := http://repo1.maven.org/maven2/

JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS  := asm3-attrs asm3-commons asm3-util junit asm3 jarjar
DEB_ANT_BUILD_TARGET := jar javadoc
DEB_ANT_CHECK_TARGET := test
DEB_ANT_ARGS         += -Dcomponent.version=$(VERSION)
JAR_DIR   := /usr/share/java

install/libcglib-java::
		mh_installpom -plibcglib-java -e$(VERSION) debian/pom.xml
		mh_installpom -plibcglib-java -e$(VERSION) debian/pom-nodep.xml
		mh_installjar -plibcglib-java -l -i$(VERSION) -e$(VERSION) debian/pom.xml \
			dist/cglib-$(VERSION).jar
		mh_installjar -plibcglib-java -l -i$(VERSION) -e$(VERSION) debian/pom-nodep.xml \
			dist/cglib-nodep-$(VERSION).jar

clean::
		-rm -rf build debug docs
		mh_clean

get-orig-source:
		uscan --upstream-version 0 --rename

get-orig-pom:
		wget -U 'Debian' -O debian/pom.xml $(MAVEN_REPO)/cglib/cglib/$(POM_VERSION)/cglib-$(POM_VERSION).pom
		perl -p -i -e 's/$(POM_VERSION)/'$(VERSION)'/' debian/pom.xml

Builds:

libcglib-java
code generation library for java
libcglib-java-doc
code generation library for java - documentation