homebrew-core/Formula/vice.rb

41 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Vice < Formula
url "http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.3.tar.gz"
sha1 '5e7e1a375a4ca8c4895dc1552162955fdffce296'
homepage 'http://vice-emu.sourceforge.net/'
depends_on 'jpeg'
depends_on :libpng
2009-11-22 03:59:59 +00:00
def remove_unused_icons
Pathname.glob libexec+'*.app' do |d|
appname = File.basename(d, '.app')
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
end
fails_with :llvm do
build 2335
end
def install
# Use Cocoa instead of X
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-cocoa",
"--without-x"
system "make"
system "make bindist"
prefix.install Dir['vice-macosx-*/*']
2009-11-22 03:59:59 +00:00
remove_unused_icons
end
def caveats
"Cocoa apps for these emulators have been installed to #{prefix}."
end
end