diff --git a/Formula/tup.rb b/Formula/tup.rb new file mode 100644 index 0000000000..0b73651678 --- /dev/null +++ b/Formula/tup.rb @@ -0,0 +1,23 @@ +class Tup < Formula + desc "File-based build system" + homepage "http://gittup.org/tup/" + url "https://github.com/gittup/tup/archive/v0.7.5.tar.gz" + sha256 "361b3e069308ce1d9505d1cb927999ac448811a3425c724123e0c48602a9d1e4" + head "https://github.com/gittup/tup.git" + + depends_on "pkg-config" => :build + depends_on :osxfuse + + def install + ENV["TUP_LABEL"] = version + system "./build.sh" + bin.install "build/tup" + man1.install "tup.1" + doc.install (buildpath/"docs").children + pkgshare.install "contrib/syntax" + end + + test do + system "#{bin}/tup", "-v" + end +end