aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2011-12-15 22:26:01 -0800
committerAdam Vandenberg2011-12-15 22:26:01 -0800
commit002e12f80b1ca5baa7072ece062d377ed8021242 (patch)
treee2d2dd44831914ae5e15d0feb20bf928ac331a66 /Library/Formula
parent70701e8beac753c1b10aba9fd2d5d1e951a09a1d (diff)
downloadhomebrew-002e12f80b1ca5baa7072ece062d377ed8021242.tar.bz2
d-bus: fix use of man2html
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/d-bus.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/d-bus.rb b/Library/Formula/d-bus.rb
index 86643aa6f..0711a3995 100644
--- a/Library/Formula/d-bus.rb
+++ b/Library/Formula/d-bus.rb
@@ -10,6 +10,14 @@ class DBus < Formula
skip_clean "etc/dbus-1/system.d"
skip_clean "var/run/dbus"
+ # man2html needs to be piped the input instead of given a filename. See:
+ # http://forums.freebsd.org/archive/index.php/t-20529.html
+ # https://github.com/mxcl/homebrew/issues/8978
+ # Otherwise, if man2html is installed the build will hang.
+ def patches
+ DATA
+ end
+
def install
# Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols
ENV["TMPDIR"] = "/tmp"
@@ -44,3 +52,18 @@ class DBus < Formula
EOS
end
end
+
+__END__
+diff --git a/doc/Makefile.in b/doc/Makefile.in
+index 45e1062..d79c018 100644
+--- a/doc/Makefile.in
++++ b/doc/Makefile.in
+@@ -728,7 +728,7 @@ uninstall-man: uninstall-man1
+ @DBUS_DOXYGEN_DOCS_ENABLED_TRUE@ rmdir $(DESTDIR)$(apidir)
+
+ @DBUS_HAVE_MAN2HTML_TRUE@%.1.html: %.1
+-@DBUS_HAVE_MAN2HTML_TRUE@ $(AM_V_GEN)( $(MAN2HTML) $< > $@.tmp && mv $@.tmp $@ )
++@DBUS_HAVE_MAN2HTML_TRUE@ $(AM_V_GEN)( $(MAN2HTML) < $< > $@.tmp && mv $@.tmp $@ )
+
+ @DBUS_CAN_UPLOAD_DOCS_TRUE@dbus-docs: $(STATIC_DOCS) $(dist_doc_DATA) $(dist_html_DATA) $(MAN_HTML_FILES) $(BONUS_FILES) doxygen.stamp
+ @DBUS_CAN_UPLOAD_DOCS_TRUE@ $(AM_V_at)rm -rf $@ $@.tmp