Source: libgfshare
Version: 2.0.0-2
Severity: wishlist
Tags: patch
Hi,
Patch attached that adds support for the nodoc build profile,
avoiding the need to run/install TeX. :)
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/debian/control b/debian/control
index fe23b2e..db0f213 100644
--- a/debian/control
+++ b/debian/control
@@ -7,11 +7,11 @@ Build-Depends:
debhelper (>= 9.20160114),
dh-autoreconf,
dpkg-dev (>= 1.16.1),
- dvipng,
- faketime,
- tex4ht,
- texlive-latex-base,
- texlive-latex-recommended,
+ dvipng <!nodoc>,
+ faketime <!nodoc>,
+ tex4ht <!nodoc>,
+ texlive-latex-base <!nodoc>,
+ texlive-latex-recommended <!nodoc>,
Vcs-Git: https://anonscm.debian.org/git/collab-maint/libgfshare.git
Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/libgfshare.git
Homepage: http://www.digital-scurf.org/software/libgfshare
diff --git a/debian/rules b/debian/rules
index c037ef8..776cf01 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,8 +16,10 @@ override_dh_clean:
override_dh_auto_build:
dh_auto_build
install -d pdf html
+ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
cd pdf && $(faketime) pdflatex ../doc/theory.tex
cd html && $(faketime) htlatex ../doc/theory.tex
+endif
override_dh_strip:
dh_strip --dbgsym-migration='libgfshare-dbg (<< 2.0.0-2)'
@@ -33,5 +35,7 @@ override_dh_makeshlibs:
dh_makeshlibs -V
override_dh_installdocs:
+ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
dh_installdocs --link-doc=libgfshare2 -Nlibgfshare-bin
dh_installdocs -plibgfshare-bin
+endif