File: rules

package info (click to toggle)
artemis 17.0.1+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 112,044 kB
  • sloc: java: 451,938; sh: 3,370; xml: 2,292; makefile: 182; perl: 83; sql: 47
file content (59 lines) | stat: -rwxr-xr-x 1,769 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/make -f

#DH_VERBOSE = 1


DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

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

CUPBOARD = biojava				\
           j2ssh-core				\
           ibatis				\
           log4j-1.2				\
           postgresql-jdbc3			\
           picard				\
           htsjdk				\
           commons-net				\
           commons-lang3			\
           batik-all				\
           batik-awt-util			\
           batik-dom				\
           batik-ext				\
           batik-svggen				\
           batik-util				\
           batik-xml

# hack to be able to use a space as an argument to the subst function
space=
space+=

CLASSPATH := $(foreach jar, $(CUPBOARD), /usr/share/java/$(jar).jar)
CLASSPATH += /usr/share/EMBOSS/jemboss/lib/jemboss.jar \
             $(CURDIR)
export CLASSPATH := $(subst $(space),:,$(strip $(CLASSPATH)))

%:
	dh $@ --with javahelper

override_dh_auto_build:
	dh_auto_build -- jar
	sed 's|@CLASSPATH@|$(subst :,$(space),$(subst $(CURDIR),/usr/share/java/artemis.jar,$(CLASSPATH)))|g' debian/artemis.manifest.in > \
		debian/artemis.manifest
	convert images/helix.gif -resize 96x96\! images/helix.png

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	ln -s /usr/share/javascript/jquery/jquery.js test/coverage-report/evosuite-auto-tests/files/jquery.js
	ln -s /usr/share/javascript/jquery/jquery.js test/coverage-report/evosuite-auto-tests/html/files/jquery.js
	mkdir lib
	cd test && ant -f build-test.xml run-manual-tests-headless -DEMBOSS_ROOT=/usr # || true
	rm -rf lib
	rm test/coverage-report/evosuite-auto-tests/files/jquery.js test/coverage-report/evosuite-auto-tests/html/files/jquery.js
endif

override_dh_auto_clean:
	dh_auto_clean
	$(RM) debian/artemis.manifest
	$(RM) images/helix.png