File: rules

package info (click to toggle)
vagrant 2.3.7%2Bgit20230731.5fc64cde%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,616 kB
  • sloc: ruby: 111,820; sh: 462; makefile: 123; ansic: 34; lisp: 1
file content (23 lines) | stat: -rwxr-xr-x 774 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
#!/usr/bin/make -f

export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install
export DH_RUBY_GEM_INSTALL_INCLUDE = version.txt
export DH_RUBY_GEM_INSTALL_EXCLUDE = contrib/* scripts/*

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

override_dh_auto_build:
	dh_auto_build
	pod2man -c "" -r "" debian/dh_vagrant_plugin > debian/dh_vagrant_plugin.1

override_dh_auto_install: virtualbox_support
	dh_auto_install
	find debian/vagrant/usr/lib/*/rubygems-integration/ -name README.md -delete

unsupported_virtualbox = $(shell ./debian/get-unsupported-virtualbox)

virtualbox_support:
	@echo 'vagrant:UnsupportedVirtualBox=$(unsupported_virtualbox)' >> debian/vagrant.substvars
	@echo 'Unsupported VirtualBox: >= $(unsupported_virtualbox)'