File: rules

package info (click to toggle)
liblayout 0.2.10-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,344 kB
  • sloc: java: 51,125; xml: 138; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 1,328 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# debian/rules file for libformat-java

export JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/jcommon.jar:/usr/share/java/itext.jar:/usr/share/java/jakarta-poi.jar:/usr/share/java/libxml.jar:/usr/share/java/libfonts.jar:/usr/share/java/libloader.jar:/usr/share/java/sac.jar:/usr/share/java/librepository.jar:/usr/share/java/libbase.jar:/usr/share/java/commons-logging.jar:/usr/share/java/flute.jar

DEB_UPSTREAM_VERSION := 0.2.10

%:
	dh $@ --with javahelper

override_dh_auto_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

override_dh_auto_install:
	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