[Pkg-sdl-commits] [libsdl2] 08/16: Add new doc package

Gianfranco Costamagna locutusofborg at moszumanska.debian.org
Sun Jan 3 13:30:11 UTC 2016


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

locutusofborg pushed a commit to branch experimental
in repository libsdl2.

commit f30be23165a47b7d3e753212d99e34e0c8922cea
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Sun Jan 3 12:56:15 2016 +0100

    Add new doc package
---
 debian/changelog                                      |  3 ++-
 debian/control                                        | 13 +++++++++++++
 debian/libsdl2-doc.doc-base                           | 14 ++++++++++++++
 debian/{libsdl2-dev.examples => libsdl2-doc.examples} |  0
 debian/libsdl2-doc.install                            |  1 +
 debian/rules                                          |  7 ++++---
 6 files changed, 34 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 16e5ffc..a636a91 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,10 +2,11 @@ libsdl2 (2.0.4+dfsg1-1) UNRELEASED; urgency=medium
 
   * Team upload.
   * New upstream release (Closes: #788688, #798265, #788540)
-    * Drop patches use-default-screen and
+    - Drop patches use-default-screen and
       fix_joystick_misc_axes.diff, applied upstream.
   * Add Files-Excluded keyword to copyright file, allowing to
     import a new release with uscan command. (Closes: #804662)
+  * Create new -doc package, and move examples into it (Closes: #739430).
 
  -- Gianfranco Costamagna <locutusofborg at debian.org>  Sun, 03 Jan 2016 12:12:54 +0100
 
diff --git a/debian/control b/debian/control
index 3e7d00f..027f3a2 100644
--- a/debian/control
+++ b/debian/control
@@ -32,6 +32,7 @@ Build-Depends: debhelper (>= 9),
                libxv-dev,
                libxxf86vm-dev,
                pkg-config
+Build-Depends-Indep: doxygen
 Vcs-Git: git://anonscm.debian.org/pkg-sdl/packages/libsdl2.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-sdl/packages/libsdl2.git
 Homepage: http://www.libsdl.org/
@@ -87,6 +88,18 @@ Description: Simple DirectMedia Layer development files
  This package contains the files needed to compile and link programs which
  use SDL.
 
+Package: libsdl2-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Breaks: libsdl2-dev (<< 2.0.4+dfsg-1)
+Replaces: libsdl2-dev (<< 2.0.4+dfsg-1)
+Description: Reference manual for libsdl2
+ SDL is a library that allows programs portable low level access to a video
+ framebuffer, audio output, mouse, and keyboard.
+ .
+ This package contains the reference manual and examples.
+
 Package: libsdl2-dbg
 Architecture: any
 Multi-Arch: same
diff --git a/debian/libsdl2-doc.doc-base b/debian/libsdl2-doc.doc-base
new file mode 100644
index 0000000..f9782aa
--- /dev/null
+++ b/debian/libsdl2-doc.doc-base
@@ -0,0 +1,14 @@
+Document: libsdl2
+Title: LibSDL2 Manual
+Author: Sam Lantinga
+Abstract:
+ SDL is a library that allows programs portable low level access to a video
+ framebuffer, audio output, mouse, and keyboard.
+ .
+ This version of SDL is compiled with X11 and Wayland graphics drivers and OSS,
+ ALSA, NAS, sndio and PulseAudio sound drivers.
+Section: Programming/C++
+
+Format: HTML
+Index: /usr/share/doc/libsdl2-doc/html/index.html
+Files: /usr/share/doc/libsdl2-doc/html/*
diff --git a/debian/libsdl2-dev.examples b/debian/libsdl2-doc.examples
similarity index 100%
rename from debian/libsdl2-dev.examples
rename to debian/libsdl2-doc.examples
diff --git a/debian/libsdl2-doc.install b/debian/libsdl2-doc.install
new file mode 100644
index 0000000..119cc3d
--- /dev/null
+++ b/debian/libsdl2-doc.install
@@ -0,0 +1 @@
+output/html usr/share/doc/libsdl2-doc/
diff --git a/debian/rules b/debian/rules
index 6a038d0..2281a45 100755
--- a/debian/rules
+++ b/debian/rules
@@ -67,13 +67,14 @@ override_dh_autoreconf:
 override_dh_auto_configure:
 	dh_auto_configure -- $(confflags)
 
-override_dh_auto_build:
-	dh_auto_build
+override_dh_auto_build-indep:
 	tar czf debian/examples.tar.gz test --owner=0 --group=0 --mode=go=rX,u+rw,a-s
+	doxygen docs/doxyfile
 
-override_dh_auto_clean:
+override_dh_auto_clean-indep:
 	dh_auto_clean
 	rm -f debian/examples.tar.gz
+	rm -rf output
 
 override_dh_install:
 	dh_install --fail-missing -XlibSDL2.la

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sdl/packages/libsdl2.git



More information about the pkg-sdl-commits mailing list