File: rules

package info (click to toggle)
libpdfbox-java 1:1.8.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 17,924 kB
  • sloc: java: 119,333; xml: 3,692; jsp: 28; makefile: 20
file content (31 lines) | stat: -rwxr-xr-x 1,425 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
#!/usr/bin/make -f

htmldoc-common_source := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W htmldoc-common)
lcdf-typetools_source := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W lcdf-typetools)
poppler-data_source   := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W poppler-data)

%:
	dh $@ --buildsystem=maven --with javahelper

override_dh_auto_configure:
	# replace what we delete in repacking. never used ...
	mkdir -p pdfbox/src/main/resources/org/apache/pdfbox/resources/cmap/
	find /usr/share/poppler/cMap -type f -print0 | xargs -r0 cp -n -t pdfbox/src/main/resources/org/apache/pdfbox/resources/cmap/
	dh_auto_configure

override_dh_auto_build:
	# work around downloading adobe file
	mkdir -p pdfbox/target/classes/org/apache/pdfbox/resources/cmap
	cp pdfbox/src/main/resources/org/apache/pdfbox/resources/cmap/* pdfbox/target/classes/org/apache/pdfbox/resources/cmap/

	mkdir -p pdfbox/target/classes/org/apache/pdfbox/resources/afm
	cp /usr/share/htmldoc/fonts/*.afm pdfbox/target/classes/org/apache/pdfbox/resources/afm/
	cp /usr/share/aglfn/glyphlist.txt pdfbox/target/classes/org/apache/pdfbox/resources

	dh_auto_build

override_dh_installchangelogs:
	dh_installchangelogs $(CURDIR)/RELEASE-NOTES.txt

override_dh_gencontrol:
	dh_gencontrol -- "-Vmisc:Built-Using=$(htmldoc-common_source)$(lcdf-typetools_source)$(poppler-data_source)"