diff options
| author | Adam Vandenberg | 2013-01-19 16:22:06 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-19 16:22:06 -0800 |
| commit | 5114ab8409cd831d88e1d3250b2d8a740f8ae0e0 (patch) | |
| tree | 295f0b990fd37bb2787d3428ae95416d375f8ef7 /Library/Formula | |
| parent | 8af3754aef2904e1d587a1f7bdf48d0ccc361294 (diff) | |
| download | homebrew-5114ab8409cd831d88e1d3250b2d8a740f8ae0e0.tar.bz2 | |
apktool: hide aapt
appt conflicts with the android-sdk
Closes #16872.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/apktool.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Formula/apktool.rb b/Library/Formula/apktool.rb index 2ec4cdf57..cda900c5f 100644 --- a/Library/Formula/apktool.rb +++ b/Library/Formula/apktool.rb @@ -14,9 +14,15 @@ class Apktool < Formula libexec.install 'apktool.jar' ApktoolExecutables.new.brew do |f| - # Make apktool look for jar in libexec - inreplace 'apktool', /^libdir=.*$/, "libdir=\"#{libexec}\"" - bin.install 'aapt', 'apktool' + libexec.install 'aapt', 'apktool' end + + # Make apktool look for jar and aapkt in libexec + inreplace "#{libexec}/apktool" do |s| + s.gsub! /^libdir=.*$/, "libdir=\"#{libexec}\"" + s.gsub! "PATH=$PATH:`pwd`;", "PATH=$PATH:#{libexec};" + end + + bin.install_symlink libexec/'apktool' end end |
