Staging
v0.5.0
https://foss.heptapod.net/mercurial/hgview
Raw File
Tip revision: a1825f7e11a87e9df5ac4d59325e94a8c03cba66 authored by Philippe Pepiot on 15 May 2018, 10:05:41 UTC
[pkg] 1.10.2
Tip revision: a1825f7
rules
#!/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-2012 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ --buildsystem=python_distutils --with python2

clean: 
	dh clean
	rm -f build-stamp configure-stamp
	rm -rf build
	python setup.py clean
	rm -f hgviewlib/qt4/*_ui.py hgviewlib/qt4/hgqv_rc.py
	make -C doc clean
	find . -name "*.pyc" -delete
	rm -f changelog.gz

override_dh_python2:
	# avoid conflict with mercurial's own hgext3rd/__init__.py
	find debian -path '*/hgext3rd/__init__.py' -delete
	dh_python2

override_dh_install:
	dh_install --fail-missing

override_dh_compress:
	dh_compress -X.py -X.ini -X.xml -Xtest
back to top