diff options
Diffstat (limited to 'Library/Formula/vice.rb')
| -rw-r--r-- | Library/Formula/vice.rb | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Library/Formula/vice.rb b/Library/Formula/vice.rb index c9da2dee5..d62ab1f4e 100644 --- a/Library/Formula/vice.rb +++ b/Library/Formula/vice.rb @@ -4,37 +4,34 @@ class Vice <Formula url "http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.2.tar.gz" md5 "6737f540806205384e9129026898b0a1" homepage 'http://www.viceteam.org/' - + def remove_unused_icons Pathname.glob libexec+'*.app' do |d| appname = File.basename(d, '.app') - + Pathname.glob d+'Contents/Resources/x*.icns' do |g| File.unlink g if File.basename(g, '.icns') != appname end end end - + def install fails_with_llvm "Cannot build with LLVM" ENV.libpng # Disable the zlibtest, we know we have it. # Use Cocoa instead of X - system "./configure", "--prefix=#{prefix}", - "--disable-debug", - "--disable-dependency-tracking", + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", "--with-cocoa", "--without-x", "--disable-zlibtest" system "make" system "make bindist" - prefix.install Dir['vice-macosx-*/*'] - remove_unused_icons end - + def caveats "Cocoa apps for these emulators have been installed to #{prefix}." end |
