File: rules

package info (click to toggle)
libextutils-autoinstall-perl 0.64-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 200 kB
  • ctags: 113
  • sloc: perl: 1,726; makefile: 10; sh: 2
file content (26 lines) | stat: -rwxr-xr-x 827 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
24
25
26
#!/usr/bin/make -f

BUILDHOME = $(CURDIR)/debian/build

%:
	dh $@

override_dh_clean:
	dh_clean
	rm -rf $(BUILDHOME)

override_dh_auto_test:
	mkdir -p $(BUILDHOME)

	# workaround for #752930
	# 0) create ~/.cpan/CPAN/MyConfig.pm ourselves before EU::AutoInstall
	#    tries to do it and fails horribly in a loop in the install_help
	#    question
	# 1) "preseed" exactly this install_help question, otherwise the default
	#    'local::lib' is chosen and CPAN.pm goes out hunting
	# 2) "preseed" urllist as well, otherwise CPAN.pm from 5.18 asks for it
	#     and tries to download a mirror list. in 5.20 it contains
	#     www.cpan.org already.
	HOME=$(BUILDHOME) perl -MCPAN -e '$$CPAN::Config = {"install_help" => q[manual], "urllist" => [q[http://www.cpan.org/]]}; CPAN::Shell->mkmyconfig;'

	HOME=$(BUILDHOME) dh_auto_test