diff options
| author | James Hart | 2013-12-08 09:53:22 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-08 13:18:47 -0700 |
| commit | 9f5b62178b9ceb27f97de907ef2e22b5a60dd9d2 (patch) | |
| tree | 48560093a247cc92ae5973dbb158cef482b0c0a9 /Library | |
| parent | ddd2eabef199a4b3ba10af8464bd39848b76fcf3 (diff) | |
| download | homebrew-9f5b62178b9ceb27f97de907ef2e22b5a60dd9d2.tar.bz2 | |
Added formula for dockutil 2.0.0
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/dockutil.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/dockutil.rb b/Library/Formula/dockutil.rb new file mode 100644 index 000000000..4e88e635d --- /dev/null +++ b/Library/Formula/dockutil.rb @@ -0,0 +1,26 @@ +require "formula" + +class Dockutil < Formula + homepage "https://github.com/kcrawford/dockutil" + url "https://github.com/kcrawford/dockutil/archive/2.0.0.tar.gz" + sha1 "8b027a0b1559f12a1c97b4a0bfcadd1566d6e6ba" + + depends_on :python if MacOS.version <= :snow_leopard + + resource "plistlib" do + url "https://pypi.python.org/packages/source/p/plist/plist-0.2.tar.gz" + sha1 "eac8a0d71a20515f955101429101b3b9f445f809" + end + + def install + ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages' + + resource("plistlib").stage { system "python", "setup.py", "install", "--prefix=#{libexec}" } + + bin.install "scripts/dockutil" + end + + test do + assert_equal "2.0.0", `#{bin}/dockutil --version`.strip + end +end |
