2010-03-06 08:10:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libsgml < Formula
|
2011-11-29 23:33:36 +00:00
|
|
|
url 'http://hick.org/code/skape/libsgml/libsgml-1.1.4.tar.gz'
|
|
|
|
homepage 'http://hick.org'
|
2010-03-06 08:10:36 +00:00
|
|
|
md5 'a3ba2f8c19faf1a53182d9c6fab22e58'
|
|
|
|
|
|
|
|
def patches
|
2012-01-23 01:07:39 +00:00
|
|
|
{ :p0 => [
|
|
|
|
"https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-examples_variant.c.diff",
|
|
|
|
"https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-src_Variant.c.diff",
|
|
|
|
"https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-Makefile.in.diff",
|
|
|
|
"https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-configure.in.diff",
|
|
|
|
"https://trac.macports.org/export/89276/trunk/dports/textproc/libsgml/files/patch-src_Makefile.in.diff"
|
|
|
|
] }
|
2010-03-06 08:10:36 +00:00
|
|
|
end
|
|
|
|
|
2012-02-29 01:44:13 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
|
|
|
# remove the autoreconf if possible, no comment provided about why it is there
|
|
|
|
# so we have no basis to make a decision at this point.
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2010-03-06 08:10:36 +00:00
|
|
|
def install
|
|
|
|
lib.mkpath
|
|
|
|
system "autoreconf -fvi"
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|