homebrew-core/Formula/atdtool.rb
Mike McQuaid 7f000e41f8 formulae: don't use GitHub zip files.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-08 00:54:35 +00:00

22 lines
625 B
Ruby

require 'formula'
class Atdtool < Formula
homepage 'https://github.com/lpenz/atdtool'
url 'https://github.com/lpenz/atdtool/archive/upstream/1.3.tar.gz'
sha1 '0e6ac49a106912f010f3cb71dec59ef5c29ad108'
depends_on :python
depends_on 'txt2tags' => :build
def install
# Change the PREFIX to match the homebrew one, since there is no way to
# pass it as an option for now edit the Makefile
# https://github.com/lpenz/atdtool/pull/8
inreplace 'Makefile', "PREFIX=/usr/local", "PREFIX=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/atdtool", "#{prefix}/AUTHORS"
end
end