diff options
| author | 2014-02-28 11:31:55 -0300 | |
|---|---|---|
| committer | 2014-02-28 11:31:55 -0300 | |
| commit | 2c3344fb61e2330cce4b223743a05b7c38d8532f (patch) | |
| tree | b8af9d8949c62ead6fca7547e232b9c04dd319de /debian | |
| parent | 55744f61abf98f56619746a0b28b0ebbc0a5bf6f (diff) | |
Add bash and zsh completion
Use pybuild as buildsystem
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/control | 3 | ||||
| -rw-r--r-- | debian/nikola.bash-completion | 1 | ||||
| -rw-r--r-- | debian/nikola.dirs | 1 | ||||
| -rwxr-xr-x | debian/rules | 37 |
4 files changed, 25 insertions, 17 deletions
diff --git a/debian/control b/debian/control index 7a0cecc..e783655 100644 --- a/debian/control +++ b/debian/control @@ -9,6 +9,9 @@ Build-Depends: python-support (>= 1), python-setuptools, python-docutils, + dh-python, + python-doit, + bash-completion, Standards-Version: 3.9.5 X-Python-Version: >= 2.7 Homepage: http://getnikola.com/ diff --git a/debian/nikola.bash-completion b/debian/nikola.bash-completion new file mode 100644 index 0000000..6c9035b --- /dev/null +++ b/debian/nikola.bash-completion @@ -0,0 +1 @@ +_nikola_bash nikola diff --git a/debian/nikola.dirs b/debian/nikola.dirs index 9ba1feb..1cda6fd 100644 --- a/debian/nikola.dirs +++ b/debian/nikola.dirs @@ -1 +1,2 @@ /usr/share/doc/nikola +/usr/share/zsh/functions/Completion/Linux diff --git a/debian/rules b/debian/rules index 0b8735c..8dd5cea 100755 --- a/debian/rules +++ b/debian/rules @@ -6,33 +6,36 @@ UVERSION := $(shell dpkg-parsechangelog | sed -n -e's/^Version: \(.*\)-[^-]\+/\1/p' | cut -d ":" -f 2) PACKAGE_NAME := $(shell dpkg-parsechangelog | sed -n -e's/^Source: \(.*\)\+/\1/p') -PYVERS := python2.7 +export PYBUILD_NAME=$(PACKAGE_NAME) %: - dh $@ --with python2 + dh $@ --with python2,bash-completion --buildsystem=pybuild -override_dh_auto_build: +override_dh_clean: + dh_clean + rm -rf cache + rm -f .doit.db + rm -f _nikola_zsh + rm -f _nikola_bash -override_dh_auto_clean: - dh_auto_clean -- --all - rm -rf build - rm -rf Nikola.egg-info +override_dh_bash-completion: + doit gen_completion + dh_bash-completion + cp _nikola_zsh debian/nikola/usr/share/zsh/functions/Completion/Linux/_nikola override_dh_auto_install: - set -ex; \ - for py in $(PYVERS); do \ - $$py setup.py install --root debian/nikola \ - --install-layout=deb; \ - done - # Documentation + dh_auto_install + # Remove a copy of mit license + find debian/nikola/usr/lib -name "MIT-LICENSE.txt" -type f -exec rm {} + + # Drop wrong permission + find debian/nikola/usr/lib -perm /a+x -type f -exec chmod -x {} + + +override_dh_installdocs: rst2html docs/manual.txt debian/nikola/usr/share/doc/nikola/manual.html rst2html docs/theming.txt debian/nikola/usr/share/doc/nikola/theming.html rst2html docs/creating-a-theme.txt debian/nikola/usr/share/doc/nikola/creating-a-theme.html rst2html docs/extending.txt debian/nikola/usr/share/doc/nikola/extending.html - # Drop wrong permission - find debian/nikola/usr/lib -perm /a+x -type f -exec chmod -x {} + - # Remove a copy of mit license - find debian/nikola/usr/lib -name "MIT-LICENSE.txt" -type f -exec rm {} + + dh_installdocs get-orig-source: @if [ ! -d "debian" ] ; then \ |
