[SCM] pd-pmpd/master: Build documentation at build time, not install time

fsateler at users.alioth.debian.org fsateler at users.alioth.debian.org
Sun Sep 12 21:38:12 UTC 2010


The following commit has been merged in the master branch:
commit de085e123fd53c04f523c36264de66a86779ef33
Author: Felipe Sateler <fsateler at debian.org>
Date:   Sun Sep 12 17:12:32 2010 -0400

    Build documentation at build time, not install time
    
    We have to move the original docs out of the way, and restore them on clean
    if we want to keep git silent

diff --git a/debian/rules b/debian/rules
index 6a38fef..2560492 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,14 +7,22 @@ pkglibdir = /usr/lib/pd/extra
 %:
 	dh $@ --buildsystem=makefile
 
+override_dh_auto_clean:
+	dh_auto_clean --buildsystem=makefile
+	[ ! -f $(CURDIR)/manual/pmpd.pdf.old ] || \
+		mv $(CURDIR)/manual/pmpd.pdf.old $(CURDIR)/manual/pmpd.pdf
+
+override_dh_auto_build:
+	dh_auto_build --buildsystem=makefile
+	[ -f $(CURDIR)/manual/pmpd.pdf.old ] || \
+		mv $(CURDIR)/manual/pmpd.pdf $(CURDIR)/manual/pmpd.pdf.old
+	unoconv -f pdf $(CURDIR)/manual/pmpd.sxw
+
+
 override_dh_auto_install:
 	dh_auto_install -- prefix=/usr pkglibdir=$(pkglibdir)
 # replace license file with link to the Debian license file
 	rm -f -- $(CURDIR)/debian/$(PACKAGE)/$(pkglibdir)/$(LIBRARY_NAME)/LICENSE.txt
-# generate and install the PDF manual from the OpenOffice source
-	rm -f -- $(CURDIR)/debian/$(PACKAGE)/$(pkglibdir)/$(LIBRARY_NAME)/manual/pmpd.pdf
-	unoconv -f pdf --stdout $(CURDIR)/manual/pmpd.sxw > \
-		$(CURDIR)/debian/$(PACKAGE)/$(pkglibdir)/$(LIBRARY_NAME)/manual/pmpd.pdf
 
 override_dh_shlibdeps:
 	dpkg-shlibdeps \

-- 
pd-pmpd packaging



More information about the pkg-multimedia-commits mailing list