File: rules

package info (click to toggle)
ruby-sqlite3 1.3.9-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 468 kB
  • ctags: 769
  • sloc: ruby: 3,824; ansic: 1,198; makefile: 10
file content (25 lines) | stat: -rwxr-xr-x 786 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
#export DH_VERBOSE=1
#
# Uncomment to ignore all test failures (but the tests will run anyway)
#export DH_RUBY_IGNORE_TESTS=all
#
# Uncomment to ignore some test failures (but the tests will run anyway).
# Valid values:
#export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems

# TODO this should not be needed if the upstream tarball was obtained through
# gemwatch (it would already have a metadata.yml file).
UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1)
export DH_RUBY_GEMSPEC=debian/sqlite3-$(UPSTREAM_VERSION).gemspec

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

override_dh_installdocs:
	cd faq && ruby faq.rb > faq.html
	dh_installdocs

override_dh_clean:
	rm -f faq/faq.html
	dh_clean