File: rules

package info (click to toggle)
libsoap-wsdl-perl 3.004-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,600 kB
  • sloc: perl: 8,433; xml: 1,769; java: 19; makefile: 15
file content (23 lines) | stat: -rwxr-xr-x 862 bytes parent folder | download | duplicates (4)
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

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	# strip .pl ending
	file-rename 's/\.pl//' $(TMP)/usr/bin/wsdl2perl.pl $(TMP)/usr/share/man/man1/wsdl2perl.pl.1p
	# just fragments
	$(RM) -v $(TMP)/usr/share/man/man3/SOAP::WSDL::Generator::Template::XSD::complexType.tt.3pm \
		$(TMP)/usr/share/man/man3/SOAP::WSDL::Generator::Template::XSD::complexType::POD::attributeSet.tt.3pm \
		$(TMP)/usr/share/man/man3/SOAP::WSDL::Generator::Template::XSD::element.tt.3pm

override_dh_installexamples:
	dh_installexamples
	# change all references to wsdl2perl.pl after everything is installed
	find $(TMP)/usr/share/perl5/SOAP/ $(TMP)/usr/share/man/ \
		$(TMP)/usr/share/doc/$(PACKAGE)/examples/ $(TMP)/usr/bin/ \
		-type f | xargs sed -i -e 's/wsdl2perl\.pl/wsdl2perl/g'