homebrew-core/Formula/encfs.rb
Juraj Bednar d4c8688a10 encfs 1.8
Update to latest encfs. It already contains many fixes that were
patched here manually. Also removed patch to path to osxfuse, new
configure contains the right path already.

Closes Homebrew/homebrew#37974.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-23 18:01:11 +00:00

52 lines
1.4 KiB
Ruby

require 'formula'
class Encfs < Formula
homepage 'https://vgough.github.io/encfs/'
stable do
url 'https://github.com/vgough/encfs/archive/v1.8.tar.gz'
sha1 'f3723aa7ba64ad3fc6087dba6c26bf6d54762085'
end
head 'https://github.com/vgough/encfs.git'
bottle do
sha1 "4e09e41ac19b52a14ea58644d6a3fcb61fdaea64" => :mavericks
sha1 "ef7ea8cb89515be5e19b45a0af8704e65acbb150" => :mountain_lion
sha1 "559bbec86eb4176fad7cb28368cc462f6470157f" => :lion
end
depends_on 'pkg-config' => :build
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'intltool' => :build
depends_on 'gettext' => :build
depends_on 'boost'
depends_on 'rlog'
depends_on 'openssl'
depends_on :osxfuse
depends_on 'xz'
needs :cxx11
def install
ENV.cxx11
system "make", "-f", "Makefile.dist"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-boost=#{HOMEBREW_PREFIX}"
system "make"
system "make install"
end
test do
if Pathname.new("/Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs").exist?
(testpath/"print-password").write("#!/bin/sh\necho password")
chmod 0755, testpath/"print-password"
system "yes | #{bin}/encfs --standard --extpass=#{testpath}/print-password #{testpath}/a #{testpath}/b"
system "umount", testpath/"b"
end
end
end