0001-Add-option-to-disable-xmlto-manual-generation.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. From 731c8d7e1f9edb527785d61f74031a5e5846554b Mon Sep 17 00:00:00 2001
  2. From: James Hilliard <james.hilliard1@gmail.com>
  3. Date: Sun, 25 Jul 2021 16:30:59 -0600
  4. Subject: [PATCH] Add option to disable xmlto manual generation.
  5. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
  6. [james.hilliard1@gmail.com: backport from upstream commit
  7. 95e0b461f5a46c74b00287aca65732ea2fc9d69b]
  8. ---
  9. Makefile.am | 7 ++++++-
  10. configure.ac | 5 +++++
  11. 2 files changed, 11 insertions(+), 1 deletion(-)
  12. diff --git a/Makefile.am b/Makefile.am
  13. index 843ba30d..7facab94 100644
  14. --- a/Makefile.am
  15. +++ b/Makefile.am
  16. @@ -209,9 +209,11 @@ else
  17. systemd_CLEANFILES=
  18. endif
  19. +if XMLTO
  20. man_MANS= \
  21. man/system-config-printer.1 \
  22. man/system-config-printer-applet.1
  23. +endif
  24. dbus_DATA = \
  25. dbus/com.redhat.NewPrinterNotification.conf \
  26. @@ -274,7 +276,6 @@ EXTRA_DIST=\
  27. $(bin_SCRIPTS) \
  28. setup.py \
  29. $(EXPORT_MODULES) \
  30. - man/system-config-printer.xml \
  31. $(dbus_DATA) \
  32. $(dbusinterfaces_DATA) \
  33. $(dbusservices_DATA) \
  34. @@ -297,12 +298,16 @@ EXTRA_DIST=\
  35. test_PhysicalDevice.py \
  36. $(appdata_in_files)
  37. +if XMLTO
  38. +EXTRA_DIST+=man/system-config-printer.xml
  39. +
  40. # The man pages are generated from DocBook XML.
  41. .stamp-man-pages-built: $(top_srcdir)/man/system-config-printer.xml
  42. xmlto man -o man $<
  43. touch .stamp-man-pages-built
  44. $(man_MANS): .stamp-man-pages-built
  45. +endif
  46. html: $(EXPORT_MODULES) $(EXPORT_MODULES_GEN)
  47. rm -rf html
  48. diff --git a/configure.ac b/configure.ac
  49. index 811f897a..a2a66889 100644
  50. --- a/configure.ac
  51. +++ b/configure.ac
  52. @@ -75,6 +75,11 @@ if test "x$with_systemdsystemunitdir" != xno; then
  53. fi
  54. AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
  55. +AC_ARG_WITH(xmlto,
  56. + [AC_HELP_STRING([--with-xmlto],
  57. + [Enable xmlto manual generation @<:@default=yes@:>@])])
  58. +AM_CONDITIONAL([XMLTO], [test x$with_xmlto != xno])
  59. +
  60. ALL_LINGUAS="ar as ast bg bn_IN bn br bs ca cs cy da de el en_GB es et fa fi fr fur gu he hi hr hu id is it ja kn ko lt lv mai ml mr ms nb nds nl nn oc or pa pl pt_BR pt ro ru si sk sl sr@latin sr sv ta te th tr uk vi zh_CN zh_TW"
  61. AC_CONFIG_FILES([
  62. Makefile
  63. --
  64. 2.25.1