diff options
| author | Eugene San (eugenesan) | 2014-08-23 16:20:02 +0300 |
|---|---|---|
| committer | Jack Nagel | 2014-08-27 19:51:34 -0500 |
| commit | 6f3262d02446afdeca718b3b27a6e4fff2de5ee0 (patch) | |
| tree | 656130b86387dd7b6f4ddbc3185f2ad8b8ab1ef6 /Library/Formula/encfs.rb | |
| parent | d6880b25526feeaadf60e6e704ab43a397a451cb (diff) | |
| download | homebrew-6f3262d02446afdeca718b3b27a6e4fff2de5ee0.tar.bz2 | |
encfs: upstream relocation and update to 1.7.5
Closes #31823.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/encfs.rb')
| -rw-r--r-- | Library/Formula/encfs.rb | 57 |
1 files changed, 25 insertions, 32 deletions
diff --git a/Library/Formula/encfs.rb b/Library/Formula/encfs.rb index 2ac5a4d81..e261d5b41 100644 --- a/Library/Formula/encfs.rb +++ b/Library/Formula/encfs.rb @@ -1,51 +1,44 @@ require 'formula' class Encfs < Formula - homepage 'http://www.arg0.net/encfs' - - depends_on 'pkg-config' => :build - depends_on 'gettext' - depends_on 'boost' - depends_on 'rlog' - depends_on 'osxfuse' + homepage 'https://vgough.github.io/encfs/' stable do - url 'https://encfs.googlecode.com/files/encfs-1.7.4.tgz' - sha1 '3d824ba188dbaabdc9e36621afb72c651e6e2945' + url 'https://github.com/vgough/encfs/archive/v1.7.5.tar.gz' + sha1 'f8bb2332b7a88f510cd9a18adb0f4fb903283edd' - # Following patch and changes in install section, - # required for better compatibility with OSX, especially OSX 10.9. - # Changes are already in usptream and planned to be included in next stable release 1.75. - # For more details refer to: - # https://code.google.com/p/encfs/issues/detail?id=185#c10 - # Fixes link times and xattr on links for OSX + # Fix link times and xattr on links for OSX + # Proper fix is already in upstream/dev patch :DATA end - head do - url 'https://encfs.googlecode.com/svn/branches/1.x' + head 'https://github.com/vgough/encfs.git' - depends_on 'autoconf' => :build - depends_on 'automake' => :build - depends_on 'libtool' => :build - 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' def install - # Add correct flags for linkage with {osx,}fuse and gettext libs - gettext = Formula['gettext'] - ENV.append 'CPPFLAGS', %x[pkg-config fuse --cflags].chomp + "-I#{gettext.include}" - ENV.append 'LDFLAGS', %x[pkg-config fuse --libs].chomp + "-L#{gettext.lib}" - if build.stable? - inreplace "configure", "-lfuse", "-losxfuse" - end - + # Fix linkage with gettext libs + # Proper fix is already in upstream/master # Adapt to changes in recent Xcode by making local copy of endian-ness definitions mkdir "encfs/sys" cp "#{MacOS.sdk_path}/usr/include/sys/_endian.h", "encfs/sys/endian.h" if build.stable? + inreplace "configure.ac", "LIBINTL=-lgettextlib", "LIBINTL=-lgettextlib -lintl" + # Fix runtime "dyld: Symbol not found" errors - # Following 3 ugly inreplaces come instead of big patch + # Following 3 ugly inreplaces are temporary solution + # Proper fix is already in upstream inreplace ["encfs/Cipher.cpp", "encfs/CipherFileIO.cpp", "encfs/NullCipher.cpp", "encfs/NullNameIO.cpp", "encfs/SSL_Cipher.cpp"], "using boost::shared_ptr;", "" @@ -57,9 +50,9 @@ class Encfs < Formula "encfs/SSL_Cipher.cpp", "encfs/StreamNameIO.cpp", "encfs/test.cpp"], "shared_ptr<", "boost::shared_ptr<" inreplace ["encfs/Context.cpp", "encfs/encfsctl.cpp", "encfs/FileUtils.cpp"], "boost::boost::shared_ptr<", "boost::shared_ptr<" - else - system "make", "-f", "Makefile.dist" end + + system "make", "-f", "Makefile.dist" system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-boost=#{HOMEBREW_PREFIX}" |
