[SCM] libopenshot-audio/master: Support the nodoc build profile

ghisvail-guest at users.alioth.debian.org ghisvail-guest at users.alioth.debian.org
Tue Jan 31 00:26:19 UTC 2017


The following commit has been merged in the master branch:
commit 12aa7a09d7c1fb17bb4ecec9242900ead77b1e4f
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Jan 31 00:12:20 2017 +0000

    Support the nodoc build profile
    
    - Add versioned build dependency on dpkg-dev,
    - Mark documentation b-deps and packages as !nodoc
    - Do not build the documentation when nodoc is requested
    
    Gbp-Dch: full

diff --git a/debian/control b/debian/control
index 5654b95..4d095db 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Section: libs
 Priority: optional
 Build-Depends: cmake,
                debhelper (>= 10),
+               dpkg-dev (>= 1.17.14),
                libasound2-dev,
                libflac-dev,
                libfreetype6-dev,
@@ -16,7 +17,7 @@ Build-Depends: cmake,
                libxrandr-dev,
                pkg-config,
                zlib1g-dev
-Build-Depends-Indep: doxygen
+Build-Depends-Indep: doxygen <!nodoc>
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-multimedia/libopenshot-audio.git/
 Vcs-Git: https://anonscm.debian.org/git/pkg-multimedia/libopenshot-audio.git
@@ -40,7 +41,7 @@ Multi-Arch: same
 Section: libdevel
 Depends: libopenshot-audio3 (= ${binary:Version}),
          ${misc:Depends}
-Suggests: libopenshot-audio-doc
+Suggests: libopenshot-audio-doc <!nodoc>
 Description: development files for the OpenShot audio library
  The OpenShot audio library is a program which allows high-quality
  editing and playback of audio based on the JUCE library.
@@ -57,3 +58,4 @@ Description: documentation for the OpenShot audio library
  editing and playback of audio based on the JUCE library.
  .
  This package provides the documentation.
+Build-Profiles: <!nodoc>
diff --git a/debian/rules b/debian/rules
index 9155cab..f2db505 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,7 +29,9 @@ override_dh_auto_configure:
 	dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)"
 
 override_dh_auto_build-indep:
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	dh_auto_build -- doc
+endif
 
 # NOTE: This override is required to ensure only non-empty directories are
 # effectively installed.
@@ -38,5 +40,7 @@ override_dh_install-arch:
 	dh_install --arch
 
 override_dh_installdocs-indep:
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	dh_installdocs --indep
 	dh_doxygen --indep
+endif

-- 
libopenshot-audio packaging



More information about the pkg-multimedia-commits mailing list