enscript-1.6.4-config.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --- enscript-1.6.4/afm/Makefile.am.config 2003-03-05 07:26:16.000000000 +0000
  2. +++ enscript-1.6.4/afm/Makefile.am 2005-12-23 09:56:52.000000000 +0000
  3. @@ -36,11 +36,11 @@
  4. EXTRA_DIST = font.map $(default_afm) $(public_fonts)
  5. install-data-local:
  6. - $(top_srcdir)/mkinstalldirs $(datadir)/enscript
  7. - $(top_srcdir)/mkinstalldirs $(datadir)/enscript/afm
  8. + $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir)/enscript
  9. + $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir)/enscript/afm
  10. for f in $(EXTRA_DIST); do \
  11. - $(INSTALL_DATA) $(srcdir)/$$f $(datadir)/enscript/afm/$$f; \
  12. + $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)/$(datadir)/enscript/afm/$$f; \
  13. done
  14. uninstall-local:
  15. - rm -rf $(datadir)/enscript/afm
  16. + rm -rf $(DESTDIR)/$(datadir)/enscript/afm
  17. --- enscript-1.6.4/afm/Makefile.in.config 2003-03-05 07:40:06.000000000 +0000
  18. +++ enscript-1.6.4/afm/Makefile.in 2005-12-23 09:56:52.000000000 +0000
  19. @@ -319,14 +319,14 @@
  20. install-data-local:
  21. - $(top_srcdir)/mkinstalldirs $(datadir)/enscript
  22. - $(top_srcdir)/mkinstalldirs $(datadir)/enscript/afm
  23. + $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir)/enscript
  24. + $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir)/enscript/afm
  25. for f in $(EXTRA_DIST); do \
  26. - $(INSTALL_DATA) $(srcdir)/$$f $(datadir)/enscript/afm/$$f; \
  27. + $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)/$(datadir)/enscript/afm/$$f; \
  28. done
  29. uninstall-local:
  30. - rm -rf $(datadir)/enscript/afm
  31. + rm -rf $(DESTDIR)/$(datadir)/enscript/afm
  32. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  33. # Otherwise a system limit (for SysV at least) may be exceeded.
  34. .NOEXPORT:
  35. --- enscript-1.6.4/lib/Makefile.in.config 2003-03-05 07:40:07.000000000 +0000
  36. +++ enscript-1.6.4/lib/Makefile.in 2005-12-23 09:56:52.000000000 +0000
  37. @@ -345,15 +345,16 @@
  38. all-local: enscript.cfg
  39. install-data-local: enscript.cfg
  40. - $(top_srcdir)/mkinstalldirs $(sysconfdir)
  41. - if test -r $(sysconfdir)/enscript.cfg; then \
  42. - cp $(sysconfdir)/enscript.cfg $(sysconfdir)/enscript.cfg.old; \
  43. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
  44. + if test -r $(DESTDIR)$(sysconfdir)/enscript.cfg; then \
  45. + cp $(DESTDIR)$(sysconfdir)/enscript.cfg \
  46. + $(DESTDIR)$(sysconfdir)/enscript.cfg.old; \
  47. else :; \
  48. fi
  49. - $(INSTALL_DATA) enscript.cfg $(sysconfdir)/enscript.cfg
  50. + $(INSTALL_DATA) enscript.cfg $(DESTDIR)$(sysconfdir)/enscript.cfg
  51. uninstall-local:
  52. - rm -f $(sysconfdir)/enscript.cfg
  53. + rm -f $(DESTDIR)$(sysconfdir)/enscript.cfg
  54. enscript.cfg: $(srcdir)/enscript.cfg.in Makefile
  55. sed 's%@DATADIR@%$(datadir)%g; s%@media@%@MEDIA@%g; s%@BINDIR@%$(bindir)%g; s%@spooler@%@SPOOLER@%g; s%@pslevel@%@PSLEVEL@%g' \
  56. --- enscript-1.6.4/states/hl/Makefile.am.config 2005-12-23 09:59:55.000000000 +0000
  57. +++ enscript-1.6.4/states/hl/Makefile.am 2005-12-23 10:00:09.000000000 +0000
  58. @@ -45,10 +45,10 @@
  59. EXTRA_DIST = $(states)
  60. install-data-local:
  61. - $(top_srcdir)/mkinstalldirs $(datadir)/enscript
  62. - $(top_srcdir)/mkinstalldirs $(datadir)/enscript/hl
  63. + $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir)/enscript
  64. + $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir)/enscript/hl
  65. for f in $(states); do \
  66. - $(INSTALL_DATA) $(srcdir)/$$f $(datadir)/enscript/hl/$$f; \
  67. + $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)/$(datadir)/enscript/hl/$$f; \
  68. done
  69. uninstall-local:
  70. --- enscript-1.6.4/states/hl/Makefile.in.config 2005-12-23 10:00:13.000000000 +0000
  71. +++ enscript-1.6.4/states/hl/Makefile.in 2005-12-23 10:00:34.000000000 +0000
  72. @@ -330,10 +330,10 @@
  73. install-data-local:
  74. - $(top_srcdir)/mkinstalldirs $(datadir)/enscript
  75. - $(top_srcdir)/mkinstalldirs $(datadir)/enscript/hl
  76. + $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir)/enscript
  77. + $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir)/enscript/hl
  78. for f in $(states); do \
  79. - $(INSTALL_DATA) $(srcdir)/$$f $(datadir)/enscript/hl/$$f; \
  80. + $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)/$(datadir)/enscript/hl/$$f; \
  81. done
  82. uninstall-local: