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
|
|
|
|
macports_patches %w[
|
|
|
|
patch-examples_variant.c.diff
|
|
|
|
patch-src_Variant.c.diff
|
|
|
|
patch-Makefile.in.diff
|
|
|
|
patch-configure.in.diff
|
|
|
|
patch-src_Makefile.in.diff
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
lib.mkpath
|
|
|
|
system "autoreconf -fvi"
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def macports_patches(files)
|
|
|
|
{ :p0 => files.collect { |file| macports_patch_url('textproc', file) } }
|
|
|
|
end
|
|
|
|
|
|
|
|
def macports_patch_url(group, file)
|
|
|
|
template = 'http://svn.macports.org/repository/macports/trunk/dports/%s/%s/files/%s'
|
|
|
|
template % [group, name, file]
|
|
|
|
end
|
|
|
|
end
|