Package: libmongo-client0
Version: 0.1.4-1
Severity: wishlist
Tags: patch

Hi,
attached patch adds a doc package so one can browse the documentation
more easily. Would be great to have this applied.
Cheers,
 -- Guido


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libmongo-client0 depends on:
ii  libc6                         2.13-10    Embedded GNU C Library: Shared lib
ii  libglib2.0-0                  2.28.6-1   The GLib library of C routines
ii  multiarch-support             2.13-10    Transitional package to ensure mul

libmongo-client0 recommends no packages.

libmongo-client0 suggests no packages.

-- no debconf information
>From 66b6ae51b8876812f694dc93000407a89c384725 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <a...@sigxcpu.org>
Date: Mon, 29 Aug 2011 21:05:28 +0200
Subject: [PATCH] Build doc package

so one can browse the doxygen documentation without downloading the
source.
---
 debian/control                     |   14 +++++++++++++-
 debian/libmongo-client-doc.install |    1 +
 debian/libmongo-client-doc.links   |    1 +
 debian/rules                       |    4 ++++
 4 files changed, 19 insertions(+), 1 deletions(-)
 create mode 100644 debian/libmongo-client-doc.install
 create mode 100644 debian/libmongo-client-doc.links

diff --git a/debian/control b/debian/control
index efd1883..1ac6b26 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
 Source: libmongo-client
 Priority: extra
 Maintainer: Gergely Nagy <alger...@madhouse-project.org>
-Build-Depends: debhelper (>= 8.1.3), libglib2.0-dev, perl, dh-autoreconf
+Build-Depends: debhelper (>= 8.1.3), libglib2.0-dev, perl, dh-autoreconf,
+ doxygen
 Standards-Version: 3.9.2
 Section: libs
 DM-Upload-Allowed: yes
@@ -55,3 +56,14 @@ Description: Alternate C driver for MongoDB (debugging symbols)
  This package contains detached debugging symbols.
  .
  Most people will not need this package.
+
+Package: libmongo-client-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: libjs-jquery
+Description: Documentation for the alternate C driver for MongoDB
+ libmongo-client is an alternative C language driver to the MongoDB
+ document-oriented datastore.
+ .
+ This package contains the API documentation.
diff --git a/debian/libmongo-client-doc.install b/debian/libmongo-client-doc.install
new file mode 100644
index 0000000..155f6b3
--- /dev/null
+++ b/debian/libmongo-client-doc.install
@@ -0,0 +1 @@
+build-tree/docs/html/* usr/share/doc/libmongo-client0/html/
diff --git a/debian/libmongo-client-doc.links b/debian/libmongo-client-doc.links
new file mode 100644
index 0000000..23b7085
--- /dev/null
+++ b/debian/libmongo-client-doc.links
@@ -0,0 +1 @@
+/usr/share/javascript/jquery/jquery.js usr/share/doc/libmongo-client0/html/jquery.js
diff --git a/debian/rules b/debian/rules
index 8347422..cdc2ec5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,5 +12,9 @@ override_dh_auto_configure:
 override_dh_installdocs:
 	dh_installdocs --link-doc=libmongo-client0
 
+override_dh_auto_build:
+	dh_auto_build
+	make -C build-tree doxygen
+
 %:
 	dh $@ --with autoreconf
-- 
1.7.5.4

Reply via email to