2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-23 19:06:17 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Vice < Formula
|
2012-01-04 11:26:53 +00:00
|
|
|
url "http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.3.tar.gz"
|
|
|
|
md5 "b48d137874daad50c087a0686cbdde34"
|
|
|
|
homepage 'http://vice-emu.sourceforge.net/'
|
|
|
|
|
|
|
|
depends_on 'jpeg'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-11-22 03:59:59 +00:00
|
|
|
def remove_unused_icons
|
|
|
|
Pathname.glob libexec+'*.app' do |d|
|
|
|
|
appname = File.basename(d, '.app')
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-11-22 03:59:59 +00:00
|
|
|
Pathname.glob d+'Contents/Resources/x*.icns' do |g|
|
|
|
|
File.unlink g if File.basename(g, '.icns') != appname
|
|
|
|
end
|
|
|
|
end
|
2009-09-23 19:06:17 +00:00
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-01-04 11:26:53 +00:00
|
|
|
fails_with_llvm :build => 2335
|
2011-10-15 04:36:38 +00:00
|
|
|
|
2009-09-23 19:06:17 +00:00
|
|
|
def install
|
|
|
|
ENV.libpng
|
|
|
|
|
|
|
|
# Use Cocoa instead of X
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2009-09-23 19:06:17 +00:00
|
|
|
"--with-cocoa",
|
2012-01-04 11:26:53 +00:00
|
|
|
"--without-x"
|
2009-09-23 19:06:17 +00:00
|
|
|
system "make"
|
|
|
|
system "make bindist"
|
2010-06-09 20:53:04 +00:00
|
|
|
prefix.install Dir['vice-macosx-*/*']
|
2009-11-22 03:59:59 +00:00
|
|
|
remove_unused_icons
|
2009-09-23 19:06:17 +00:00
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-09-23 19:06:17 +00:00
|
|
|
def caveats
|
2010-06-09 20:53:04 +00:00
|
|
|
"Cocoa apps for these emulators have been installed to #{prefix}."
|
2009-09-23 19:06:17 +00:00
|
|
|
end
|
|
|
|
end
|