File: rules

package info (click to toggle)
libbase 1.1.6-3
  • links: PTS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 944 kB
  • sloc: java: 8,709; xml: 1,522; makefile: 18
file content (26 lines) | stat: -rwxr-xr-x 824 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
25
26
#!/usr/bin/make -f

export CLASSPATH=/usr/share/java/commons-logging.jar

%:
	dh $@ --with javahelper

override_dh_clean:
	dh_clean
	-rm -rf tempJar

override_dh_auto_build:
	dh_auto_build
	# Manually copying the contents of some non-class files into the jar
	mkdir tempJar/ && cd tempJar && \
	        jar xf ../dist/libbase-*.jar && \
	        cp -r ../source/org/pentaho/reporting/libraries/base/libbase.properties org/pentaho/reporting/libraries/base && \
	        jar cf $$(basename ../dist/libbase-*.jar) * && \
	        cp libbase-*.jar ../dist/

override_dh_link:
	dh_link
	# Creating a libbase.jar symlink to the installed jar.
	nameJar=$$(find debian/libbase-java/usr/share/java/ -name "*.jar") && \
	        echo $$nameJar && \
	        ln -s $$(basename $$nameJar) debian/libbase-java/usr/share/java/libbase.jar