77defa9d0e
Closes Homebrew/homebrew#31735. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
39 lines
1.2 KiB
Ruby
39 lines
1.2 KiB
Ruby
require "formula"
|
|
|
|
class Ccm < Formula
|
|
homepage "https://github.com/pcmanus/ccm"
|
|
url "https://github.com/pcmanus/ccm/archive/ccm-1.1.tar.gz"
|
|
sha1 "cb216c633f04cf1821bfafa7d1c1a2e73444f20e"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "ac55457ea11b2c831affdaf892133ce4edea8f8f" => :mavericks
|
|
sha1 "de6894cdeb6067294f7dc184cd67acbda1727e44" => :mountain_lion
|
|
sha1 "7f7178f0b6901a756fbcddaa4450902bc5390dae" => :lion
|
|
end
|
|
|
|
head "https://github.com/pcmanus/ccm.git", :branch => :master
|
|
|
|
resource "pyyaml" do
|
|
url "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz"
|
|
sha1 "1a2d5df8b31124573efb9598ec6d54767f3c4cd4"
|
|
end
|
|
|
|
def install
|
|
resource("pyyaml").stage do
|
|
system "python", "setup.py", "install", "--prefix=#{libexec}"
|
|
end
|
|
|
|
system "python", "setup.py", "install", "--prefix=#{prefix}"
|
|
|
|
ENV["PYTHONPATH"] = "#{lib}/python2.7/site-packages"
|
|
ENV.prepend_create_path "PYTHONPATH", "#{libexec}/lib/python2.7/site-packages"
|
|
bin.env_script_all_files(libexec + "bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
end
|
|
|
|
test do
|
|
# We can't test CCM core functionality without a Cassandra node to talk to.
|
|
# Instead, just make sure it runs.
|
|
system "#{bin}/ccm -h 2>&1 | grep 'Usage:'"
|
|
end
|
|
end
|