homebrew-core/Formula/calcurse.rb
Steven Peters a649d9b4ec Use .diff instead of .patch for github commit sourced patches
This modifies multiple formulae in a single commit, replacing
the patch suffix with diff per Homebrew/homebrew#28315. I used the following
command:
~~~
sed -i -e 's@patch"$@diff"@' `grep -rlI 'commit.*patch"$' .`
~~~
The patch shasums are then computed using:
~~~
brew fetch --build-from-source `git st | sed -e 's@^ M@@'`
~~~
and manually updated.

Fixes Homebrew/homebrew#28315.
Fixes Homebrew/homebrew#28335.
Closes Homebrew/homebrew#28339.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-11 20:53:22 -05:00

21 lines
600 B
Ruby

require 'formula'
class Calcurse < Formula
homepage 'http://calcurse.org/'
url 'http://calcurse.org/files/calcurse-3.1.4.tar.gz'
sha1 '5cf0cc458d6508d38aa57a12170499449f09bfd2'
depends_on 'gettext'
# Patch sent upstream: https://github.com/cryptocrack/calcurse/pull/1
patch do
url "https://github.com/jacknagel/calcurse/commit/86dd23f87bcbb32a69f5f0391439238d4e389d77.diff"
sha1 "d9a1036c230e6c8a4702c7a05da6277bac9c4a31"
end
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make"
system "make install"
end
end