debian swirl logo

Back to the packages list stringtemplate

#!/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             := antlr ant-antlr junit
DEB_ANT_BUILD_TARGET := jar
DEB_ANT_CLEAN_TARGET := clean-all

build:
		fmt README.txt > README

binary-post-install/lib$(PACKAGE)-java::
		mh_installpoms -plib$(PACKAGE)-java
		mh_installjar -plib$(PACKAGE)-java -l pom.xml build/$(PACKAGE).jar

clean::
		rm -rf build README

get-orig-pom:
		wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/org/antlr/stringtemplate/$(DEB_UPSTREAM_VERSION)/stringtemplate-$(DEB_UPSTREAM_VERSION).pom

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

Builds:

libstringtemplate-java
stringtemplate templating engine for java