[SCM] serd/master: Add documentation package.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Fri May 27 13:51:17 UTC 2011


The following commit has been merged in the master branch:
commit 9f1ddeb2607a954d2d0a1b2e1c8d264037c0cb21
Author: Alessio Treglia <alessio at debian.org>
Date:   Fri May 27 15:50:19 2011 +0200

    Add documentation package.

diff --git a/debian/control b/debian/control
index 2e2cebc..3cdddc8 100644
--- a/debian/control
+++ b/debian/control
@@ -69,6 +69,17 @@ Description: lightweight RDF syntax library - serdi tool
  .
  This package provides the utility 'serdi'.
 
+Package: libserd-doc
+Section: doc
+Architecture: all
+Enhances: libserd-dev
+Depends: ${misc:Depends}
+Description: lightweight RDF syntax library - documentation
+ Serd is a lightweight C library for RDF syntax which supports reading
+ and writing Turtle and NTriples.
+ .
+ This package provides the developer's reference for serd.
+
 Package: serd-dbg
 Architecture: any
 Priority: extra
diff --git a/debian/libserd-doc.doc-base b/debian/libserd-doc.doc-base
new file mode 100644
index 0000000..8fc04c7
--- /dev/null
+++ b/debian/libserd-doc.doc-base
@@ -0,0 +1,9 @@
+Document: libserd-doc
+Title: Serd Manual
+Author: David Robillard <d at drobilla.net>
+Abstract: This is a programming manual for the Serd library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libserd-dev/index.html
+Files: /usr/share/doc/libserd-dev/*
diff --git a/debian/libserd-doc.install b/debian/libserd-doc.install
new file mode 100644
index 0000000..a3ff527
--- /dev/null
+++ b/debian/libserd-doc.install
@@ -0,0 +1,2 @@
+usr/share/doc/serd/html/* usr/share/doc/libserd-dev/
+usr/share/man/man3
diff --git a/debian/rules b/debian/rules
index 8f97814..87a08ca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,10 @@
 LDFLAGS+=-Wl,--as-needed
 WAF = ./waf
 
+ifeq ($(shell dpkg-query -s doxygen graphviz 1>/dev/null 2>&1 && echo yes),yes)
+CONFIGURE_EXTRA_FLAGS += --docs
+endif
+
 %:
 	dh $@
 
@@ -10,7 +14,8 @@ override_dh_auto_configure:
 	$(WAF) configure \
 		--prefix=/usr \
 		--mandir=/usr/share/man \
-		--debug
+		--debug \
+		$(CONFIGURE_EXTRA_FLAGS)
 
 override_dh_auto_build:
 	$(WAF)

-- 
serd packaging



More information about the pkg-multimedia-commits mailing list