aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-19 16:22:06 -0800
committerAdam Vandenberg2013-01-19 16:22:06 -0800
commit5114ab8409cd831d88e1d3250b2d8a740f8ae0e0 (patch)
tree295f0b990fd37bb2787d3428ae95416d375f8ef7 /Library
parent8af3754aef2904e1d587a1f7bdf48d0ccc361294 (diff)
downloadhomebrew-5114ab8409cd831d88e1d3250b2d8a740f8ae0e0.tar.bz2
apktool: hide aapt
appt conflicts with the android-sdk Closes #16872.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/apktool.rb12
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