2012-07-24 12:24:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libspiro < Formula
|
2013-09-16 01:16:08 +00:00
|
|
|
homepage 'https://github.com/fontforge/libspiro'
|
2012-07-24 12:24:04 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/libspiro/libspiro/20071029/libspiro_src-20071029.tar.bz2'
|
|
|
|
sha1 'd8b407b835b35289af2914877a4c6000b4fdd382'
|
|
|
|
|
2013-09-22 01:47:17 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/fontforge/libspiro.git'
|
2013-09-16 01:16:08 +00:00
|
|
|
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
2012-07-24 12:24:04 +00:00
|
|
|
|
|
|
|
def install
|
2013-09-16 01:16:08 +00:00
|
|
|
if build.head?
|
|
|
|
system "autoreconf", "-i"
|
|
|
|
system "automake"
|
|
|
|
end
|
|
|
|
|
2012-07-24 12:24:04 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|