File: rules

package info (click to toggle)
php-codecoverage 1.2.13%2Bdfsg2-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 384 kB
  • sloc: php: 3,038; xml: 105; makefile: 27
file content (38 lines) | stat: -rwxr-xr-x 1,133 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 $@ --buildsystem=phppear --with phppear

package = php-codecoverage

check_dfsg:
	@if find 'highcharts.js' | grep -q '.'; then \
	      echo " ***********************************"; \
	      echo " **                               **"; \
	      echo " **  tar contains non-free files! **"; \
	      echo " **                               **"; \
	      echo " ***********************************"; \
	      find 'highcharts.js'; \
	      echo "Those files should be stripped."; \
	      echo ""; \
	      exit 1; \
	fi

override_dh_prep: check_dfsg
	dh_prep -O--buildsystem=phppear

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=phppear
	# Remove references of Highcharts
	sed -i '/highcharts\.js/d' */package.xml
override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=phppear
	# Remove references of Highcharts
	sed -i '/highcharts\.js/d' */package.xml
	# Remove references of Bootstrap
	sed -i '/bootstrap*/d' */package.xml
	sed -i '/glyphicons-*/d' */package.xml
	sed -i '/html5shiv\.js/d' */package.xml
	# Remove references of jQuery
	sed -i '/jquery\.min\.js/d' */package.xml