third_party.pylibs.pylint.src/debian/rules

76 lines
1.8 KiB
Plaintext
Raw Normal View History

2006-04-26 10:48:09 +00:00
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
#
# adapted by Logilab for automatic generation by debianize
# (part of the devtools project, http://www.logilab.org/projects/devtools)
#
# Copyright (c) 2003-2005 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
2009-02-03 16:36:09 +00:00
2006-04-26 10:48:09 +00:00
build: build-stamp
2009-02-03 16:36:09 +00:00
build-stamp:
2006-04-26 10:48:09 +00:00
dh_testdir
python setup.py -q build
touch build-stamp
2009-02-03 16:36:09 +00:00
clean:
2006-04-26 10:48:09 +00:00
dh_testdir
dh_testroot
2009-02-03 16:36:09 +00:00
python setup.py clean
find . -name "*.pyc" -delete
dh_clean build-stamp build
2006-04-26 10:48:09 +00:00
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
2009-02-03 16:36:09 +00:00
2006-06-15 08:44:22 +00:00
python setup.py -q install --no-compile --prefix=debian/pylint/usr/
rm -rf debian/pylint/usr/lib/python*/site-packages/pylint/test
2009-02-03 16:36:09 +00:00
# fixes shebangs
for exec in pylint pylint-gui symilar ; do \
if head -1 debian/pylint/usr/bin/$$exec | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \
sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/$$exec; \
fi ; \
chmod a+x debian/pylint/usr/bin/$$exec; \
done
2008-03-27 11:16:00 +00:00
install -m 644 elisp/pylint.el debian/pylint/usr/share/emacs/site-lisp/pylint/
2006-04-26 10:48:09 +00:00
# install tests
#(cd test && find . -type f -not \( -path '*/CVS/*' -or -name '*.pyc' \) -exec install -D --mode=644 {} ../debian/pylint/usr/share/doc/pylint/test/{} \;)
2006-04-26 10:48:09 +00:00
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_install -i
2006-06-15 08:44:22 +00:00
dh_pycentral -i
2009-02-03 16:36:09 +00:00
dh_installchangelogs -i ChangeLog
2006-04-26 10:48:09 +00:00
dh_installexamples -i
2009-02-03 16:36:09 +00:00
dh_installdocs -i
2006-04-26 10:48:09 +00:00
dh_installman -i
2008-03-27 11:16:00 +00:00
dh_installemacsen
2006-04-26 10:48:09 +00:00
dh_link -i
dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
2006-06-15 08:44:22 +00:00
binary-arch:
2006-04-26 10:48:09 +00:00
binary: binary-indep
2006-06-15 08:44:22 +00:00
.PHONY: build clean binary binary-indep binary-arch