debian swirl logo

Back to the packages list libregexp-java

#!/usr/bin/make -f
# debian/rules file for libregexp-java (uses cdbs)

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_ANT_ARGS         := -Dant.build.javac.source=1.4
DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar 
DEB_ANT_BUILD_TARGET := jar javadocs

clean::
		-rm -Rf docs
		-rm -rf debian/tmp

install/$(PACKAGE)::
		mh_installpoms -p$(PACKAGE)
	mh_installjar -p$(PACKAGE) -l --usj-name= regexp debian/pom.xml build/jakarta-regexp-$(VERSION).jar

get-orig-pom: MVN_VERSION= 1.4
get-orig-pom:
		wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/jakarta-regexp/jakarta-regexp/$(MVN_VERSION)/jakarta-regexp-$(MVN_VERSION).pom
		sed -i -e 's/1.4/$(VERSION)/' debian/pom.xml

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

Builds:

libregexp-java-doc
documentation for the regular expression library
libregexp-java
regular expression library for java