File: rules

package info (click to toggle)
ruby-psych 5.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 856 kB
  • sloc: ruby: 8,448; ansic: 894; java: 762; makefile: 14; sh: 4
file content (26 lines) | stat: -rwxr-xr-x 944 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
24
25
26
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

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

export CLASSPATH=/usr/share/jruby/lib/jruby.jar:/usr/share/java/jruby.jar:/usr/share/java/bytelist.jar:/usr/share/java/jcodings.jar:/usr/share/java/snakeyaml.jar:/usr/share/jruby/lib/snakeyaml.jar

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

override_jh_classpath:
	jh_classpath --indep --verbose

override_jh_installlibs:
	jh_installlibs --upstream-version="$$(echo $(DEB_VERSION_UPSTREAM) | sed 's/\(~\)\(pre\)\([0-9]\)/.\2\3/')"

override_dh_auto_test-indep:
	# ignore failures with jruby, unfortunately upstream is failing in
	# similar way and this is expected.
	# (e.g. https://travis-ci.org/ruby/psych/jobs/208654321)
	-RUBYLIB=$$RUBYLIB:$$PWD/lib jruby -S rake test

override_jh_build:
	jh_build --javacopts='-source 8 -target 8 -encoding UTF-8' --javadoc-opts='-source 8 -encoding UTF-8'