blob: 9d77cd64c22e471c3947cc82f5b32d355299d2f7 (
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
26
27
28
29
30
|
require 'formula'
class Geany < Formula
homepage 'http://geany.org/'
url 'http://download.geany.org/geany-1.22.tar.gz'
sha1 '5c3fe16806debef457f78678cfe0a6528043a6ee'
depends_on :x11
depends_on 'pkg-config' => :build
depends_on 'intltool' => :build
depends_on 'gettext'
depends_on 'gtk+'
# Remove --export-dynamic per MacPorts
def patches
{:p0 =>
"https://trac.macports.org/export/103350/trunk/dports/devel/geany/files/patch-no-export-dynamic.diff"
}
end
def install
# Needed to compile against current version of glib.
# Check that this is still needed when updating the formula.
ENV.append 'LDFLAGS', '-lgmodule-2.0'
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
|