File: rules

package info (click to toggle)
vagrant 2.3.4%2Bdfsg-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,492 kB
  • sloc: ruby: 110,867; sh: 465; makefile: 84; lisp: 1
file content (23 lines) | stat: -rwxr-xr-x 774 bytes parent folder | download
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/share/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)'