2010-05-17 21:19:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dia < Formula
|
2010-07-26 15:41:23 +00:00
|
|
|
homepage 'http://live.gnome.org/Dia'
|
2012-02-06 07:31:29 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/dia/0.97/dia-0.97.2.tar.xz'
|
|
|
|
sha256 'a761478fb98697f71b00d3041d7c267f3db4b94fe33ac07c689cb89c4fe5eae1'
|
2010-07-26 15:41:23 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-02-18 00:56:36 +00:00
|
|
|
depends_on 'xz' => :build
|
2010-05-17 21:19:05 +00:00
|
|
|
depends_on 'intltool'
|
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'pango'
|
|
|
|
depends_on 'libtiff'
|
|
|
|
depends_on 'gtk+'
|
|
|
|
|
|
|
|
def install
|
2012-02-01 20:10:13 +00:00
|
|
|
ENV.x11
|
2012-02-09 07:06:50 +00:00
|
|
|
# fix for Leopard, potentially others with isspecial defined elswhere
|
|
|
|
inreplace 'objects/GRAFCET/boolequation.c', 'isspecial', 'char_isspecial'
|
2012-02-06 07:31:29 +00:00
|
|
|
system "./configure", "--enable-debug=no",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-05-17 21:19:05 +00:00
|
|
|
system "make install"
|
2010-07-26 15:41:23 +00:00
|
|
|
rm_rf share+"applications"
|
2010-05-17 21:19:05 +00:00
|
|
|
end
|
|
|
|
end
|