#!/usr/bin/make -f
%:
	dh $@ --buildsystem=phppear --with phppear

PACKAGE = php-symfony-console
COMPONENT = Console

override_dh_installdeb:
	rm -r $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/Symfony
	rm -r $(CURDIR)/debian/$(PACKAGE)/usr/share/php/Symfony/Component/$(COMPONENT)/Tests
	rm    $(CURDIR)/debian/$(PACKAGE)/usr/share/php/Symfony/Component/$(COMPONENT)/phpunit.xml.dist
	dh_installdeb -O--buildsystem=phppear

override_dh_installchangelogs:
	dh_installchangelogs $(COMPONENT)-*/Symfony/Component/$(COMPONENT)/CHANGELOG.md

get-orig-source:
	uscan --verbose --force --rename

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=phppear
	# Remove references to compiled Windows binary
	sed -i 's@^.*Component/Console/Resources/bin/hiddeninput\.exe.*$$@@' Console-*/package.xml
