File: rules

package info (click to toggle)
php-oscarotero-gettext 4.8.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,464 kB
  • sloc: php: 5,256; xml: 20; javascript: 18; makefile: 14
file content (22 lines) | stat: -rwxr-xr-x 521 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	# Workaround to ensure the local class takes precedence during tests.
	ln --symbolic src Gettext
	# Build classloader for tests.
	mkdir --parents vendor
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.test.php.tpl \
		src

override_dh_auto_test:
	phpunit --do-not-cache-result

override_dh_fixperms:
	chmod -x debian/php-oscarotero-gettext/usr/share/php/Gettext/translator_functions.php
	dh_fixperms