[libcsfml] 18/20: Add patch so that documentation is only built once

James Cowgill jcowgill-guest at moszumanska.debian.org
Tue Mar 3 23:56:06 UTC 2015


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

jcowgill-guest pushed a commit to branch master
in repository libcsfml.

commit 04ff04096127e76ad9b0ae3979840619f2de01ad
Author: James Cowgill <james410 at cowgill.org.uk>
Date:   Tue Mar 3 23:15:07 2015 +0000

    Add patch so that documentation is only built once
    
    Patch copied from libsfml package.
---
 debian/patches/02_build-doc-once.patch | 22 ++++++++++++++++++++++
 debian/patches/series                  |  1 +
 debian/rules                           |  3 +++
 3 files changed, 26 insertions(+)

diff --git a/debian/patches/02_build-doc-once.patch b/debian/patches/02_build-doc-once.patch
new file mode 100644
index 0000000..d46798a
--- /dev/null
+++ b/debian/patches/02_build-doc-once.patch
@@ -0,0 +1,22 @@
+Description: Adjust build script to build documentation only once
+ This patch removes the ALL option from the documentation build command so
+ that it must be run manually with "make doc". This prevents the documentation
+ being built twice (normal build + install phase). It also allows the
+ documentation building to happen after the code building, which makes the
+ logs much more readable in parallel builds.
+ Patch "stolen" from libsfml package.
+Author: James Cowgill <james410 at cowgill.org.uk>
+Forwarded: no
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/doc/CMakeLists.txt
++++ b/doc/CMakeLists.txt
+@@ -31,7 +31,7 @@ configure_file(${DOXYGEN_INPUT_DIR}/doc/
+ configure_file(${DOXYGEN_INPUT_DIR}/doc/doxygen.css ${DOXYGEN_OUTPUT_DIR}/html/doxygen.css COPYONLY)
+ 
+ # target setup
+-add_custom_target(doc ALL
++add_custom_target(doc
+                   COMMAND ${CMAKE_COMMAND} -E echo_append "Building API Documentation..."
+                   COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_CONFIGURED_INPUT}
+                   COMMAND ${CMAKE_COMMAND} -E echo "Done."
diff --git a/debian/patches/series b/debian/patches/series
index 65d675d..f41429b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01_hurd.patch
+02_build-doc-once.patch
diff --git a/debian/rules b/debian/rules
index 2798cd5..d380d60 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,9 @@ override_dh_auto_configure:
 	dh_auto_configure -- -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) -DCSFML_BUILD_DOC=ON \
 		-DCMAKE_MODULE_PATH=/usr/share/SFML/cmake/Modules
 
+override_dh_auto_build:
+	dh_auto_build -- all doc
+
 override_dh_strip:
 	dh_strip --dbg-package=libcsfml-dbg
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/libcsfml.git



More information about the Pkg-games-commits mailing list