| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=graphite2 |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --builddirectory=build |
| 7 |
dh $@ --with python2,python3 --buildsystem=pybuild |
| 8 |
|
| 9 |
override_dh_strip: |
| 10 |
dh_strip --dbg-package=libgraphite2-3-dbg |
| 11 |
|
| 12 |
override_dh_auto_build: |
| 13 |
dh_auto_build |
| 14 |
echo "Building docs" |
| 15 |
dh_auto_build -- docs |
| 16 |
# echo "Building perl module" |
| 17 |
# cd perl && \ |
| 18 |
# perl Build.PL prefix=/usr && \ |
| 19 |
# ./Build |
| 20 |
|
| 21 |
override_dh_auto_install: |
| 22 |
dh_auto_install |
| 23 |
# rm -rf debian/tmp/usr/bin |
| 24 |
# cd perl && \ |
| 25 |
# ./Build install destdir=$(CURDIR)/debian/libtext-graphite2-perl |
| 26 |
# # hack |
| 27 |
# cd $(CURDIR)/debian/libtext-graphite2-perl/usr && \ |
| 28 |
# mkdir share && mv man share |
| 29 |
# cd $(CURDIR)/debian/libtext-graphite2-perl/usr/lib && \ |
| 30 |
# mv perl perl5 && cd perl5 && mv 5.*/* . && rm -rf 5.* |
| 31 |
# find debian/libtext-graphite2-perl -type f -name .packlist | xargs rm -f |
| 32 |
|
| 33 |
override_dh_auto_test: |
| 34 |
dh_auto_test |
| 35 |
#ifneq (nocheck,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) |
| 36 |
# cd perl && \ |
| 37 |
# LD_LIBRARY_PATH=$(CURDIR)/build/src ./Build test |
| 38 |
#endif |
| 39 |
|
| 40 |
override_dh_auto_clean: |
| 41 |
# if [ -e perl/Build ]; then cd perl && \ |
| 42 |
# ./Build clean; fi |
| 43 |
# rm -rf perl/Build perl/_build |
| 44 |
-find . -name "CTestCostData.txt" | xargs rm |
| 45 |
-find . -name "LastTest.log" | xargs rm |
| 46 |
dh_auto_clean |
| 47 |
|
| 48 |
override_dh_auto_configure: |
| 49 |
dh_auto_configure -- -DCMAKE_BUILD_TYPE:STRING=Release -DDISABLE_TRACING:bool=1 |
| 50 |
|
| 51 |
override_dh_gencontrol: |
| 52 |
dh_gencontrol -Nlibtext-graphite2-perl -O--builddirectory=build |
| 53 |
# dh_gencontrol -plibtext-graphite2-perl -- -v`cat perl/META.yml | grep version: | tail -n 1 | awk '{ print $$2 }'`-`dpkg-parsechangelog | grep urgency | awk '{ print $$2 }' | sed -e 's/(//' | sed -e 's/)//' | cut -d- -f2` |