blob: 1d6437f3b1921a57f926e700af9652c449f03a00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
require 'formula'
class Dia < Formula
homepage 'http://live.gnome.org/Dia'
url 'http://ftp.gnome.org/pub/gnome/sources/dia/0.97/dia-0.97.2.tar.xz'
sha256 'a761478fb98697f71b00d3041d7c267f3db4b94fe33ac07c689cb89c4fe5eae1'
depends_on 'pkg-config' => :build
depends_on 'intltool'
depends_on 'gettext'
depends_on 'pango'
depends_on 'libtiff'
depends_on 'gtk+'
def install
ENV.x11
# fix for Leopard, potentially others with isspecial defined elswhere
inreplace 'objects/GRAFCET/boolequation.c', 'isspecial', 'char_isspecial'
system "./configure", "--enable-debug=no",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
rm_rf share+"applications"
end
end
|