aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-29 23:01:14 -0700
committerMax Howell2009-09-30 18:06:33 +0100
commit1faae0ee2c8037dbe0fbfd6c5db56e1cf5c582ae (patch)
tree6a427ad1d3ace553c0f82c250ad777293a101773 /Library
parentc705812ba138200510ea8f3f84a5d5091ea5c4c2 (diff)
downloadhomebrew-1faae0ee2c8037dbe0fbfd6c5db56e1cf5c582ae.tar.bz2
Update Vice formula.
Trim about 7 MB from Vice by deleting extraneous icons from each of the .app bundles. Each .app bundle only needs the x*.icns icon that corresponds to it.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/vice.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/vice.rb b/Library/Formula/vice.rb
index 66fb31778..30a003f44 100644
--- a/Library/Formula/vice.rb
+++ b/Library/Formula/vice.rb
@@ -37,6 +37,19 @@ class Vice <Formula
# We could trim down the .app sizes a bit more if we only kept
# the proper .icns files in the proper .app bundles...
+ Pathname.glob libexec+'*.app' do |d|
+ appname = File.basename(d, '.app')
+
+ Pathname.glob d+'Contents/Resources/x*.icns' do |g|
+ if File.basename(g, '.icns') != appname
+ File.unlink g
+ end
+ end
+ end
+
+ # A better approach to the above would be to modify the
+ # make-bindist.sh script to not copy extraneous icons
+ # in the first place.
end
def caveats