File: rules

package info (click to toggle)
hg-git 0.8.12-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 980 kB
  • sloc: python: 6,298; sh: 102; makefile: 32
file content (21 lines) | stat: -rwxr-xr-x 731 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

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

MODULE_DIR = usr/lib/$(shell pyversions -d)/dist-packages/hgext/git/

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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make tests TESTFLAGS="--blacklist $(CURDIR)/debian/hg-git.test_blacklist"
endif

# python setup.py install installs it as hggit, whereas mercurial searches for
# it in hgext/git.  Copy it manually.  As mercurial is the only module that
# should be importing this, the lack of egg-info shouldn't cause any problems
override_dh_auto_install:
	mkdir -p debian/mercurial-git/$(MODULE_DIR)
	cp -r hggit/*.py hggit/help debian/mercurial-git/$(MODULE_DIR)