summaryrefslogtreecommitdiff
path: root/homebrew/mutt/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/mutt/.make.sh-auto')
-rw-r--r--homebrew/mutt/.make.sh-auto8
1 files changed, 8 insertions, 0 deletions
diff --git a/homebrew/mutt/.make.sh-auto b/homebrew/mutt/.make.sh-auto
new file mode 100644
index 000000000..0d60bd9d5
--- /dev/null
+++ b/homebrew/mutt/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+user_in_mail_group = Etc.getgrnam("mail").mem.include?(ENV["USER"])
+effective_group = Etc.getgrgid(Process.egid).name
+args = %W[--disable-dependency-tracking --disable-warnings --prefix=#{prefix} --enable-debug --enable-hcache --enable-imap --enable-pop --enable-sidebar --enable-smtp --with-gss --with-sasl --with-ssl=#{Formula["openssl"].opt_prefix} --with-tokyocabinet --enable-gpgme ]
+./prepare *args
+make
+unless user_in_mail_group
+inreplace "Makefile", /^DOTLOCK_GROUP =.*$/, "DOTLOCK_GROUP = #{effective_group}"