File: rules

package info (click to toggle)
php-horde-text-filter 2.3.5-3%2Bdeb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 804 kB
  • sloc: php: 2,404; xml: 997; makefile: 19; sh: 3
file content (24 lines) | stat: -rwxr-xr-x 869 bytes parent folder | download | duplicates (4)
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

check_jsmin:
	@if [ -e Horde_Text_Filter-*/lib/Horde/Text/Filter/JavascriptMinify/JsMin.php ]; then \
	      echo " *****************************************"; \
	      echo " **                                     **"; \
	      echo " **  tar contains non-free JsMin!       **"; \
	      echo " **                                     **"; \
	      echo " *****************************************"; \
	      echo "This library should be stripped."; \
	      echo "(See bugs.debian.org/692629)"; \
	      echo ""; \
	      exit 1; \
	fi

override_dh_prep: check_jsmin
	dh_prep -O--buildsystem=phppear

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=phppear
	# Remove references of JsMin
	sed -i 's@^.*Horde/Text/Filter/JavascriptMinify/JsMin\.php.*$$@@' Horde_Text_Filter-*/package.xml