forked from adestefan/homebrew-headonly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockutil.rb
More file actions
26 lines (19 loc) · 652 Bytes
/
dockutil.rb
File metadata and controls
26 lines (19 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'formula'
class Dockutil < Formula
homepage 'https://github.com/kcrawford/dockutil'
head 'https://github.com/kcrawford/dockutil.git'
depends_on :python
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'
install_args = [ "setup.py", "install", "--prefix=#{libexec}" ]
resource('plistlib').stage { system "python", *install_args }
bin.install 'scripts/dockutil'
end
test do
`#{bin}/dockutil --version`
end
end