File: rules

package info (click to toggle)
ruby-prawn 2.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,380 kB
  • sloc: ruby: 15,820; sh: 43; makefile: 20
file content (34 lines) | stat: -rwxr-xr-x 915 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f


include /usr/share/dpkg/pkg-info.mk

export GEM2DEB_TEST_RUNNER = --check-dependencies

BUILD_EPOCH = $(SOURCE_DATE_EPOCH)
export BUILD_EPOCH

%:
	dh $@ --buildsystem=ruby --with ruby


override_dh_auto_install:
	# copy specs' data to data dir in order to install them correctly to run the specs
	# install manually and temporarily data
	mkdir -p debian/ruby-prawn/usr/share/ruby-prawn
	cp -R data/* debian/ruby-prawn/usr/share/ruby-prawn
	dh_auto_install
	ruby -I "debian/ruby-prawn/usr/lib/ruby/vendor_ruby" debian/make-manual.rb
	# remove the copy of data in debian/ruby-prawn (will be reinstalled by dh_install)
	rm -rf debian/ruby-prawn/usr/share/ruby-prawn

override_dh_auto_clean:
	# remove the copy of spec/data in data/
	rm -rf data/spec
	rm -f manual.pdf
	rm -f Type\ 3.pdf Type\ 3\ with\ transparency.pdf
	dh_auto_clean

get-orig-source:
	chmod +x debian/repack.sh
	debian/repack.sh