File: rules

package info (click to toggle)
ruby-spamcheck 1.10.1-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 668 kB
  • sloc: python: 1,261; ruby: 484; makefile: 54; sh: 13
file content (23 lines) | stat: -rwxr-xr-x 601 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 SPAMCHECK_PROTO_PATH = api/v1
export RUBY_PROTO_PATH = ruby/spamcheck



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

override_dh_auto_build:
	rm Gemfile.lock
	RAILS_ENV=development BUNDLE_GEMFILE=Gemfile \
	bundle install --local
	RAILS_ENV=development BUNDLE_GEMFILE=Gemfile \
	bundle exec grpc_tools_ruby_protoc \
		--proto_path=${SPAMCHECK_PROTO_PATH} \
		--ruby_out=${RUBY_PROTO_PATH} \
		--grpc_out=${RUBY_PROTO_PATH} \
		${SPAMCHECK_PROTO_PATH}/*.proto
	dh_auto_build -O--buildsystem=ruby