2011-06-26 10:53:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Goffice < Formula
|
|
|
|
homepage 'http://projects.gnome.org/gnumeric/'
|
2014-04-03 14:25:42 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/goffice/0.8/goffice-0.8.17.tar.bz2'
|
2011-06-26 10:53:50 +00:00
|
|
|
sha256 'dd8caef5fefffbc53938fa619de9f58e7c4dc71a1803de134065d42138a68c06'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-03 20:39:55 +00:00
|
|
|
depends_on 'intltool' => :build
|
2011-06-26 10:53:50 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'libgsf'
|
|
|
|
depends_on 'gtk+'
|
2012-08-09 21:48:48 +00:00
|
|
|
depends_on 'pcre'
|
2012-08-05 19:34:42 +00:00
|
|
|
depends_on :x11
|
2011-06-26 10:53:50 +00:00
|
|
|
|
2012-09-29 16:15:55 +00:00
|
|
|
# Fix for goffice trying to use a retired pcre api. Reported/source = Macports
|
2013-12-14 18:13:11 +00:00
|
|
|
# https://github.com/Homebrew/homebrew/issues/15171
|
2014-03-19 17:07:51 +00:00
|
|
|
patch :DATA
|
2012-09-29 16:15:55 +00:00
|
|
|
|
2011-06-26 10:53:50 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-09-29 16:15:55 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- a/goffice/utils/regutf8.c 2009-09-05 16:52:09.000000000 -0700
|
|
|
|
+++ b/goffice/utils/regutf8.c 2012-09-28 20:53:51.000000000 -0700
|
|
|
|
@@ -155,7 +155,7 @@
|
|
|
|
default: return GO_REG_BADPAT;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
- gor->re_nsub = pcre_info (r, NULL, NULL);
|
|
|
|
+ gor->re_nsub = pcre_fullinfo (r, NULL, 0, NULL);
|
|
|
|
gor->nosub = (cflags & GO_REG_NOSUB) != 0;
|
|
|
|
return 0;
|
|
|
|
}
|