/[python-modules]/packages/python-django/trunk/debian/rules
ViewVC logotype

Contents of /packages/python-django/trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7816 - (show annotations) (download)
Sun Mar 8 06:07:30 2009 UTC (4 years, 2 months ago) by lamby
File size: 1215 byte(s)
Move to debhelper-based packaging for operational clarity (Closes: #517052)
1 #!/usr/bin/make -f
2
3 include /usr/share/quilt/quilt.make
4
5 PREFIX = debian/python-django
6 DJANGO_DIR = $(PREFIX)/usr/lib/`pyversions -d`/site-packages/django
7
8 %:
9 dh $@
10
11 build: $(QUILT_STAMPFN)
12 dh $@
13
14 clean: unpatch
15 rm -rf docs/_build/*
16 dh $@
17
18 override_dh_auto_build:
19 dh_auto_build
20 # Build HTML documentation, drop source files
21 make -C docs html
22 rm -rf docs/_build/html/_sources/
23
24 override_dh_install:
25 dh_install
26
27 # Use default shebang
28 perl -pi -e 's|^#!/usr/bin/env python.*|#!/usr/bin/python|' $(DJANGO_DIR)/conf/project_template/manage.py
29
30 # Move scripts to /usr/lib/python-django
31 mkdir -p $(PREFIX)/usr/lib/python-django
32 mv $(DJANGO_DIR)/bin $(PREFIX)/usr/lib/python-django
33
34 # Fix permissions
35 chmod 644 $(PREFIX)/etc/bash_completion.d/django_bash_completion
36 find $(PREFIX)/usr/lib/python-django/bin/ -name '*.py' -not -name '__init__.py' -print0 | xargs -0r chmod 755
37
38 # Rename django-admin.py to django-admin
39 mv $(PREFIX)/usr/bin/django-admin.py $(PREFIX)/usr/bin/django-admin
40
41 # Remove embedded copy of libjs-jquery
42 cd $(PREFIX)/usr/share/doc/python-django/html/_static \
43 && rm jquery.js \
44 && ln -s ../../../../javascript/jquery/jquery.js .
45
46 override_dh_compress:
47 dh_compress -X.js

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5