debian swirl logo

Back to the packages list liblayout

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

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

JAVA_HOME := /usr/lib/jvm/java-gcj
ANT_HOME := /usr/share/ant

DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar jcommon itext jakarta-poi libxml libfonts libloader sac librepository libbase commons-logging flute
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_BUILD_TARGET := jar javadoc

DEB_UPSTREAM_VERSION := 0.2.10

clean::
		-rm -rf build
		-rm -rf javadoc
		-rm -f liblayout*-$(DEB_UPSTREAM_VERSION).jar
	# don't use them, go sure
		-rm -f lib/* lib/optional/*
		mkdir -p lib

install/liblayout-java::
		install -m 644 build/lib/liblayout.jar debian/liblayout-java/usr/share/java/liblayout-$(DEB_UPSTREAM_VERSION).jar
		ln -s liblayout-$(DEB_UPSTREAM_VERSION).jar debian/liblayout-java/usr/share/java/liblayout.jar
	jh_classpath -pliblayout-java --classpath= "/usr/share/java/jcommon.jar /usr/share/java/itext.jar /usr/share/java/poi.jar /usr/share/java/flute.jar /usr/share/java/libfonts.jar /usr/share/java/libloader.jar /usr/share/java/libxml.jar /usr/share/java/sac.jar /usr/share/java/librepository.jar" debian/liblayout-java/usr/share/java/liblayout-$(DEB_UPSTREAM_VERSION).jar
		jh_depends

install/liblayout-java-doc::
		dh_install -pliblayout-java-doc 'build/api/*' usr/share/doc/liblayout-java/api

Builds:

liblayout-java-doc
java layouting framework -- documentation
liblayout-java
java layouting framework