[Pkg-opt-media-team] [dvdisaster] 29/61: Separate binary-arch and binary-indep rules.
Takaki Taniguchi
takaki at moszumanska.debian.org
Thu Feb 2 13:48:40 UTC 2017
This is an automated email from the git hooks/post-receive script.
takaki pushed a commit to branch master
in repository dvdisaster.
commit 5f8bcae4b3a60849aa22cc6ab17ea351e51f47a6
Author: Carlos Maddela <e7appew at gmail.com>
Date: Thu Dec 22 02:30:06 2016 +1100
Separate binary-arch and binary-indep rules.
---
...move-auto-build-of-doco-from-install-rule.patch | 78 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 13 +++-
3 files changed, 90 insertions(+), 2 deletions(-)
diff --git a/debian/patches/16-remove-auto-build-of-doco-from-install-rule.patch b/debian/patches/16-remove-auto-build-of-doco-from-install-rule.patch
new file mode 100644
index 0000000..0465681
--- /dev/null
+++ b/debian/patches/16-remove-auto-build-of-doco-from-install-rule.patch
@@ -0,0 +1,78 @@
+From: Carlos Maddela <e7appew at gmail.com>
+Date: Thu, 22 Dec 2016 02:20:30 +1100
+Subject: Don't build and install documentation automatically.
+
+Description: Don't build and install documentation automatically.
+ This allows for better control over binary-arch and binary-indep builds.
+Author: Carlos Maddela <e7appew at gmail.com>
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2016-12-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+---
+ GNUmakefile.template | 34 ++++++++++++++++++----------------
+ 1 file changed, 18 insertions(+), 16 deletions(-)
+
+diff --git a/GNUmakefile.template b/GNUmakefile.template
+index 10e4524..dd91bf3 100644
+--- a/GNUmakefile.template
++++ b/GNUmakefile.template
+@@ -68,7 +68,7 @@ OFILES = $(CFG_OFILES)
+ @echo "Compiling:" $*.c
+ @$(CC) $(COPTS) -c $*.c
+
+-all: time-stamp dvdisaster images
++all: time-stamp dvdisaster
+
+ # Building the dvdisaster binary
+
+@@ -310,24 +310,10 @@ show:
+ .PHONY : www www-images
+ .PHONY : srcdist windist
+
+-install: dvdisaster images
++install: dvdisaster
+ @echo "Installing package..."
+ install -d $(BUILDROOT)$(BINDIR)
+ install dvdisaster$(EXE_SUFFIX) $(BUILDROOT)$(BINDIR)
+- install -d $(BUILDROOT)$(DOCSUBDIR)
+- for i in $(DOC_LOCALES); do \
+- install -d $(BUILDROOT)$(DOCSUBDIR)/$$i; \
+- (cd documentation; install -m 644 $$i/*.html $(BUILDROOT)$(DOCSUBDIR)/$$i); \
+- install -d $(BUILDROOT)$(DOCSUBDIR)/$$i/images; \
+- (cd documentation/$$i; install -m 644 images/*.png $(BUILDROOT)$(DOCSUBDIR)/$$i/images); \
+- install -d $(BUILDROOT)$(DOCSUBDIR)/$$i/thumbnails; \
+- (cd documentation/$$i; install -m 644 thumbnails/*.png $(BUILDROOT)$(DOCSUBDIR)/$$i/thumbnails); \
+- done
+- install -d $(BUILDROOT)$(DOCSUBDIR)/images
+- cd documentation; install -m 644 images/*.png $(BUILDROOT)$(DOCSUBDIR)/images
+-# cd documentation; install -m 644 images/*.jpg $(BUILDROOT)$(DOCSUBDIR)/images
+- install -d $(BUILDROOT)$(DOCSUBDIR)/include
+- cd documentation; install -m 644 include/*.css $(BUILDROOT)$(DOCSUBDIR)/include
+ install -d $(BUILDROOT)$(MANDIR)/man1
+ install -d $(BUILDROOT)$(MANDIR)/cs/man1
+ install -d $(BUILDROOT)$(MANDIR)/de/man1
+@@ -351,6 +337,22 @@ install: dvdisaster images
+ done \
+ fi
+
++install-doc: images
++ install -d $(BUILDROOT)$(DOCSUBDIR)
++ for i in $(DOC_LOCALES); do \
++ install -d $(BUILDROOT)$(DOCSUBDIR)/$$i; \
++ (cd documentation; install -m 644 $$i/*.html $(BUILDROOT)$(DOCSUBDIR)/$$i); \
++ install -d $(BUILDROOT)$(DOCSUBDIR)/$$i/images; \
++ (cd documentation/$$i; install -m 644 images/*.png $(BUILDROOT)$(DOCSUBDIR)/$$i/images); \
++ install -d $(BUILDROOT)$(DOCSUBDIR)/$$i/thumbnails; \
++ (cd documentation/$$i; install -m 644 thumbnails/*.png $(BUILDROOT)$(DOCSUBDIR)/$$i/thumbnails); \
++ done
++ install -d $(BUILDROOT)$(DOCSUBDIR)/images
++ cd documentation; install -m 644 images/*.png $(BUILDROOT)$(DOCSUBDIR)/images
++# cd documentation; install -m 644 images/*.jpg $(BUILDROOT)$(DOCSUBDIR)/images
++ install -d $(BUILDROOT)$(DOCSUBDIR)/include
++ cd documentation; install -m 644 include/*.css $(BUILDROOT)$(DOCSUBDIR)/include
++
+ uninstall:
+ @echo "Uninstalling package..."
+ rm -f $(BINDIR)/dvdisaster $(BINDIR)/dvdisaster.exe $(BINDIR)/dvdisaster-win.exe $(BINDIR)/dvdisaster-uninstall.sh
diff --git a/debian/patches/series b/debian/patches/series
index ad0b208..6d8ddd8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@
13-fix-missing-language-field-in-po-files.patch
14-make-builds-reproducible.patch
15-show-new-pkg-tracker.patch
+16-remove-auto-build-of-doco-from-install-rule.patch
diff --git a/debian/rules b/debian/rules
index f8137a2..b070861 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,5 +16,14 @@ override_dh_auto_configure:
--docsubdir=dvdisaster-doc/html \
--with-embedded-src-path=no
-override_dh_auto_install:
- dh_auto_install -- BUILDROOT=$(CURDIR)/debian/tmp
+override_dh_auto_build-arch:
+ make all
+
+override_dh_auto_build-indep:
+ make images
+
+override_dh_auto_install-arch:
+ dh_auto_install -a -- BUILDROOT=$(CURDIR)/debian/tmp
+
+override_dh_auto_install-indep:
+ make install-doc BUILDROOT=$(CURDIR)/debian/tmp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opt-media/dvdisaster.git
More information about the Pkg-opt-media-team
mailing list