homebrew-core/Formula/libopkele.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

34 lines
825 B
Ruby

require 'formula'
class Libopkele < Formula
homepage 'http://kin.klever.net/libopkele/'
stable do
url "http://kin.klever.net/dist/libopkele-2.0.4.tar.bz2"
sha1 "0c403d118efe6b4ee4830914448078c0ee967757"
patch do
url "https://github.com/hacker/libopkele/commit/9ff6244998b0d41e71f7cc7351403ad590e990e4.diff"
sha1 "dd86d5a493a54f57ac3bc842878cba5c6608aa7e"
end
end
head do
url 'https://github.com/hacker/libopkele.git'
depends_on :autoconf
depends_on :automake
depends_on :libtool
end
depends_on 'pkg-config' => :build
def install
system "./autogen.bash" if build.head?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end