homebrew-core/Formula/ddar.rb

26 lines
754 B
Ruby
Raw Normal View History

require "formula"
class Ddar < Formula
homepage "http://www.synctus.com/ddar/"
url "https://github.com/basak/ddar/archive/v1.0.tar.gz"
sha1 "5f8b508f93031b1be217441b45fff27a6b630a49"
2014-09-20 05:03:19 +00:00
revision 1
head "https://github.com/basak/ddar.git"
depends_on "xmltoman" => :build
2014-06-17 13:10:22 +00:00
depends_on :python if MacOS.version <= :snow_leopard
depends_on "protobuf" => "with-python"
def install
system "make", "-f", "Makefile.prep", "pydist"
system "python", "setup.py", "install",
"--prefix=#{prefix}",
"--single-version-externally-managed",
"--record=installed.txt"
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
man1.install Dir["*.1"]
end
end