File: rules

package info (click to toggle)
php-crypt-gpg 1.6.4-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,184 kB
  • sloc: php: 9,171; xml: 201; makefile: 9
file content (19 lines) | stat: -rwxr-xr-x 777 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /usr/bin/make -f
%:
	dh $@ --buildsystem=phppear --with phppear

override_dh_auto_test:
	# without --process-isolation there is a weird race condition
	# causing the tests to fails GnuPG when can't use /run/user/$UID as
	# socket directory (for instance because it's not there) and uses
	# its homedir as fallback -- removing the GNUPGHOME between each
	# test seems to cause problems when it contains the agent socket
	phpunit --include-path Crypt_GPG-*/ Crypt_GPG-*/tests \
		--process-isolation --exclude-group write

override_dh_install:
	dh_install

	# not needed with gpg >=2.1.13 (Crypt_GPG uses `--pinentry-mode loopback` instead)
	rm $(CURDIR)/debian/php-crypt-gpg/usr/bin/crypt-gpg-pinentry
	rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/php-crypt-gpg/usr/bin