Source: groff
Version: 1.22.2-2
Severity: wishlist
Tags: patch

The attached patch fixes the build of "DEB_BUILD_OPTIONS=no-groff-x11 dpkg-
buildpackage -d -b -uc", so that it goes through successfully instead of 
getting an error in dh_install.  It does this by extending the existing 
%.install.in -> %.install mechanism to comment out the unbuilt files when no-
groff-x11 is specified.
-- 
Daniel Schepler
diff -urN groff-1.22.2.old/debian/groff.install.in groff-1.22.2/debian/groff.install.in
--- groff-1.22.2.old/debian/groff.install.in	2013-01-07 08:14:07.000000000 -0800
+++ groff-1.22.2/debian/groff.install.in	2013-05-25 11:06:40.788670164 -0700
@@ -1,4 +1,4 @@
-etc/X11/app-defaults
+@IF_GROFF_X11@etc/X11/app-defaults
 usr/bin/addftinfo
 usr/bin/afmtodit
 usr/bin/chem
@@ -11,7 +11,7 @@
 usr/bin/grolbp
 usr/bin/grolj4
 usr/bin/gropdf
-usr/bin/gxditview
+@IF_GROFF_X11@usr/bin/gxditview
 usr/bin/hpftodit
 usr/bin/indxbib
 usr/bin/lkbib
@@ -31,7 +31,7 @@
 usr/bin/roff2text
 usr/bin/roff2x
 usr/bin/tfmtodit
-usr/bin/xtotroff
+@IF_GROFF_X11@usr/bin/xtotroff
 usr/lib/groff/groffer
 usr/share/doc
 usr/share/info
@@ -48,7 +48,7 @@
 usr/share/man/man1/grolbp.1
 usr/share/man/man1/grolj4.1
 usr/share/man/man1/gropdf.1
-usr/share/man/man1/gxditview.1
+@IF_GROFF_X11@usr/share/man/man1/gxditview.1
 usr/share/man/man1/hpftodit.1
 usr/share/man/man1/indxbib.1
 usr/share/man/man1/lkbib.1
@@ -66,7 +66,7 @@
 usr/share/man/man1/roff2text.1
 usr/share/man/man1/roff2x.1
 usr/share/man/man1/tfmtodit.1
-usr/share/man/man1/xtotroff.1
+@IF_GROFF_X11@usr/share/man/man1/xtotroff.1
 usr/share/man/man5
 usr/share/man/man7/ditroff.7
 usr/share/man/man7/groff.7
@@ -83,7 +83,7 @@
 usr/share/man/man7/groff_www.7
 usr/share/man/man7/roff.7
 usr/share/groff/@VERSION@/pic
-usr/share/groff/@VERSION@/font/devX*
+@IF_GROFF_X11@usr/share/groff/@VERSION@/font/devX*
 usr/share/groff/@VERSION@/font/devdvi
 usr/share/groff/@VERSION@/font/devhtml
 usr/share/groff/@VERSION@/font/devlbp
diff -urN groff-1.22.2.old/debian/rules groff-1.22.2/debian/rules
--- groff-1.22.2.old/debian/rules	2013-03-11 01:34:44.000000000 -0700
+++ groff-1.22.2/debian/rules	2013-05-25 11:05:08.186720952 -0700
@@ -109,7 +109,11 @@
 		INSTALL_INFO=:
 
 %: %.in
-	sed -e 's/@VERSION@/$(upstream)/g' $< > $@
+ifeq ($(GROFF_X11),yes)
+	sed -e 's/@VERSION@/$(upstream)/g' -e 's/@IF_GROFF_X11@//g' $< > $@
+else
+	sed -e 's/@VERSION@/$(upstream)/g' -e 's/@IF_GROFF_X11@/#/g' $< > $@
+endif
 
 override_dh_install:
 	$(MAKE) -f debian/rules \

Reply via email to