File: rules

package info (click to toggle)
guzzle 7.9.2-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,456 kB
  • sloc: php: 9,489; xml: 288; javascript: 183; makefile: 133; python: 28
file content (38 lines) | stat: -rwxr-xr-x 1,063 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
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f

%:
	dh ${@} --with phpcomposer

#override_dh_auto_build:
#	phpab --output src/autoload.php src

execute_before_dh_auto_build:
	# Build a template for phpab(1)
# (not needed if the package has no dependency)
	phpabtpl \
		--basedir src \
		composer.json > \
		debian/autoload.php.tpl
	phpab --output src/autoload.php --template debian/autoload.php.tpl src

execute_before_dh_auto_test:
	# does not work - empty file generated
	# Build classloader for tests
	# mkdir --parents vendor guzzlehttp
	# phpabtpl \
	#	--require guzzlehttp/guzzle \
	#	--require phpspec/prophecy-phpunit \
	#	# If packages from ''require-dev'' in ''composer.json''
	#	# are actually needed to run the testsuite
	#	--require-file tests \
	#	# If ''files'' from ''autoload-dev'' in ''composer.json''
	#	> debian/autoload.tests.php.tpl
	#phpab \
	#	--output vendor/autoload.php \
	#	--template debian/autoload.tests.php.tpl \
	#	tests
	# Workaround to ensure the local class takes precedence during tests.
	#ln -sr src guzzlehttp/guzzle

#override_dh_auto_test:
#	phpunit