e1bb919734
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm", to specifically message to the user when a formula is known or suspected to not build with LLVM. If the user specifies "--use-llvm", the message will be displayed, but compilation will be tried anyway. Since using LLVM is now an advanced/hidden feature instead of the default on 10.6, we'll let the user try anyway (and submit patches if things are now working.)
41 lines
1.1 KiB
Ruby
41 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
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",
|
|
"--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
|
|
end
|