File: rules

package info (click to toggle)
ruby-bio 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,480 kB
  • ctags: 9,428
  • sloc: ruby: 74,117; xml: 3,383; makefile: 17; perl: 13; sh: 1
file content (36 lines) | stat: -rwxr-xr-x 1,083 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
26
27
28
29
30
31
32
33
34
35
36
#!/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=ruby2.1 ruby2.2
#
# If you need to specify the .gemspec (eg there is more than one)
#export DH_RUBY_GEMSPEC=gem.gemspec
#
# Uncomment to check dependencies during build:
# export GEM2DEB_TEST_RUNNER = --check-dependencies

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

override_dh_auto_build:
	dh_auto_build
	docbook-to-man debian/br_biofetch.rb.sgml > br_biofetch.1
	docbook-to-man debian/br_bioflat.rb.sgml > br_bioflat.1
	docbook-to-man debian/br_biogetseq.rb.sgml > br_biogetseq.1
	docbook-to-man debian/br_pmfetch.rb.sgml > br_pmfetch.1

override_dh_auto_clean:
	dh_auto_clean
	rm -f br_biofetch.1 br_bioflat.1 br_biogetseq.1 br_pmfetch.1

override_dh_auto_install:
	dh_auto_install
	for FILE in `ls debian/ruby-bio/usr/bin/*rb`; do \
		BINNAME=$$(echo $$FILE | sed 's/\.rb$$//'); \
		mv $$FILE $$BINNAME; \
	done