~ubuntu-branches/debian/experimental/pygame/experimental

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2013-02-21 00:23:03 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20130221002303-08xmo02oym2hxjee
Tags: 1.9.2~pre~r3189-1
* New upstream hg snapshot (rev 3189).
* Avoid potentially overriding a symlink in python3.2-dev. (Closes: #700997)
* Generate correct versioned dependency on python-numpy following ABI change
  using the dh_numpy and dh_numpy3 helpers. (Closes: #698169)
  - Add build-depends on python3-numpy.
* Fix a number of failing tests that rely on pygame being tested with OpenGL
  and a graphical display available, as well as audio/video devices.
* Remove deprecated DMUA flag in debian/control.
* Fix lintian tag vcs-field-not-canonical.
* Update Standards version from 3.9.3 to 3.9.4, no updates required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | \
9
9
                       sed -rne 's,^Version: ([^+]+).*,\1,p')
10
 
HG_SNAPSHOT_REV=3144
 
10
HG_SNAPSHOT_REV=3189
11
11
 
12
12
# We include all the documentation except:
13
13
# util (which is for building the docs from the source)
19
19
        dh $@ --with python2
20
20
 
21
21
override_dh_clean:
 
22
        rm -f sdlaudio.raw
22
23
        rm -f *.pyc Setup test/*.pyc test/test_utils/*.pyc
23
24
        rm -rf build __pycache__ test/__pycache__ test/test_utils/__pycache__
24
 
 
 
25
        
25
26
        dh_clean
26
27
 
27
28
override_dh_auto_install:
33
34
                python$$pyvers setup.py install --install-layout=deb \
34
35
                        --root $(CURDIR)/debian/python3-pygame; \
35
36
        done
 
37
        
 
38
        # Avoid potentially overriding symlink in python3.2-dev
 
39
        # see #700997 for more details
 
40
        for pyvers in $(shell py3versions -sv); do \
 
41
                mv $(CURDIR)/debian/python3-pygame/usr/include/python$$pyvers \
 
42
                $(CURDIR)/debian/python3-pygame/"$$(readlink -f /usr/include/python$$pyvers)"; \
 
43
        done
 
44
        
 
45
        # Generate correctly versioned numpy dependencies (#698169)
 
46
        dh_numpy
 
47
        dh_numpy3
 
48
 
 
49
override_dh_auto_test:
 
50
        # buildds don't provide graphical interfaces or audio/video devices
 
51
        # to test with, hence some tests won't work properly without:
 
52
        SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk \
 
53
        python run_tests.py --exclude opengl,display || true
36
54
 
37
55
override_dh_python2:
38
56
        dh_python2 -ppython-pygame
54
72
        done
55
73
        ln -sf /usr/share/fonts/truetype/freefont/FreeSansBold.ttf \
56
74
        $(CURDIR)/debian/python3-pygame/usr/lib/python3/dist-packages/pygame/freesansbold.ttf
57
 
 
58
 
        # Replace embedded javascript libraries with system copies
59
 
        ln -sf /usr/share/javascript/sphinxdoc/1.0/jquery.js \
60
 
        $(CURDIR)/debian/python-pygame/usr/share/pyshared/pygame/docs/_static/jquery.js
61
 
        ln -sf /usr/share/javascript/sphinxdoc/1.0/jquery.js \
62
 
        $(CURDIR)/debian/python-pygame/usr/share/doc/python-pygame/_static/jquery.js
63
 
        ln -sf /usr/share/javascript/sphinxdoc/1.0/jquery.js \
64
 
        $(CURDIR)/debian/python3-pygame/usr/lib/python3/dist-packages/pygame/docs/_static/jquery.js
65
 
        ln -sf /usr/share/javascript/sphinxdoc/1.0/underscore.js \
66
 
        $(CURDIR)/debian/python-pygame/usr/share/pyshared/pygame/docs/_static/underscore.js
67
 
        ln -sf /usr/share/javascript/sphinxdoc/1.0/underscore.js \
68
 
        $(CURDIR)/debian/python-pygame/usr/share/doc/python-pygame/_static/underscore.js
69
 
        ln -sf /usr/share/javascript/sphinxdoc/1.0/underscore.js \
70
 
        $(CURDIR)/debian/python3-pygame/usr/lib/python3/dist-packages/pygame/docs/_static/underscore.js
71
75
        
72
76
        dh_link -a
73
77