aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-10-26 22:51:36 -0500
committerJack Nagel2014-10-26 22:52:32 -0500
commit509fe80731218c0b8d49dee1d5906a54f07e13fe (patch)
tree8e21b776086d62ad18d59ea1496d4b42f67d8eab
parent04604e9739e623a2712f2a9eb5f9ab3b19123fa7 (diff)
downloadhomebrew-509fe80731218c0b8d49dee1d5906a54f07e13fe.tar.bz2
global: fewer conditional DSL elements, no load-time output
-rw-r--r--Library/Formula/global.rb22
1 files changed, 7 insertions, 15 deletions
diff --git a/Library/Formula/global.rb b/Library/Formula/global.rb
index 73280fd4a..da387c817 100644
--- a/Library/Formula/global.rb
+++ b/Library/Formula/global.rb
@@ -23,21 +23,13 @@ class Global < Formula
option "with-exuberant-ctags", "Enable Exuberant Ctags as a plug-in parser"
option "with-pygments", "Enable Pygments as a plug-in parser (should enable exuberent-ctags too)"
- if build.with? "exuberant-ctags"
- depends_on "ctags"
- skip_clean "lib/gtags/exuberant-ctags.la"
- end
+ depends_on "ctags" if build.with? "exuberant-ctags"
- if build.with? "pygments"
- if build.without? "exuberant-ctags"
- opoo "suggest --with-exuberant-ctags as pygments parser symbol only without"
- "to create definition and reference tags without it all tags will be symbols"
- end
- resource 'pygments' do
- url "https://pypi.python.org/packages/source/P/Pygments/Pygments-1.6.tar.gz"
- sha1 "53d831b83b1e4d4f16fec604057e70519f9f02fb"
- end
- skip_clean "lib/gtags/pygments-parser.la"
+ skip_clean "lib/gtags"
+
+ resource "pygments" do
+ url "https://pypi.python.org/packages/source/P/Pygments/Pygments-1.6.tar.gz"
+ sha1 "53d831b83b1e4d4f16fec604057e70519f9f02fb"
end
def install
@@ -50,7 +42,7 @@ class Global < Formula
]
if build.with? "exuberant-ctags"
- args << "--with-exuberant-ctags=#{HOMEBREW_PREFIX}/bin/ctags"
+ args << "--with-exuberant-ctags=#{Formula["ctags"].opt_bin}/ctags"
end
if build.with? "pygments"