[Python-modules-commits] [subliminal] 06/08: install nautilus extension
Etienne Millon
emillon-guest at moszumanska.debian.org
Sat Apr 30 20:47:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
emillon-guest pushed a commit to branch master
in repository subliminal.
commit 35860f893f6256057e4e27c244f89c9257045dd5
Author: Etienne Millon <me at emillon.org>
Date: Sat Apr 30 20:09:47 2016 +0200
install nautilus extension
---
debian/rules | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/debian/rules b/debian/rules
index 5dae4c8..2b44def 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@ export PYBUILD_NAME=subliminal
# Disable test suite as it requires a network connection
export PYBUILD_DISABLE=test
+NAUTILUS_EXT_DIR=debian/subliminal-nautilus/usr/share/nautilus-python/extensions
+
%:
dh $@ --with python2,python3 --buildsystem=pybuild
@@ -15,6 +17,14 @@ override_dh_install:
rm -r debian/python-subliminal/usr/bin/
mkdir -p debian/subliminal/usr
mv debian/python3-subliminal/usr/bin debian/subliminal/usr
+ mkdir -p $(NAUTILUS_EXT_DIR)
+ cp examples/nautilus.py $(NAUTILUS_EXT_DIR)/subliminal-nautilus.py
+ mkdir -p $(NAUTILUS_EXT_DIR)/subliminal/ui
+ cp -R examples/ui $(NAUTILUS_EXT_DIR)/subliminal/
+ for lang in de es fr it pt_BR pt ru tr; do \
+ mkdir -p $(NAUTILUS_EXT_DIR)/subliminal/locale/$$lang/LC_MESSAGES ;\
+ msgfmt examples/i18n/$$lang.po -o $(NAUTILUS_EXT_DIR)/subliminal/locale/$$lang/LC_MESSAGES/subliminal.mo ;\
+ done
override_dh_installman:
PYTHONPATH=. help2man -L C.UTF-8 -N -n 'tool to search and download subtitles' debian/subliminal/usr/bin/subliminal > debian/subliminal.1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/subliminal.git
More information about the Python-modules-commits
mailing list