[Python-modules-commits] r27395 - in packages/checkbox-ng/trunk/debian (rules)

spineau-guest at users.alioth.debian.org spineau-guest at users.alioth.debian.org
Wed Jan 22 13:00:45 UTC 2014


    Date: Wednesday, January 22, 2014 @ 13:00:44
  Author: spineau-guest
Revision: 27395

debian/rules: Added dh_auto_build and dh_install overrides

Override dh_auto_build to build sphinx html documentation and manual pages
for checkbox-ng console_scripts

Override dh_install to ensure that console_scripts are in the checkbox-ng
package and not in the python3-checkbox-ng package.

Modified:
  packages/checkbox-ng/trunk/debian/rules

Modified: packages/checkbox-ng/trunk/debian/rules
===================================================================
--- packages/checkbox-ng/trunk/debian/rules	2014-01-22 12:55:18 UTC (rev 27394)
+++ packages/checkbox-ng/trunk/debian/rules	2014-01-22 13:00:44 UTC (rev 27395)
@@ -2,4 +2,19 @@
 export PYBUILD_NAME=checkbox-ng
 
 %:
-	dh $@ --with=python3 --buildsystem=pybuild
+	dh $@ --with=python3,sphinxdoc --buildsystem=pybuild
+
+# Build sphinx html documentation. Generate manual pages for checkbox-ng
+# console_scripts
+override_dh_auto_build:
+	dh_auto_build --buildsystem=pybuild
+	python3 setup.py build_sphinx
+	python3 setup.py build_sphinx -b man
+
+# Override dh_install to ensure that console_scripts are in the
+# checkbox-ng package and not in the python3-checkbox-ng package.
+override_dh_install:
+	dh_install
+	mkdir -p debian/checkbox-ng/usr/bin
+	mv debian/python3-checkbox-ng/usr/bin/canonical* debian/checkbox-ng/usr/bin
+	mv debian/python3-checkbox-ng/usr/bin/checkbox* debian/checkbox-ng/usr/bin




More information about the Python-modules-commits mailing list