Skip to content

Instantly share code, notes, and snippets.

@clarete
Created November 4, 2012 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save clarete/4012731 to your computer and use it in GitHub Desktop.
Save clarete/4012731 to your computer and use it in GitHub Desktop.
Brew formula for the iksmel library
require 'formula'
class Iksemel < Formula
homepage 'http://code.google.com/p/iksemel/'
url 'https://code.google.com/p/iksemel.git', :revision => '978b733462e41efd5db72bc9974cb3b0d1d5f6fa'
version '1.5'
depends_on 'libtool' => :build
depends_on 'gnutls'
def patches
DATA
end
def install
args = [
"--disable-python", "--prefix=#{prefix}", "--mandir=#{man}"
]
system "./autogen.sh"
system "./configure", *args
system "make install"
end
end
__END__
diff --git a/autogen.sh b/autogen.sh
index 35e8e65..ce6a4ac 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,7 +18,7 @@
exit 1
}
-(libtool --version) < /dev/null > /dev/null 2>&1 || {
+(glibtool --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "Error: You must have 'libtool' installed on your system in order"
echo " to generate a configure script."
@@ -47,7 +47,7 @@
srcdir=`dirname $0`
echo "Running libtoolize..."
-libtoolize --copy --force --automake
+glibtoolize --copy --force --automake
echo "Running aclocal..."
aclocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment