diff options
| author | Adam Vandenberg | 2010-02-13 12:58:26 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-02-13 12:58:26 -0800 |
| commit | bd1a2774d86557906617c644d13bcf3983bc8654 (patch) | |
| tree | 16677df82cf516fa78db27d90d42896162001924 | |
| parent | 040f46f86a9dfff876caf85ede5817032e7d6bde (diff) | |
| download | homebrew-bd1a2774d86557906617c644d13bcf3983bc8654.tar.bz2 | |
Retired formulas for macfuse and sshfs.
The MacFUSE formula was an example of moving a very complex build system
into Homebrew. Unfortunately, this didn't play well with Snow Leopard.
The recommended way to install MacFUSE (and sshfs) is to install the
binaries from the project site:
http://code.google.com/p/macfuse/
| -rw-r--r-- | Library/Formula/macfuse.rb | 86 | ||||
| -rw-r--r-- | Library/Formula/sshfs.rb | 27 |
2 files changed, 0 insertions, 113 deletions
diff --git a/Library/Formula/macfuse.rb b/Library/Formula/macfuse.rb deleted file mode 100644 index b2d339cea..000000000 --- a/Library/Formula/macfuse.rb +++ /dev/null @@ -1,86 +0,0 @@ -require 'formula' - -def first_dir - Pathname.getwd.children.find { |d| d.directory? } -end - -class Macfuse <Formula - @head='http://macfuse.googlecode.com/svn/trunk/' - # This is the original project homepage, but we link to something more useful for OS X users - #@homepage='http://fuse.sourceforge.net/sshfs.html' - @homepage='http://code.google.com/p/macfuse/' - - def install - # the macfuse build system is sadly, shit. Like I know, Mac dev has more - # steps, especially when integrating with XcodeProj files. But still *I* - # would have done it properly. - # Anyway, I've reimplemented it so we get what we want. Sure this is more - # maintenance, but surely the point of something like Homebrew is we - # do it properly for you. Otherwise you may as well just install yourself! - - ENV.gcc_4_0_1 - - ENV['CFLAGS']="#{ENV['CFLAGS']} -arch i386" - ENV['CXXFLAGS']=ENV['CFLAGS'] - ENV['LDFLAGS']="#{ENV['LDFLAGS']} -arch i386" - - Dir.chdir 'core' do - Dir.chdir '10.5' do - Dir.chdir 'fusefs' do - $macfuse_version=`awk '/#define[ \t]*MACFUSE_VERSION_LITERAL/ {print $NF}' common/fuse_version.h`.strip - - system "xcodebuild -configuration Release -sdk macosx10.5 ARCHS=i386" - Dir.chdir 'build/Release' do - support=Pathname.getwd+'fusefs.fs'+'Support' - support.install 'fusefs.kext' - support.install 'load_fusefs' - support.install 'mount_fusefs' - (prefix+'Library'+'Filesystems').install 'fusefs.fs' - end - end - Dir.chdir 'libfuse' do - system "tar xf fuse-current.tar.gz" - Dir.chdir first_dir do - system "patch -p1 -i ../fuse-current-macosx.patch" - save=ENV['CFLAGS'] - ENV['CFLAGS']="#{save} -D__FreeBSD__=10 -D_POSIX_C_SOURCE=200112L -I#{File.expand_path '../../fusefs/common'} -framework CoreFoundation" - system "./configure --prefix=#{prefix} --disable-dependency-tracking --disable-static" - system "make install" - - # ffs what a build system! - Dir.chdir 'lib' do - system "make clean" - inreplace 'Makefile', 'libfuse', 'libfuse_ino64' - inreplace 'Makefile', '-D__FreeBSD__=10', '-D__DARWIN_64_BIT_INO_T=1 -D__FreeBSD__=10' - system "make install" - end - - ENV['CFLAGS']=save - - (Dir["#{lib}/*ulockmgr*"]+Dir["#{include}/*ulockmgr*"]).each {|f| File.unlink f} - end - end - end - Dir.chdir 'sdk-objc' do - inreplace 'MacFUSE.xcodeproj/project.pbxproj', '${MACFUSE_BUILD_ROOT}/usr/local', prefix - inreplace 'MacFUSE.xcodeproj/project.pbxproj', '$(MACFUSE_BUILD_ROOT)/usr/local', prefix - - %w[C Objective-C].each do |c| - inreplace "ProjectTemplates/#{c} Command Line File System/TemplateFS.xcodeproj/project.pbxproj", '/usr/local', prefix - end - system "xcodebuild -configuration Release -target MacFUSE-10.5 MACFUSE_BUNDLE_VERSION_LITERAL=#{$macfuse_version} ARCHS=i386" - (prefix+'Library'+'Frameworks').install Dir['build/Release/*.framework'] - end - end - end - - def caveats - <<-EOS -We seriously recommend installing the official MacFuse binary package -available here: http://code.google.com/p/macfuse/ - -If you still want to use Homebrew's compile you need to do additional steps. -And you absolutely should chown the kext files to root. - EOS - end -end diff --git a/Library/Formula/sshfs.rb b/Library/Formula/sshfs.rb deleted file mode 100644 index e05808a3d..000000000 --- a/Library/Formula/sshfs.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'formula' - -class Sshfs <Formula - url 'http://downloads.sourceforge.net/project/fuse/sshfs-fuse/2.2/sshfs-fuse-2.2.tar.gz' - # This is the original project homepage, but we link to something more useful for OS X users - #homepage 'http://fuse.sourceforge.net/sshfs.html' - homepage 'http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SSHFS' - md5 '26e9206eb5169e87e6f95f54bc005a4f' - - def patches - "http://macfuse.googlecode.com/svn/tags/macfuse-2.0.3|2/filesystems/sshfs/sshfs-fuse-2.2-macosx.patch" - end - - depends_on 'pkg-config' - depends_on 'glib' - depends_on 'macfuse' - - def install - # Steal compile flags from macfuse_buildtool.sh - # Except that those flags include "-DSSH_NODELAY_WORKAROUND" which causes a bogus - # warning message to be printed to the console, so cut out that crap. - ENV.append 'CFLAGS', "-D__FreeBSD__=10 -DDARWIN_SEMAPHORE_COMPAT" - system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" - system "make" - system "make install" - end -end |
