Date: Friday, February 19, 2010 @ 12:07:04 Author: eric Revision: 69289
upgpkg: gnucash 2.2.9-5 Rebuilt against goffice 0.8 Added: gnucash/trunk/03_disable_graphing_support.patch gnucash/trunk/03_goffice_0-8_support.patch Modified: gnucash/trunk/PKGBUILD -----------------------------------+ 03_disable_graphing_support.patch | 109 ++++++++++++++++++++++++++++++++++++ 03_goffice_0-8_support.patch | 55 ++++++++++++++++++ PKGBUILD | 15 +++- 3 files changed, 174 insertions(+), 5 deletions(-) Added: 03_disable_graphing_support.patch =================================================================== --- 03_disable_graphing_support.patch (rev 0) +++ 03_disable_graphing_support.patch 2010-02-19 17:07:04 UTC (rev 69289) @@ -0,0 +1,109 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_disable_graphing_support.dpatch by Thomas Themel <[email protected]> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Disables graphing support and make Gnucash 2.2.9 build with goffice-0-8 + +...@dpatch@ + +diff --git a/src/gnome-utils/Makefile.am b/src/gnome-utils/Makefile.am +index 3a9f056..ddda66b 100644 +--- a/src/gnome-utils/Makefile.am ++++ b/src/gnome-utils/Makefile.am +@@ -61,7 +61,6 @@ libgncmod_gnome_utils_la_SOURCES = \ + gnc-general-select.c \ + gnc-gnome-utils.c \ + gnc-gui-query.c \ +- gnc-html-graph-gog.c \ + gnc-html-history.c \ + gnc-html.c \ + gnc-icons.c \ +@@ -131,7 +130,6 @@ gncinclude_HEADERS = \ + gnc-general-select.h \ + gnc-gnome-utils.h \ + gnc-gui-query.h \ +- gnc-html-graph-gog.h \ + gnc-html-history.h \ + gnc-html.h \ + gnc-icons.h \ +diff --git a/src/gnome-utils/Makefile.in b/src/gnome-utils/Makefile.in +index b7e5cd1..802b03b 100644 +--- a/src/gnome-utils/Makefile.in ++++ b/src/gnome-utils/Makefile.in +@@ -97,7 +97,7 @@ am__libgncmod_gnome_utils_la_SOURCES_DIST = QuickFill.c \ + gnc-druid-provider-multifile-gnome.c gnc-embedded-window.c \ + gnc-file.c gnc-frequency.c gnc-recurrence.c \ + gnc-general-select.c gnc-gnome-utils.c gnc-gui-query.c \ +- gnc-html-graph-gog.c gnc-html-history.c gnc-html.c gnc-icons.c \ ++ gnc-html-history.c gnc-html.c gnc-icons.c \ + gnc-main-window.c gnc-menu-extensions.c \ + gnc-plugin-file-history.c gnc-plugin-manager.c \ + gnc-plugin-menu-additions.c gnc-plugin-page.c gnc-plugin.c \ +@@ -128,7 +128,7 @@ am_libgncmod_gnome_utils_la_OBJECTS = QuickFill.lo \ + gnc-druid-provider-multifile-gnome.lo gnc-embedded-window.lo \ + gnc-file.lo gnc-frequency.lo gnc-recurrence.lo \ + gnc-general-select.lo gnc-gnome-utils.lo gnc-gui-query.lo \ +- gnc-html-graph-gog.lo gnc-html-history.lo gnc-html.lo \ ++ gnc-html-history.lo gnc-html.lo \ + gnc-icons.lo gnc-main-window.lo gnc-menu-extensions.lo \ + gnc-plugin-file-history.lo gnc-plugin-manager.lo \ + gnc-plugin-menu-additions.lo gnc-plugin-page.lo gnc-plugin.lo \ +@@ -455,7 +455,7 @@ libgncmod_gnome_utils_la_SOURCES = QuickFill.c account-quickfill.c \ + gnc-druid-provider-multifile-gnome.c gnc-embedded-window.c \ + gnc-file.c gnc-frequency.c gnc-recurrence.c \ + gnc-general-select.c gnc-gnome-utils.c gnc-gui-query.c \ +- gnc-html-graph-gog.c gnc-html-history.c gnc-html.c gnc-icons.c \ ++ gnc-html-history.c gnc-html.c gnc-icons.c \ + gnc-main-window.c gnc-menu-extensions.c \ + gnc-plugin-file-history.c gnc-plugin-manager.c \ + gnc-plugin-menu-additions.c gnc-plugin-page.c gnc-plugin.c \ +@@ -505,7 +505,6 @@ gncinclude_HEADERS = \ + gnc-general-select.h \ + gnc-gnome-utils.h \ + gnc-gui-query.h \ +- gnc-html-graph-gog.h \ + gnc-html-history.h \ + gnc-html.h \ + gnc-icons.h \ +@@ -684,7 +683,6 @@ distclean-compile: + @AMDEP_TRUE@@am__include@ @am__qu...@./$(DEPDIR)/gnc-general-select....@am__quote@ + @AMDEP_TRUE@@am__include@ @am__qu...@./$(DEPDIR)/gnc-gnome-utils....@am__quote@ + @AMDEP_TRUE@@am__include@ @am__qu...@./$(DEPDIR)/gnc-gui-query....@am__quote@ +...@amdep_true@@am__include@ @am__qu...@./$(DEPDIR)/gnc-html-graph-gog....@am__quote@ + @AMDEP_TRUE@@am__include@ @am__qu...@./$(DEPDIR)/gnc-html-history....@am__quote@ + @AMDEP_TRUE@@am__include@ @am__qu...@./$(DEPDIR)/gnc-html....@am__quote@ + @AMDEP_TRUE@@am__include@ @am__qu...@./$(DEPDIR)/gnc-icons....@am__quote@ +diff --git a/src/gnome-utils/gnc-gnome-utils.c b/src/gnome-utils/gnc-gnome-utils.c +index 0672175..b11a501 100644 +--- a/src/gnome-utils/gnc-gnome-utils.c ++++ b/src/gnome-utils/gnc-gnome-utils.c +@@ -32,8 +32,6 @@ + #endif + #include <libxml/xmlIO.h> + +-#include "gnc-html-graph-gog.h" +- + #include "druid-gconf-setup.h" + #include "gnc-gconf-utils.h" + #include "gnc-gnome-utils.h" +diff --git a/src/gnome-utils/gnc-html.c b/src/gnome-utils/gnc-html.c +index 26e9183..d1f904a 100644 +--- a/src/gnome-utils/gnc-html.c ++++ b/src/gnome-utils/gnc-html.c +@@ -49,7 +49,6 @@ + #include "gnc-gui-query.h" + #include "gnc-html.h" + #include "gnc-html-history.h" +-#include "gnc-html-graph-gog.h" + #include "gnc-ui.h" + #include "gnc-ui-util.h" + +@@ -389,8 +388,6 @@ gnc_html_initialize (void) + for (i = 0; types[i].type; i++) + gnc_html_register_urltype (types[i].type, types[i].protocol); + +- // initialize graphing support +- gnc_html_graph_gog_init(); + } + + Added: 03_goffice_0-8_support.patch =================================================================== --- 03_goffice_0-8_support.patch (rev 0) +++ 03_goffice_0-8_support.patch 2010-02-19 17:07:04 UTC (rev 69289) @@ -0,0 +1,55 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_goffice_0-8_support.dpatch by Jean-Louis Dupond <[email protected]> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Allowing gnucash to compile with goffice 0-8 (taken from diff 18311 in gnucash). + +...@dpatch@ +diff -urNad gnucash-2.2.9~/src/gnome-utils/gnc-html-graph-gog.c gnucash-2.2.9/src/gnome-utils/gnc-html-graph-gog.c +--- gnucash-2.2.9~/src/gnome-utils/gnc-html-graph-gog.c 2008-01-08 02:06:26.000000000 +0100 ++++ gnucash-2.2.9/src/gnome-utils/gnc-html-graph-gog.c 2010-02-13 00:25:40.973428634 +0100 +@@ -48,6 +48,9 @@ + #endif + #include <goffice/graph/gog-style.h> + #include <goffice/graph/gog-styled-object.h> ++#ifndef GO_COLOR_FROM_GDK ++# define GO_COLOR_FROM_GDK GDK_TO_UINT ++#endif + #include <goffice/graph/gog-plot.h> + #include <goffice/graph/gog-series.h> + #include <goffice/utils/go-color.h> +@@ -363,8 +366,13 @@ + } + gog_object_add_by_name(chart, "Legend", NULL); + ++#ifdef GO_COLOR_BLACK ++ GOG_STYLED_OBJECT(graph)->style->line.width = 5; ++ GOG_STYLED_OBJECT(graph)->style->line.color = GO_COLOR_BLACK; ++#else + GOG_STYLED_OBJECT(graph)->style->outline.width = 5; + GOG_STYLED_OBJECT(graph)->style->outline.color = RGBA_BLACK; ++#endif + + series = gog_plot_new_series(plot); + labelData = go_data_vector_str_new((char const * const *)labels, datasize, NULL); +@@ -493,7 +501,7 @@ + style->fill.type = GOG_FILL_STYLE_PATTERN; + if (gdk_color_parse (col_colors[i], &color)) { + style->fill.auto_back = FALSE; +- go_pattern_set_solid (&style->fill.pattern, GDK_TO_UINT (color)); ++ go_pattern_set_solid (&style->fill.pattern, GO_COLOR_FROM_GDK(color)); + } else { + g_warning("cannot parse color [%s]", col_colors[i]); + } +@@ -588,9 +596,9 @@ + GdkColor color; + if (gdk_color_parse(color_str, &color)) { + style->marker.auto_outline_color = FALSE; +- go_marker_set_outline_color(style->marker.mark, GDK_TO_UINT(color)); ++ go_marker_set_outline_color(style->marker.mark, GO_COLOR_FROM_GDK(color)); + style->line.auto_color = FALSE; +- style->line.color = GDK_TO_UINT(color); ++ style->line.color = GO_COLOR_FROM_GDK(color); + } else { + g_warning("cannot parse color [%s]", color_str); + } Modified: PKGBUILD =================================================================== --- PKGBUILD 2010-02-19 16:51:30 UTC (rev 69288) +++ PKGBUILD 2010-02-19 17:07:04 UTC (rev 69289) @@ -4,12 +4,12 @@ pkgname=gnucash pkgver=2.2.9 -pkgrel=4 +pkgrel=5 pkgdesc="A personal and small-business financial-accounting application" arch=('i686' 'x86_64') url="http://www.gnucash.org" license=("GPL") -depends=('gtkhtml' 'slib' 'goffice>=0.6.5' 'guile' 'libofx' 'gconf>=2.24') +depends=('gtkhtml' 'slib' 'goffice' 'guile' 'libofx' 'gconf>=2.24') makedepends=('intltool') optdepends=('evince: for print preview' 'gnucash-docs: (AUR) for user documentation' @@ -17,12 +17,17 @@ 'perl-date-manip: for stock information lookups') options=('!libtool' '!makeflags') install=gnucash.install -source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz) -md5sums=('570eee09a1ae83c9953ec60a7fc146ed') -sha1sums=('8f63c67fcceaae93ceb8827143cc6a470e3a096a') +source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz \ + 03_goffice_0-8_support.patch 03_disable_graphing_support.patch) +md5sums=('570eee09a1ae83c9953ec60a7fc146ed' '57aaf609bb6fe4ed863bfddd03da505a'\ + '87943fbebbcf88488369bf1d3651083f') +sha1sums=('8f63c67fcceaae93ceb8827143cc6a470e3a096a' '71e16460ac5f8b277d0217244084bc0099529882'\ + '8eb33bc06498cec34a0b4e86806d417210ca032a') build() { cd "${srcdir}/${pkgname}-${pkgver}" + patch -p1 < ../03_goffice_0-8_support.patch || return 1 + patch -p1 < ../03_disable_graphing_support.patch || return 1 ./configure --prefix=/usr --mandir=/usr/share/man \ --sysconfdir=/etc --libexecdir=/usr/lib --enable-ofx || return 1 make || return 1
