[SCM] ecasound/master: Add -DOC arch-indep package.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed May 18 16:38:46 UTC 2011


The following commit has been merged in the master branch:
commit 379e36caa405b6ec9989924bcd279528fcca8b48
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed May 18 18:37:44 2011 +0200

    Add -DOC arch-indep package.
    
    Build documentation only when Build-Depends-Indep are met.

diff --git a/debian/control b/debian/control
index 090ab60..c01e494 100644
--- a/debian/control
+++ b/debian/control
@@ -20,8 +20,8 @@ Build-Depends: debhelper (>= 7.0.50~),
  libsndfile1-dev,
  libwrap0-dev,
  python-all-dev (>= 2.6.6-3),
- python-docutils,
- ruby,
+ ruby
+Build-Depends-Indep: python-docutils,
  texlive-latex-extra,
  texlive-latex-recommended
 X-Python-Version: >= 2.5
@@ -339,3 +339,14 @@ Description: Multitrack-capable audio recorder and effect processor (emacs)
  This package provides an interactive mode for running ecasound sessions
  from within Emacs as well as Emacs Lisp bindings  to the Ecasound
  Control Interface (ECI).
+
+Package: ecasound-doc
+Architecutre: all
+Depends: ${misc:Depends}
+Description: Documentation files for Ecasound
+ Ecasound is a software package designed for multitrack audio
+ processing. It can be used for simple tasks like audio playback,
+ recording and format conversions, as well as for multitrack effect
+ processing, mixing, recording and signal recycling.
+ .
+ This package provides the documentation files for ecasound.
diff --git a/debian/docs b/debian/docs
index 1404fd8..d5aaf52 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,14 +1,3 @@
 BUGS
 README
 TODO
-
-Documentation/programmers_guide/ecasound_eci_doc.pdf
-Documentation/programmers_guide/ecasound_programmers_guide.html
-Documentation/programmers_guide/eci_doc.dvi
-Documentation/programmers_guide/eci_doc.ps
-Documentation/programmers_guide/html_ecidoc/eci_doc.html
-
-Documentation/users_guide/ecasound_users_guide.pdf
-Documentation/users_guide/users_guide.dvi
-Documentation/users_guide/users_guide.ps
-Documentation/users_guide/html_uguide/users_guide.html
diff --git a/debian/ecasound-doc.install b/debian/ecasound-doc.install
new file mode 100644
index 0000000..db176e0
--- /dev/null
+++ b/debian/ecasound-doc.install
@@ -0,0 +1,9 @@
+Documentation/programmers_guide/ecasound_eci_doc.pdf usr/share/doc/ecasound
+Documentation/programmers_guide/ecasound_programmers_guide.html usr/share/doc/ecasound
+Documentation/programmers_guide/eci_doc.dvi usr/share/doc/ecasound
+Documentation/programmers_guide/eci_doc.ps usr/share/doc/ecasound
+Documentation/programmers_guide/html_ecidoc/eci_doc.html usr/share/doc/ecasound
+Documentation/users_guide/ecasound_users_guide.pdf usr/share/doc/ecasound
+Documentation/users_guide/users_guide.dvi usr/share/doc/ecasound
+Documentation/users_guide/users_guide.ps usr/share/doc/ecasound
+Documentation/users_guide/html_uguide/users_guide.html usr/share/doc/ecasound
diff --git a/debian/rules b/debian/rules
index 0c6dd51..2a54ecf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,9 @@ override_dh_auto_configure:
 
 override_dh_auto_build:
 	dh_auto_build
+ifeq ($(shell dpkg-query -s python-docutils 1>/dev/null 2>&1 && echo yes),yes)
 	$(MAKE) docs
+endif
 
 override_dh_auto_clean:
 	mv ecasound.spec ecasound.spec.orig

-- 
ecasound packaging



More information about the pkg-multimedia-commits mailing list