[Python-modules-commits] r19276 - in packages/ipython/trunk/debian (rules)

jtaylor-guest at users.alioth.debian.org jtaylor-guest at users.alioth.debian.org
Sat Nov 12 18:04:51 UTC 2011


    Date: Saturday, November 12, 2011 @ 18:04:49
  Author: jtaylor-guest
Revision: 19276

add nodocs support to DEB_BUILD_OPTIONS to skip building the docs

Modified:
  packages/ipython/trunk/debian/rules

Modified: packages/ipython/trunk/debian/rules
===================================================================
--- packages/ipython/trunk/debian/rules	2011-11-12 18:04:34 UTC (rev 19275)
+++ packages/ipython/trunk/debian/rules	2011-11-12 18:04:49 UTC (rev 19276)
@@ -16,7 +16,9 @@
 
 override_dh_auto_build:
 	dh_auto_build -- --executable '/usr/bin/env python'
+ifeq (,$(filter nodocs,$(DEB_BUILD_OPTIONS)))
 	PYTHONPATH=$(CURDIR) $(MAKE) -C $(CURDIR)/docs html
+endif
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
@@ -74,12 +76,14 @@
 	chmod a-x $(CURDIR)/debian/ipython/usr/share/doc/ipython/examples/*
 	
 override_dh_installdocs:
+ifeq (,$(filter nodocs,$(DEB_BUILD_OPTIONS)))
 	dh_installdocs -pipython
 	dh_installdocs -pipython-parallel --link-doc=ipython
 	dh_installdocs -pipython-qtconsole --link-doc=ipython
 	dh_installdocs -pipython-doc --link-doc=ipython
 	# remove jquery, will be linked
 	rm $(CURDIR)/debian/ipython-doc/usr/share/doc/ipython/html/_static/jquery.js
+endif
 
 override_dh_installexamples:
 	dh_installexamples -pipython --exclude="examples/newparallel/"




More information about the Python-modules-commits mailing list