[Python-apps-commits] r9296 - in packages/cython/trunk/debian (5 files)

yoh at users.alioth.debian.org yoh at users.alioth.debian.org
Thu Dec 6 19:51:43 UTC 2012


    Date: Thursday, December 6, 2012 @ 19:51:42
  Author: yoh
Revision: 9296

ENH: provide cython-doc package

Added:
  packages/cython/trunk/debian/cython-doc.docs
  packages/cython/trunk/debian/cython-doc.links
Modified:
  packages/cython/trunk/debian/changelog
  packages/cython/trunk/debian/control
  packages/cython/trunk/debian/rules

Modified: packages/cython/trunk/debian/changelog
===================================================================
--- packages/cython/trunk/debian/changelog	2012-12-06 19:51:34 UTC (rev 9295)
+++ packages/cython/trunk/debian/changelog	2012-12-06 19:51:42 UTC (rev 9296)
@@ -12,6 +12,8 @@
   * Boost python-dev to Recommends from Suggests for most common usage
     scenarios (Closes: #545809).  Also list python3-dev instead
     of python-dev for cython3 package.
+  * Provide cython-doc package with documentation built using sphinx
+    (Closes: #615932)
 
  -- Yaroslav Halchenko <debian at onerussian.com>  Wed, 05 Dec 2012 12:28:05 -0500
 

Modified: packages/cython/trunk/debian/control
===================================================================
--- packages/cython/trunk/debian/control	2012-12-06 19:51:34 UTC (rev 9295)
+++ packages/cython/trunk/debian/control	2012-12-06 19:51:42 UTC (rev 9296)
@@ -3,7 +3,14 @@
 Priority: optional
 Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
 Uploaders: Ondrej Certik <ondrej at certik.cz>, Yaroslav Halchenko <debian at onerussian.com>
-Build-Depends: debhelper (>= 7.0.50~), python-all-dev (>= 2.6.6-3~), python-all-dbg, help2man (>= 1.37.1~), python-numpy, python3-all-dev, python3-all-dbg, python3-numpy
+Build-Depends: debhelper (>= 7.0.50~),
+               python-all-dev (>= 2.6.6-3~), python-all-dbg,
+               help2man (>= 1.37.1~),
+               python-sphinx,
+               python-numpy,
+               python3-all-dev,
+               python3-all-dbg,
+               python3-numpy
 Standards-Version: 3.9.3
 Homepage: http://cython.org/
 Vcs-Svn: svn://svn.debian.org/svn/python-apps/packages/cython/trunk
@@ -32,7 +39,7 @@
 Section: debug
 Priority: extra
 Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, cython (= ${binary:Version})
-Description: C-Extensions for Python (Debug Build of Cython)
+Description: C-Extensions for Python - debug build
  This package contains Cython libraries built against versions of
  Python configured with --pydebug.
 
@@ -58,6 +65,15 @@
 Section: debug
 Priority: extra
 Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}, cython3 (= ${binary:Version})
-Description: C-Extensions for Python 3 (Debug Build of Cython)
+Description: C-Extensions for Python 3 - debug build
  This package contains Cython libraries built against versions of
  Python configured with --pydebug.
+
+Package: cython-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, libjs-jquery
+Suggests: cython
+Description: C-Extensions for Python - documentation
+ This package contains documentation for Cython.
+

Added: packages/cython/trunk/debian/cython-doc.docs
===================================================================
--- packages/cython/trunk/debian/cython-doc.docs	                        (rev 0)
+++ packages/cython/trunk/debian/cython-doc.docs	2012-12-06 19:51:42 UTC (rev 9296)
@@ -0,0 +1 @@
+docs/build/html

Added: packages/cython/trunk/debian/cython-doc.links
===================================================================
--- packages/cython/trunk/debian/cython-doc.links	                        (rev 0)
+++ packages/cython/trunk/debian/cython-doc.links	2012-12-06 19:51:42 UTC (rev 9296)
@@ -0,0 +1 @@
+usr/share/javascript/jquery/jquery.js usr/share/doc/cython-doc/html/_static/jquery.js

Modified: packages/cython/trunk/debian/rules
===================================================================
--- packages/cython/trunk/debian/rules	2012-12-06 19:51:34 UTC (rev 9295)
+++ packages/cython/trunk/debian/rules	2012-12-06 19:51:42 UTC (rev 9296)
@@ -14,7 +14,9 @@
 PY2VERS=$(shell pyversions -vr)
 PY3VERS=$(shell py3versions -vr)
 
+# In case matplotlib or anything else inquires
 export HOME=$(CURDIR)/build
+export MPLCONFIGDIR=$(CURDIR)/build
 
 %:
 	dh $@ --with python2,python3 --buildsystem python_distutils
@@ -77,6 +79,18 @@
 	dh_installdocs -pcython $(CHANGELOGS)/ReleaseNotes-*
 	dh_installdocs -pcython3 $(CHANGELOGS)/ReleaseNotes-*
 
+	: # Build Documentation
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+ifneq (,$(findstring -a,$(DH_INTERNAL_OPTIONS)))
+	: # not building documentation in -a
+else
+	make -C docs html
+	: # Use jquery from Debian package, so prune shipped one
+	-rm docs/build/html/_static/jquery.js
+	dh_installdocs -pcython-doc
+endif
+endif
+
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	set -e; for P in $(PY2VERS) $(PY3VERS); do \




More information about the Python-apps-commits mailing list