[freeimage] 13/18: Add documentation package for FreeImagePlus.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Nov 11 19:19:38 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/experimental
in repository freeimage.

commit b0ce827ceeed5d94a60de5b3e132005d96b3154e
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Nov 4 19:19:51 2015 +0000

    Add documentation package for FreeImagePlus.
---
 debian/control                       | 15 +++++++++++++++
 debian/libfreeimageplus-doc.doc-base |  9 +++++++++
 debian/libfreeimageplus-doc.docs     |  1 +
 debian/rules                         |  9 ++++++++-
 4 files changed, 33 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index c34e622..343febd 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Build-Depends: debhelper (>= 9),
                pkg-config,
                tofrodos,
                zlib1g-dev
+Build-Depends-Indep: doxygen
 Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/freeimage.git
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/freeimage.git
@@ -73,6 +74,7 @@ Architecture: any
 Section: libdevel
 Depends: libfreeimageplus3 (= ${binary:Version}),
          ${misc:Depends}
+Suggests: libfreeimageplus-doc
 Description: C++ wrappers for FreeImage (development files)
  FreeImage is an Open Source C/C++ library project for developers who would
  like to support popular graphics image formats like PNG, BMP, JPEG, TIFF
@@ -83,6 +85,19 @@ Description: C++ wrappers for FreeImage (development files)
  This package contains the headers and static libraries needed to develop
  programs using FreeImagePlus.
 
+Package: libfreeimageplus-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Description: C++ wrappers for FreeImage (documentation)
+ FreeImage is an Open Source C/C++ library project for developers who would
+ like to support popular graphics image formats like PNG, BMP, JPEG, TIFF
+ and others as needed by today's multimedia applications. FreeImage is
+ easy to use, fast, multithreading safe, and cross-platform (works both
+ with Linux, 32 bit Windows and Mac OS X).
+ .
+ This package contains the documentation for FreeImagePlus.
+
 Package: libfreeimageplus3
 Architecture: any
 Multi-Arch: same
diff --git a/debian/libfreeimageplus-doc.doc-base b/debian/libfreeimageplus-doc.doc-base
new file mode 100644
index 0000000..63482ae
--- /dev/null
+++ b/debian/libfreeimageplus-doc.doc-base
@@ -0,0 +1,9 @@
+Document: libfreeimageplus-doc
+Title: FreeImagePlus Documentation
+Author: FreeImagePlus Developers
+Abstract: This is the reference documentation for the FreeImagePlus library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libfreeimageplus-doc/html/index.html
+Files: /usr/share/doc/libfreeimageplus-doc/html/*.html
diff --git a/debian/libfreeimageplus-doc.docs b/debian/libfreeimageplus-doc.docs
new file mode 100644
index 0000000..24f755a
--- /dev/null
+++ b/debian/libfreeimageplus-doc.docs
@@ -0,0 +1 @@
+Wrapper/FreeImagePlus/doc/html
diff --git a/debian/rules b/debian/rules
index 49a5289..f361022 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,10 +30,13 @@ gen-src-list:
 override_dh_autoreconf:
 	dh_autoreconf $(MAKE) -- -f $(CURDIR)/debian/rules gen-src-list
 
-override_dh_auto_build:
+override_dh_auto_build-arch:
 	$(MAKE) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
 	$(MAKE) -f Makefile.fip CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
 
+override_dh_auto_build-indep:
+	cd $(CURDIR)/Wrapper/FreeImagePlus/doc && doxygen FreeImagePlus.dox
+
 override_dh_auto_install:
 	dh_auto_install -- INCDIR="$(INSTALL_INCDIR)" INSTALLDIR="$(INSTALL_LIBDIR)"
 	$(MAKE) -f Makefile.fip install INCDIR="$(INSTALL_INCDIR)" INSTALLDIR="$(INSTALL_LIBDIR)"
@@ -45,6 +48,10 @@ override_dh_auto_clean:
 override_dh_installdocs:
 	dh_installdocs extra.Debian/*
 
+override_dh_installdocs-indep:
+	dh_installdocs --indep
+	dh_doxygen --indep
+
 override_dh_installchangelogs:
 	dh_installchangelogs Whatsnew.txt
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/freeimage.git



More information about the debian-science-commits mailing list