debian swirl logo

Back to the packages list libjgrapht0.8-java

#!/usr/bin/make -f

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

JAVA_HOME := /usr/lib/jvm/default-java/

DEB_ANT_BUILD_TARGET := compile
DEB_ANT_INSTALL_TARGET := prepare.distribution
DEB_ANT_TEST_TARGET := test

DEB_JARS := /usr/share/java/jgraph.jar

SOVERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | cut -f 1,2 -d.)

ANT_ARGS := -Dproject.jar=debian/libjgrapht$(SOVERSION)-java/usr/share/java/jgrapht-$(DEB_UPSTREAM_VERSION).jar -Djavadoc.dir=debian/libjgrapht$(SOVERSION)-java-doc/usr/share/doc/libjgrapht$(SOVERSION)-java/apidoc

install/libjgrapht$(SOVERSION)-java::
		jh_classpath -c"$(DEB_JARS)" debian/libjgrapht$(SOVERSION)-java/usr/share/java/jgrapht-$(DEB_UPSTREAM_VERSION).jar

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

binary-post-install/$(DEB_SOURCE_PACKAGE)::
		mh_installpoms -p$(DEB_SOURCE_PACKAGE)
		mh_installjar -p$(DEB_SOURCE_PACKAGE) -l debian/pom.xml \
          --usj-version=0.8.3 \
          --no-usj-versionless \
		  debian/libjgrapht$(SOVERSION)-java/usr/share/java/jgrapht-$(DEB_UPSTREAM_VERSION).jar
		dh_link -plibjgrapht$(SOVERSION)-java /usr/share/java/jgrapht-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/jgrapht$(SOVERSION).jar

clean::
		mh_clean

Builds:

libjgrapht0.8-java-doc
javadoc-generated api for libjgrapht0.8-java
libjgrapht0.8-java
mathematical graph theory library for java