diff options
| author | 2012-11-19 20:34:44 -0300 | |
|---|---|---|
| committer | 2012-12-12 19:58:44 -0300 | |
| commit | 25744f4bf462020e353c503db3ec558604c19137 (patch) | |
| tree | 891e8d1acd78c263c213c2c7fa02624d3fb09b13 /debian/rules | |
| parent | ca1f5a392261a7c6b82b5ac1015427605909d8c9 (diff) | |
Imported Debian patch 4.0.3-2debian/4.0.3-2
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e367bde --- /dev/null +++ b/debian/rules @@ -0,0 +1,44 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PYVERS := python2.7 + +%: + dh $@ --with python2 + +override_dh_auto_build: + +override_dh_auto_clean: + dh_auto_clean -- --all + rm -rf build + +override_dh_auto_install: + dh_auto_install + set -ex; \ + for py in $(PYVERS); do \ + $$py setup.py install --root debian/nikola \ + --install-layout=deb; \ + done + # Documentation + mkdir -p debian/nikola/usr/share/doc/nikola; \ + rst2html docs/manual.txt debian/nikola/usr/share/doc/nikola/manual.html; \ + rst2html docs/theming.txt debian/nikola/usr/share/doc/nikola/theming.html; + # Manpage + rm debian/nikola/usr/*.txt + rst2man debian/man/nikola.rst debian/nikola.1 + rst2man debian/man/nikola_check.rst debian/nikola_check.1 + rst2man debian/man/nikola_import_wordpress.rst debian/nikola_import_wordpress.1 + # Remove embedded code from other software pieces + # PyRSS2Gen, provided by python-pyrss2gen on runtime-dep + rm debian/nikola/usr/lib/python2.7/dist-packages/nikola/PyRSS2Gen.py + +override_dh_link: + # Remove embedded code from other software pieces + # Bootstrap, provided by libjs-twitter-bootstrap on runtime-dep + rm debian/nikola/usr/share/pyshared/nikola/data/themes/default/assets/js/bootstrap.js + rm debian/nikola/usr/share/pyshared/nikola/data/themes/default/assets/css/bootstrap-responsive.css + rm debian/nikola/usr/share/pyshared/nikola/data/themes/default/assets/css/bootstrap.css + dh_link |
