File: rules

package info (click to toggle)
php-phar-io-manifest 2.0.4-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: php: 2,228; xml: 291; makefile: 14
file content (18 lines) | stat: -rwxr-xr-x 526 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_build:
	phpabtpl composer.json > debian/autoload.php.tpl
	sed -i "s#'/usr/share/php/PharIo#__DIR__ . '/..#" debian/autoload.php.tpl
	phpab \
		--output $(CURDIR)/src/autoload.php \
		--template $(CURDIR)/debian/autoload.php.tpl \
		$(CURDIR)/src
	# Mimic install path
	mkdir --parents PharIo
	cp -r src PharIo/Manifest
	ln -s /usr/share/php/PharIo/Version PharIo

override_dh_auto_test:
	phpunit --bootstrap PharIo/Manifest/autoload.php --exclude-filter testCanHandleUnknownType