File: rules

package info (click to toggle)
ruby-github-linguist 7.27.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,204 kB
  • sloc: ruby: 1,872; lex: 173; ansic: 35; makefile: 9
file content (14 lines) | stat: -rwxr-xr-x 581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install
export VERSION = $(shell cat lib/linguist/VERSION)
export RUBY_API_VERSION = $(shell ruby -e 'puts RbConfig::CONFIG["RUBY_API_VERSION"] + ".0"')

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

override_dh_link:
	dh_link
	# This helps in configuring /etc/gitaly/config.toml with a predictable path
	dh_link usr/lib/${DEB_TARGET_MULTIARCH}/rubygems-integration/${RUBY_API_VERSION}/gems/github-linguist-${VERSION}/lib/linguist/languages.json usr/share/ruby-github-linguist/languages.json