2010-07-18 13:01:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Geany < Formula
|
2011-05-29 04:30:58 +00:00
|
|
|
homepage 'http://geany.org/'
|
2013-02-22 16:32:52 +00:00
|
|
|
url 'http://download.geany.org/geany-1.22.tar.gz'
|
|
|
|
sha1 '5c3fe16806debef457f78678cfe0a6528043a6ee'
|
2010-07-18 13:01:49 +00:00
|
|
|
|
2012-08-07 03:51:09 +00:00
|
|
|
depends_on :x11
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-03 20:39:45 +00:00
|
|
|
depends_on 'intltool' => :build
|
2010-07-18 13:01:49 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'gtk+'
|
|
|
|
|
2013-02-22 16:32:52 +00:00
|
|
|
# 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
|
|
|
|
|
2010-07-18 13:01:49 +00:00
|
|
|
def install
|
2012-06-12 04:01:32 +00:00
|
|
|
# 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}"
|
2010-07-18 13:01:49 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|