File: rules

package info (click to toggle)
php-horde-test 2.6.3%2Bdebian0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 516 kB
  • sloc: xml: 2,271; php: 708; makefile: 18
file content (24 lines) | stat: -rwxr-xr-x 823 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

%:
	dh $@ --buildsystem=phppear --with phppear

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=phppear
	# Remove references to included libs
	sed -i -e '/bundle\/vendor/d' */package.xml

check_included_libs:
	@if [ -f "Horde_Test-"*"/vendor" ]; then \
	      echo " ********************************************************"; \
	      echo " **                                                    **"; \
	      echo " **  tar contains included libs (phpunit, ...)!        **"; \
	      echo " **                                                    **"; \
	      echo " ********************************************************"; \
	      echo "Those files should be stripped."; \
	      echo ""; \
	      exit 1; \
	fi

override_dh_prep: check_included_libs
	dh_prep -O--buildsystem=phppear