From 5dbbc6662d6041aab0c223c806aa6a7a51a1d4e5 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Tue, 26 May 2015 22:40:03 +0100 Subject: [PATCH] aescrypt-packetizer 3.10 Closes Homebrew/homebrew#40113. Signed-off-by: Baptiste Fontaine --- Formula/aescrypt-packetizer.rb | 40 +++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/Formula/aescrypt-packetizer.rb b/Formula/aescrypt-packetizer.rb index b3134991a4a..d2ea6e21e7b 100644 --- a/Formula/aescrypt-packetizer.rb +++ b/Formula/aescrypt-packetizer.rb @@ -1,9 +1,7 @@ -require "formula" - class AescryptPacketizer < Formula homepage "https://www.aescrypt.com" - url "https://www.aescrypt.com/download/v3/linux/aescrypt-3.0.9.tgz" - sha256 "3f3590f9b7e50039611ba9c0cf1cae1b188a44bd39cfc41553db7ec5709c0882" + url "https://www.aescrypt.com/download/v3/linux/aescrypt-3.10.tgz" + sha256 "153da7971cc3084610943dba44e0284848af72c06d019a3c913656f8c0ad48f1" bottle do cellar :any @@ -31,16 +29,16 @@ class AescryptPacketizer < Formula system "./configure", "prefix=#{prefix}", "--enable-iconv", "--disable-gui" system "make", "install" - end + else + cd "src" do + # https://www.aescrypt.com/mac_aes_crypt.html + inreplace "Makefile", "#LIBS=-liconv", "LIBS=-liconv" + system "make" - if build.stable? - cd "src" - # https://www.aescrypt.com/mac_aes_crypt.html - inreplace "Makefile", "#LIBS=-liconv", "LIBS=-liconv" - system "make", "prefix=#{prefix}" - - bin.install "aescrypt" - bin.install "aescrypt_keygen" + bin.install "aescrypt" + bin.install "aescrypt_keygen" + end + man1.install "man/aescrypt.1" end # To prevent conflict with our other aescrypt, rename the binaries. @@ -50,11 +48,17 @@ class AescryptPacketizer < Formula end end - def caveats; <<-EOS.undent - To avoid conflicting with our other AESCrypt package the binaries - have been renamed paescrypt and paescrypt_keygen, unless you chose - to exercise the default-names option. - EOS + def caveats + s = "" + + if build.without? "default-names" + s += <<-EOS.undent + To avoid conflicting with our other AESCrypt package the binaries + have been renamed paescrypt and paescrypt_keygen. + EOS + end + + s end test do