5 |
# Uncomment this to turn on verbose mode. |
# Uncomment this to turn on verbose mode. |
6 |
#export DH_VERBOSE=1 |
#export DH_VERBOSE=1 |
7 |
|
|
8 |
|
include /usr/share/cdbs/1/rules/simple-patchsys.mk |
9 |
|
|
10 |
# This is the debhelper compatibility version to use. |
# This is the debhelper compatibility version to use. |
11 |
export DH_COMPAT=4 |
export DH_COMPAT=4 |
12 |
|
|
22 |
build-stamp: |
build-stamp: |
23 |
dh_testdir |
dh_testdir |
24 |
|
|
25 |
cp setup.py setup.py.orig |
python setup.py build_ext --use-wx-python-swig-hack build |
26 |
patch -p0 < debian/setup.py.patch |
# Multi-language support: |
27 |
python setup.py build |
cd po; make mo |
|
mv setup.py.orig setup.py |
|
|
|
|
28 |
touch build-stamp |
touch build-stamp |
29 |
|
|
30 |
clean: |
clean:: |
31 |
dh_testdir |
dh_testdir |
32 |
dh_testroot |
dh_testroot |
|
cp setup.py setup.py.orig |
|
|
patch -p0 < debian/setup.py.patch |
|
33 |
python setup.py clean |
python setup.py clean |
|
mv setup.py.orig setup.py |
|
34 |
rm -f build-stamp |
rm -f build-stamp |
35 |
rm -rf build |
rm -rf build |
36 |
|
|
42 |
dh_clean |
dh_clean |
43 |
dh_installdirs |
dh_installdirs |
44 |
|
|
|
cp setup.py setup.py.orig |
|
|
patch -p0 < debian/setup.py.patch |
|
45 |
python setup.py install --prefix=/usr --no-compile --root=`pwd`/debian/thuban |
python setup.py install --prefix=/usr --no-compile --root=`pwd`/debian/thuban |
|
mv setup.py.orig setup.py |
|
46 |
ln -fs ../lib/thuban/thuban.py `pwd`/debian/thuban/usr/bin/thuban |
ln -fs ../lib/thuban/thuban.py `pwd`/debian/thuban/usr/bin/thuban |
47 |
cd debian/thuban; patch -p1 < ../bitmappath.patch; cd ../../ |
cd debian/thuban; patch -p1 < ../bitmappath.patch; cd ../../ |
48 |
|
|