File: rules

package info (click to toggle)
bundler 2.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,536 kB
  • sloc: ruby: 21,851; sh: 73; makefile: 18
file content (26 lines) | stat: -rwxr-xr-x 674 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
#!/usr/bin/make -f

export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install

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

override_dh_auto_clean:
	rm -rf lib/bundler/vendor/molinillo
	rm -rf lib/bundler/vendor/thor
	rm -rf spec
	dh_auto_clean

override_dh_installchangelogs:
	dh_installchangelogs -i CHANGELOG.md

override_dh_installman:
	# rename manpages to be acceptable to dh_installman
	ruby -rfileutils -e " \
	Dir.glob('lib/bundler/man/*').grep(/^((?!\.).)*$$/).each do |file| \
		FileUtils.cp(file, file + '.1') \
	end"
	dh_installman
	# bundler and bundle are the same command
	dh_link usr/share/man/man1/bundle.1 usr/share/man/man1/bundler.1