~ubuntu-branches/ubuntu/utopic/php-codesniffer/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2012-05-31 16:37:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120531163724-u6aiaubu8ks5dh5z
Tags: 1.3.4-0.1
* Non-maintainer upload.
* New upstream release (Closes: #599617, #634825).
* Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the
upstream license changed).
* Switched package to pkg-php-tools and debhelper 8 sequencer.
* Now running unit tests at build time (so depends on phpunit (>= 3.6)).
* Section is now PHP.
* Added missing Build-Depends-Indep: php-pear.
* Added missing ${misc:Depends}.
* Added Vcs fields.
* Added homepage field.
* Reviewed short and long description.
* Added dependency on php-timer.
* Standards-Version: is now 3.9.3 (lots of changes, see above...).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
DEB_COMPRESS_EXCLUDE=package.xml
4
 
 
5
 
include /usr/share/cdbs/1/rules/debhelper.mk
6
 
include /usr/share/cdbs/1/class/pear.mk
7
 
 
8
 
install/php-codesniffer::
9
 
        install -D $(DEB_DESTDIR)/usr/bin/scripts/phpcs-svn-pre-commit $(DEB_DESTDIR)/usr/share/subversion/hook-scripts/phpcs
10
 
        rm -rf $(DEB_DESTDIR)/usr/bin/scripts
 
3
%:
 
4
        dh $@ --buildsystem=phppear --with phppear
 
5
 
 
6
override_dh_link:
 
7
        dh_link -O--buildsystem=phppear
 
8
        mv debian/php-codesniffer/usr/bin/scripts debian/php-codesniffer/usr/share/doc/php-codesniffer
 
9
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
 
10
        chmod +x ./debian/tests_run
 
11
        ./debian/tests_run
 
12
endif