更新
这个答案已经有点过时了。值得庆幸的是,有些人创建了一些自制水龙头来为我们解决这个问题并使其变得更加简单。您现在所要做的就是:
brew uninstall mutt
brew tap sgeb/mutt
brew install sgeb/mutt/mutt --with-sidebar-patch
如果你想安装 mutt 和其他一些补丁,看看你可以用这个水龙头安装什么,输入:
brew options sgeb/mutt/mutt
我的输出是:
--with-confirm-attachment-patch
Apply confirm attachment patch
--with-debug
Build with debug option enabled
--with-forwref-patch
Apply forward_references patch
--with-gettext
Build with gettext support
--with-gmail-labels-patch
Apply gmail labels patch
--with-gmail-server-search-patch
Apply gmail server search patch
--with-gpgme
Build with gpgme support
--with-ignore-thread-patch
Apply ignore-thread patch
--with-libidn
Build with libidn support
--with-pgp-verbose-mime-patch
Apply PGP verbose mime patch
--with-s-lang
Build against slang instead of ncurses
--with-sidebar-patch
Apply sidebar patch
--with-trash-patch
Apply trash folder patch
--HEAD
Install HEAD version
我在遵循上述所有答案时遇到了问题。我确实设法让它最终工作。我所做的是以下
brew edit mutt
然后我向下滚动到所有以“选项”开头的命令部分,有点像:
option "with-debug", "Build with debug option enabled"
option "with-trash-patch", "Apply trash folder patch"
option "with-s-lang", "Build against slang instead of ncurses"
option "with-ignore-thread-patch", "Apply ignore-thread patch"
option "with-pgp-verbose-mime-patch", "Apply PGP verbose mime patch"
option "with-confirm-attachment-patch", "Apply confirm attachment patch"
然后我在这个块的底部添加了一行
option "with-sidebar-patch", "Apply sidebar patch"
之后,我进一步向下滚动到包含所有补丁的部分,例如
patch do
url "http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-6.2+deb7u1/features/trash-folder"
sha1 "6c8ce66021d89a063e67975a3730215c20cf2859"
end if build.with? "trash-patch"
我添加了侧边栏的补丁(我在这里找到:https ://github.com/kevwil/homebrew-patches/blob/master/mutt.rb )
patch do
url "https://raw.github.com/nedos/mutt-sidebar-patch/7ba0d8db829fe54c4940a7471ac2ebc2283ecb15/mutt-sidebar.patch"
sha1 "1e151d4ff3ce83d635cf794acf0c781e1b748ff1"
end if build.with? "sidebar-patch"
最后,退出 brew 文件的编辑器并在命令行中:
brew install mutt --with-sidebar-patch
祝你好运!
ps如果它给你一个表单错误aclocal
那么你需要安装automake,brew install automake