| 1 |
brettp-guest |
1388 |
#!/usr/bin/make -f |
| 2 |
|
|
|
| 3 |
|
|
DEB_PYTHON_SYSTEM := pysupport |
| 4 |
netzwurm |
6382 |
DEB_PYTHON_MODULE_PACKAGE = python-django |
| 5 |
|
|
DEB_DH_COMPRESS_ARGS = -X.js |
| 6 |
brettp-guest |
1388 |
|
| 7 |
|
|
include /usr/share/cdbs/1/rules/buildcore.mk |
| 8 |
|
|
include /usr/share/cdbs/1/rules/debhelper.mk |
| 9 |
|
|
include /usr/share/cdbs/1/class/python-distutils.mk |
| 10 |
|
|
include /usr/share/cdbs/1/rules/simple-patchsys.mk |
| 11 |
|
|
|
| 12 |
|
|
binary-post-install/python-django:: |
| 13 |
hertzog |
1612 |
# Use default python shebang |
| 14 |
|
|
perl -pi -e 's|^#!/usr/bin/env python.*$$|#!/usr/bin/python|' debian/python-django/usr/share/python-support/python-django/django/conf/project_template/manage.py |
| 15 |
|
|
# Ensure executability of some scripts that are copied to projects |
| 16 |
|
|
# (or used within projects) |
| 17 |
|
|
chmod 755 debian/python-django/usr/share/python-support/python-django/django/conf/project_template/manage.py |
| 18 |
|
|
chmod 755 debian/python-django/usr/share/python-support/python-django/django/bin/[^_]*.py |
| 19 |
|
|
chmod 755 debian/python-django/usr/share/python-support/python-django/django/bin/profiling/[^_]*.py |
| 20 |
|
|
# Create convenience symlink |
| 21 |
brettp-guest |
1603 |
mkdir -p debian/python-django/usr/lib/python-django |
| 22 |
hertzog |
1612 |
dh_link usr/share/python-support/python-django/django/bin usr/lib/python-django/bin |
| 23 |
brettp-guest |
1686 |
# Rename django-admin.py to django-admin |
| 24 |
brettp-guest |
1388 |
mv debian/python-django/usr/bin/django-admin.py debian/python-django/usr/bin/django-admin |
| 25 |
netzwurm |
6382 |
|
| 26 |
|
|
build/python-django-doc:: |
| 27 |
|
|
# Build HTML documentation. |
| 28 |
|
|
cd docs && make html |
| 29 |
|
|
cd docs && make latex |
| 30 |
|
|
cd docs/_build/latex && make all-pdf |
| 31 |
|
|
#cd docs/_build/latex && make all-ps |
| 32 |
|
|
|
| 33 |
|
|
clean:: |
| 34 |
|
|
rm -rf docs/_build/* |
| 35 |
|
|
|
| 36 |
|
|
|
| 37 |
|
|
binary-post-install/python-django-doc:: |
| 38 |
|
|
# Remove convenience copy of libjs-jquery and replace with symlink. |
| 39 |
|
|
cd debian/python-django-doc/usr/share/doc/python-django-doc/html/_static\ |
| 40 |
|
|
&& rm -f jquery.js\ |
| 41 |
|
|
&& ln -s ../../../../javascript/jquery/jquery.js . |