2014-05-04 18:55:17 +00:00
|
|
|
class Vit < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Front-end for Task Warrior"
|
2014-05-04 18:55:17 +00:00
|
|
|
homepage "http://taskwarrior.org/news/news.20140406.html"
|
2014-05-17 19:00:53 +00:00
|
|
|
head "https://git.tasktools.org/scm/ex/vit.git"
|
2014-05-04 18:55:17 +00:00
|
|
|
url "http://taskwarrior.org/download/vit-1.2.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "a78dee573130c8d6bc92cf60fafac0abc78dd2109acfba587cb0ae202ea5bbd0"
|
2014-07-15 22:17:18 +00:00
|
|
|
revision 1
|
2014-05-04 18:55:17 +00:00
|
|
|
|
|
|
|
depends_on "task"
|
|
|
|
|
|
|
|
resource "Curses" do
|
2014-07-04 19:53:42 +00:00
|
|
|
url "http://cpan.metacpan.org/authors/id/G/GI/GIRAFFED/Curses-1.31.tgz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "7bb4623ac97125c85e25f9fbf980103da7ca51c029f704f0aa129b7a2e50a27a"
|
2014-05-04 18:55:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.prepend_create_path "PERL5LIB", libexec+"lib/perl5"
|
|
|
|
|
|
|
|
resource("Curses").stage do
|
|
|
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "build"
|
2014-05-04 18:55:17 +00:00
|
|
|
|
|
|
|
bin.install "vit"
|
|
|
|
man1.install "vit.1"
|
|
|
|
man5.install "vitrc.5"
|
2014-07-15 22:17:18 +00:00
|
|
|
# vit-commands needs to be installed in the keg because that's where vit
|
|
|
|
# will look for it.
|
|
|
|
(prefix+"etc").install "commands" => "vit-commands"
|
2014-05-04 18:55:17 +00:00
|
|
|
bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"])
|
|
|
|
end
|
|
|
|
end
|