Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=fltk
4 %:
5 dh $@ --with python3 --buildsystem=pybuild
6
7 override_dh_auto_install:
8 dh_auto_install
9
10 ifneq (,$(filter python3-fltk-doc,$(shell dh_listpackages)))
11 # I'm building the docs, so presumably we're not cross-building, and I
12 # can run pydoc3 on the just-built binaries. This is declared in the
13 # Build-Profiles field in debian/control
14 #
15 # Pick the first requested python version: I could have more than one if
16 # multiple Python versions are currently installed. I don't care which I
17 # use, but I must pick one
18 #
19 # I also remove links to absolute build-time paths
20 set -e; \
21 V=`py3versions -r | awk '{sub("python","",$$1); print $$1; exit}'`; \
22 Din=python3-fltk/usr/lib/python$$V/dist-packages/fltk; \
23 Dout=python3-fltk-doc/usr/share/doc/python3-fltk; \
24 mkdir -p debian/$$Dout; \
25 ( cd debian/$$Din && \
26 pydoc$$V -w ./ && \
27 mv fltk.html _fltk.html \
28 ../../../../../../$$Dout; ); \
29 perl -p -i -e 's{(<a href="file:).*?(/usr/.*?">).*?(/usr/)}{$$1$$2$$3}' \
30 debian/$$Dout/fltk.html \
31 debian/$$Dout/_fltk.html
32 endif
33
34
35
36
37
38 # There aren't any tests defined in this package, and the autodetection in
39 # pybuild fails with errors
40 override_dh_auto_test:
41 true