[pocl] 06/06: provide documentation package (pocl-doc)

Andreas Beckmann anbe at moszumanska.debian.org
Wed Apr 27 11:52:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository pocl.

commit e8922d0eee33dee486cee9603fd5fd7888b73ecf
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Apr 7 19:48:19 2016 +0100

    provide documentation package (pocl-doc)
---
 debian/changelog         |  6 ++++++
 debian/clean             |  1 +
 debian/control           | 20 ++++++++++++++++++++
 debian/pocl-doc.doc-base |  8 ++++++++
 debian/pocl-doc.docs     |  1 +
 debian/rules             |  5 ++++-
 6 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c85c6fc..703aa9e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pocl (0.11-3) UNRELEASED; urgency=medium
+
+  * Provide documentation package (pocl-doc), thanks to Ghislain Vaillant.
+
+ -- Andreas Beckmann <anbe at debian.org>  Wed, 27 Apr 2016 13:18:38 +0200
+
 pocl (0.11-2) unstable; urgency=medium
 
   * Make the B-D on clang versioned to match llvm.
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+build/html
diff --git a/debian/control b/debian/control
index 1b09ca1..ae511ce 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,8 @@ Build-Depends: debhelper (>= 9),
  llvm-3.6-dev,
  libclang-3.6-dev,
  pkg-kde-tools,
+Build-Depends-Indep:
+ python-sphinx,
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/pocl.git
 Vcs-Git: https://anonscm.debian.org/git/collab-maint/pocl.git
@@ -135,3 +137,21 @@ Description: development files for the pocl library
  .
  To develop OpenCL programs (that can be run with pocl), the opencl-dev virtual
  package (provided by ocl-icd-opencl-dev for example) is required, not this one.
+
+Package: pocl-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Description: documentation for the pocl library
+ Portable Computing Language is an open source implementation of the OpenCL
+ standard which can be easily adapted for new targets. One of the goals of the
+ project is improving performance portability of OpenCL programs, avoiding the
+ need for target-dependent manual optimizations. A "native" target is included,
+ which allows running OpenCL kernels on the host (CPU).
+ .
+ This package provides the development files for the pocl library.  Unless very
+ specific needs, this package is useless.  This package is only required to link
+ directly and explicitly with pocl.
+ .
+ This package provides the documentation for the pocl library.
diff --git a/debian/pocl-doc.doc-base b/debian/pocl-doc.doc-base
new file mode 100644
index 0000000..d4c905b
--- /dev/null
+++ b/debian/pocl-doc.doc-base
@@ -0,0 +1,8 @@
+Document: pocl-doc
+Title: Documentation for the pocl library
+Author: The pocl developers
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/pocl-doc/html/index.html
+Files: /usr/share/doc/pocl-doc/html/*.html
diff --git a/debian/pocl-doc.docs b/debian/pocl-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/pocl-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
index 3ac4c6c..4d2de5a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -40,7 +40,7 @@ endif
 # http://www.eyrie.org/~eagle/journal/2012-01/008.html
 # main packaging script based on dh7 syntax
 %:
-	dh $@  --with autoreconf --parallel --with pkgkde_symbolshelper
+	dh $@  --with autoreconf --parallel --with pkgkde_symbolshelper --with sphinxdoc
 
 .PHONY: override_dh_auto_configure override_dh_shlibdeps override_dh_install
 .PHONY: override_dh_auto_test override_dh_makeshlibs
@@ -57,6 +57,9 @@ override_dh_auto_configure:
 	dh_auto_configure -- --enable-icd --disable-static \
 		LLVM_CONFIG=/usr/bin/llvm-config-$(LLVM_VERSION)
 
+override_dh_auto_build-indep:
+	sphinx-build -N -b html doc/sphinx/source build/html
+
 override_dh_shlibdeps:
 	dh_shlibdeps -a -- --warnings=7
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/pocl.git



More information about the Pkg-opencl-commits mailing list