diff options
Diffstat (limited to 'community/planner')
7 files changed, 449 insertions, 0 deletions
diff --git a/community/planner/05ba23be296085313abd8d7d5075d962084f5d38.patch b/community/planner/05ba23be296085313abd8d7d5075d962084f5d38.patch new file mode 100644 index 000000000..591b2f20d --- /dev/null +++ b/community/planner/05ba23be296085313abd8d7d5075d962084f5d38.patch @@ -0,0 +1,26 @@ +From 05ba23be296085313abd8d7d5075d962084f5d38 Mon Sep 17 00:00:00 2001 +From: Alexandre Franke <alexandre.franke@gmail.com> +Date: Wed, 14 Mar 2012 10:52:25 +0000 +Subject: Better use of fields in the .desktop file + +https://bugzilla.gnome.org/show_bug.cgi?id=672033 +--- +diff --git a/data/planner.desktop.in.in b/data/planner.desktop.in.in +index af61d34..30eb921 100644 +--- a/data/planner.desktop.in.in ++++ b/data/planner.desktop.in.in +@@ -1,6 +1,10 @@ + [Desktop Entry] +-_Name=Project Management +-_Comment=Planner Project Management ++Version=1.0 ++_Name=Planner ++_GenericName=Project Management ++_X-GNOME-FullName=Planner Project Management ++_Comment=Handle the tasks, resources, and cost of your projects ++_Keywords=Gantt;Chart;Critical path;Relationship;Dependency;WBS; + Exec=planner %F + Icon=gnome-planner.png + Terminal=false +-- +cgit v0.9.2 diff --git a/community/planner/0cc65e2f420af45f78d190ac2af64810a148bb31.patch b/community/planner/0cc65e2f420af45f78d190ac2af64810a148bb31.patch new file mode 100644 index 000000000..de5a64c37 --- /dev/null +++ b/community/planner/0cc65e2f420af45f78d190ac2af64810a148bb31.patch @@ -0,0 +1,41 @@ +From 0cc65e2f420af45f78d190ac2af64810a148bb31 Mon Sep 17 00:00:00 2001 +From: Luis Menina <liberforce@freeside.fr> +Date: Mon, 11 Mar 2013 00:00:44 +0000 +Subject: Don't crash on an empty print preview, just provide an empty preview. + +https://bugzilla.gnome.org/show_bug.cgi?id=581282 +--- +diff --git a/src/planner-print-job.c b/src/planner-print-job.c +index 6334037..96267a0 100644 +--- a/src/planner-print-job.c ++++ b/src/planner-print-job.c +@@ -237,17 +237,7 @@ print_job_draw_page (GtkPrintOperation *operation, + + l = priv->views; + +- /* Abort if there is nothing to print. +- * +- * A better solution would be to set the number of pages to print to 0 +- * in print_job_begin_print, but 0 is not a valid value for +- * gtk_print_operation_set_n_pages. +- */ +- if(!l) { +- return; +- } +- +- while (!page_found) { ++ while (! page_found && l != NULL) { + v = PLANNER_VIEW (l->data); + + pages_in_view = planner_view_print_get_n_pages (v); +@@ -258,8 +248,6 @@ print_job_draw_page (GtkPrintOperation *operation, + } else { + page_nr -= pages_in_view; + l = l->next; +- +- g_assert (l != NULL); + } + } + } +-- +cgit v0.9.2 diff --git a/community/planner/PKGBUILD b/community/planner/PKGBUILD new file mode 100644 index 000000000..5aef75dd1 --- /dev/null +++ b/community/planner/PKGBUILD @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 104580 2014-01-23 07:08:15Z bgyorgy $ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> +# Contributor: herb <herb@archlinux.org> +# Contributor: Jan de Groot <jgc@archlinux.org> + +pkgname=planner +pkgver=0.14.6 +pkgrel=3 +pkgdesc='Project management application for GNOME' +arch=('i686' 'x86_64') +license=('GPL') +url='https://wiki.gnome.org/Apps/Planner' +depends=('libgnomecanvas' 'libxslt' 'gconf' 'desktop-file-utils') +makedepends=('intltool' 'gtk-doc' 'pygtk') +options=('!emptydirs') +install=planner.install +source=(http://ftp.gnome.org/pub/GNOME/sources/planner/${pkgver%.*}/planner-$pkgver.tar.xz + f9840c342e4b5767ee35f0d326b7f7eaf56850ed.patch + 05ba23be296085313abd8d7d5075d962084f5d38.patch + 0cc65e2f420af45f78d190ac2af64810a148bb31.patch + cd2b658e83d47e8f49d1bbaf54be6433a21d3758.patch + fd8da8994f7006b9fcefc90d2fe5c2b484c7871e.patch) +sha256sums=('130d29e6d6b8c1994017deba2acca05a4bf83ba1e169635ec8c5c7878abe0696' + 'bc4455b318bb26f44fe50a8e07292b7654c795ff2a1629a788ea749f6c8bac81' + '88a34bb93bca4ae5865f6c70d7d73f3a0009e5137ba2346a8446c6e206e51b20' + '0cde21948f01baaa31a9a5f8af76444c7151ad39a0bc45d8e04de8b07837f0ad' + '1644550a9be35253fe0a353fc004bd8576de3b85a6b21b92cbb0a87c03f37894' + '4275689c2d4493ddcda3a40309a6bbdcdf6323bed80ca2e011138cdcd88da852') + +prepare() { + cd $pkgname-$pkgver + # Upstream fixes + patch -Np1 -i ../f9840c342e4b5767ee35f0d326b7f7eaf56850ed.patch + patch -Np1 -i ../05ba23be296085313abd8d7d5075d962084f5d38.patch + patch -Np1 -i ../0cc65e2f420af45f78d190ac2af64810a148bb31.patch + + # Remove deprecated libgnomeui dependency + patch -Np1 -i ../cd2b658e83d47e8f49d1bbaf54be6433a21d3758.patch + patch -Np1 -i ../fd8da8994f7006b9fcefc90d2fe5c2b484c7871e.patch +} + +build() { + cd $pkgname-$pkgver + autoreconf -fi + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-update-mimedb --disable-schemas-install \ + --with-gconf-schema-file-dir=/usr/share/gconf/schemas + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/community/planner/cd2b658e83d47e8f49d1bbaf54be6433a21d3758.patch b/community/planner/cd2b658e83d47e8f49d1bbaf54be6433a21d3758.patch new file mode 100644 index 000000000..722c59ec3 --- /dev/null +++ b/community/planner/cd2b658e83d47e8f49d1bbaf54be6433a21d3758.patch @@ -0,0 +1,147 @@ +From cd2b658e83d47e8f49d1bbaf54be6433a21d3758 Mon Sep 17 00:00:00 2001 +From: Luis Menina <liberforce@freeside.fr> +Date: Mon, 04 Mar 2013 17:10:26 +0000 +Subject: Remove deprecated GnomeEntry. + +It is replaced by GtkEntry. This means we lose the history +functionality, but that could be reimplemented using GtkComboBoxText +with an entry. + +https://bugzilla.gnome.org/show_bug.cgi?id=589045 +--- +diff --git a/data/glade/sql.glade b/data/glade/sql.glade +index 2b12b85..f673ae0 100644 +--- a/data/glade/sql.glade ++++ b/data/glade/sql.glade +@@ -165,24 +165,16 @@ + </child> + + <child> +- <widget class="GnomeEntry" id="server_entry"> ++ <widget class="GtkEntry" id="server_entry"> + <property name="visible">True</property> +- <property name="history_id">database_server</property> +- <property name="max_saved">10</property> +- +- <child internal-child="entry"> +- <widget class="GtkEntry" id="combo-entry1"> +- <property name="visible">True</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">0</property> +- <property name="text" translatable="yes"></property> +- <property name="has_frame">True</property> +- <property name="invisible_char" translatable="yes">*</property> +- <property name="activates_default">True</property> +- </widget> +- </child> ++ <property name="can_focus">True</property> ++ <property name="editable">True</property> ++ <property name="visibility">True</property> ++ <property name="max_length">0</property> ++ <property name="text" translatable="yes"></property> ++ <property name="has_frame">True</property> ++ <property name="invisible_char" translatable="yes">*</property> ++ <property name="activates_default">True</property> + </widget> + <packing> + <property name="left_attach">1</property> +@@ -194,24 +186,16 @@ + </child> + + <child> +- <widget class="GnomeEntry" id="user_entry"> ++ <widget class="GtkEntry" id="user_entry"> + <property name="visible">True</property> +- <property name="history_id">database_user</property> +- <property name="max_saved">10</property> +- +- <child internal-child="entry"> +- <widget class="GtkEntry" id="combo-entry2"> +- <property name="visible">True</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">0</property> +- <property name="text" translatable="yes"></property> +- <property name="has_frame">True</property> +- <property name="invisible_char" translatable="yes">*</property> +- <property name="activates_default">True</property> +- </widget> +- </child> ++ <property name="can_focus">True</property> ++ <property name="editable">True</property> ++ <property name="visibility">True</property> ++ <property name="max_length">0</property> ++ <property name="text" translatable="yes"></property> ++ <property name="has_frame">True</property> ++ <property name="invisible_char" translatable="yes">*</property> ++ <property name="activates_default">True</property> + </widget> + <packing> + <property name="left_attach">1</property> +@@ -248,24 +232,16 @@ + </child> + + <child> +- <widget class="GnomeEntry" id="db_entry"> ++ <widget class="GtkEntry" id="db_entry"> + <property name="visible">True</property> +- <property name="history_id">database_name</property> +- <property name="max_saved">10</property> +- +- <child internal-child="entry"> +- <widget class="GtkEntry" id="combo-entry3"> +- <property name="visible">True</property> +- <property name="can_focus">True</property> +- <property name="editable">True</property> +- <property name="visibility">True</property> +- <property name="max_length">0</property> +- <property name="text" translatable="yes"></property> +- <property name="has_frame">True</property> +- <property name="invisible_char" translatable="yes">*</property> +- <property name="activates_default">True</property> +- </widget> +- </child> ++ <property name="can_focus">True</property> ++ <property name="editable">True</property> ++ <property name="visibility">True</property> ++ <property name="max_length">0</property> ++ <property name="text" translatable="yes"></property> ++ <property name="has_frame">True</property> ++ <property name="invisible_char" translatable="yes">*</property> ++ <property name="activates_default">True</property> + </widget> + <packing> + <property name="left_attach">1</property> +diff --git a/src/planner-sql-plugin.c b/src/planner-sql-plugin.c +index 14a088c..ea2f46a 100644 +--- a/src/planner-sql-plugin.c ++++ b/src/planner-sql-plugin.c +@@ -27,7 +27,6 @@ + #include <stdlib.h> + #include <glib.h> + #include <glib/gi18n.h> +-#include <libgnomeui/gnome-entry.h> + #include <glade/glade.h> + #include <gtk/gtk.h> + #include <libgda/libgda.h> +@@ -950,12 +949,9 @@ sql_plugin_retrieve_db_values (PlannerPlugin *plugin, + + gtk_window_set_title (GTK_WINDOW (dialog), title); + +- server_entry = gnome_entry_gtk_entry ( +- GNOME_ENTRY (glade_xml_get_widget (gui, "server_entry"))); +- db_entry = gnome_entry_gtk_entry ( +- GNOME_ENTRY (glade_xml_get_widget (gui, "db_entry"))); +- user_entry = gnome_entry_gtk_entry ( +- GNOME_ENTRY (glade_xml_get_widget (gui, "user_entry"))); ++ server_entry = glade_xml_get_widget (gui, "server_entry"); ++ db_entry = glade_xml_get_widget (gui, "db_entry"); ++ user_entry = glade_xml_get_widget (gui, "user_entry"); + password_entry = glade_xml_get_widget (gui, "password_entry"); + + str = planner_conf_get_string (CONF_SERVER, NULL); +-- +cgit v0.9.2 diff --git a/community/planner/f9840c342e4b5767ee35f0d326b7f7eaf56850ed.patch b/community/planner/f9840c342e4b5767ee35f0d326b7f7eaf56850ed.patch new file mode 100644 index 000000000..1ee60f528 --- /dev/null +++ b/community/planner/f9840c342e4b5767ee35f0d326b7f7eaf56850ed.patch @@ -0,0 +1,114 @@ +From f9840c342e4b5767ee35f0d326b7f7eaf56850ed Mon Sep 17 00:00:00 2001 +From: Alexandre Franke <alexandre.franke@gmail.com> +Date: Mon, 05 Mar 2012 17:22:56 +0000 +Subject: Fix for broken "open file on startup" behaviour + +Switch to gtk_init_with_args from GnomeProgam broke opening of files from command line and when double clicking on file in file browser. + +Based on patches 193670 and 193835 by Maxim Zakharov. + +https://bugzilla.gnome.org/show_bug.cgi?id=656373 +--- +diff --git a/src/planner-main.c b/src/planner-main.c +index cdeb8ea..c0aabd2 100644 +--- a/src/planner-main.c ++++ b/src/planner-main.c +@@ -37,7 +37,7 @@ static gchar **args_remaining = NULL; + + static GOptionEntry options[] = { + { "geometry", 'g', 0, G_OPTION_ARG_STRING, &geometry, N_("Create the initial window with the given geometry."), N_("GEOMETRY")}, +- { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &args_remaining, NULL, N_("FILES") }, ++ { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &args_remaining, NULL, N_("FILES|URIs") }, + { NULL } + }; + +@@ -92,26 +92,27 @@ main (int argc, char **argv) + + gtk_widget_show_all (main_window); + +- if (argc > 1) { +- i = 1; +- while (argv[i]) { +- if (g_str_has_prefix (argv[i], "file:")) { ++ if (args_remaining != NULL) { ++ for (i = 0; args_remaining[i]; i++) { ++ gchar *scheme = g_uri_parse_scheme(args_remaining[i]); ++ if (scheme != NULL) { + planner_window_open_in_existing_or_new ( +- PLANNER_WINDOW (main_window), argv[i], FALSE); ++ PLANNER_WINDOW (main_window), args_remaining[i], FALSE); ++ g_free(scheme); + } else { + gchar *uri; + +- if (!g_path_is_absolute (argv[i])) { ++ if (!g_path_is_absolute (args_remaining[i])) { + /* Relative path. */ + gchar *cwd, *tmp; + + cwd = g_get_current_dir (); +- tmp = g_build_filename (cwd, argv[i], NULL); ++ tmp = g_build_filename (cwd, args_remaining[i], NULL); + uri = g_filename_to_uri (tmp, NULL, NULL); + g_free (tmp); + g_free (cwd); + } else { +- uri = g_filename_to_uri (argv[i], NULL, NULL); ++ uri = g_filename_to_uri (args_remaining[i], NULL, NULL); + } + + if (uri) { +@@ -120,8 +121,6 @@ main (int argc, char **argv) + g_free (uri); + } + } +- +- i++; + } + } + +diff --git a/src/planner-window.c b/src/planner-window.c +index 73f1766..b0536c3 100644 +--- a/src/planner-window.c ++++ b/src/planner-window.c +@@ -1726,36 +1726,24 @@ planner_window_open_in_existing_or_new (PlannerWindow *window, + { + PlannerWindowPriv *priv; + GtkWidget *new_window; +- gchar *filename; + gboolean ret; + + priv = window->priv; +- +- filename = g_filename_from_uri (uri, NULL, NULL); +- if (!filename) { +- return FALSE; +- } +- + if (mrp_project_is_empty (priv->project)) { +- ret = planner_window_open (window, filename, internal); +- g_free (filename); ++ ret = planner_window_open (window, uri, internal); + return ret; + } else { + new_window = planner_application_new_window (priv->application); +- if (planner_window_open (PLANNER_WINDOW (new_window), filename, internal)) { +- g_free (filename); ++ if (planner_window_open (PLANNER_WINDOW (new_window), uri, internal)) { + gtk_widget_show_all (new_window); + return TRUE; + } else { +- g_free (filename); + g_signal_emit (new_window, signals[CLOSED], 0, NULL); + gtk_widget_destroy (new_window); + return FALSE; + } + } + +- g_free (filename); +- + return FALSE; + } + +-- +cgit v0.9.2 diff --git a/community/planner/fd8da8994f7006b9fcefc90d2fe5c2b484c7871e.patch b/community/planner/fd8da8994f7006b9fcefc90d2fe5c2b484c7871e.patch new file mode 100644 index 000000000..7c1b1d5ef --- /dev/null +++ b/community/planner/fd8da8994f7006b9fcefc90d2fe5c2b484c7871e.patch @@ -0,0 +1,41 @@ +From fd8da8994f7006b9fcefc90d2fe5c2b484c7871e Mon Sep 17 00:00:00 2001 +From: Luis Menina <liberforce@freeside.fr> +Date: Mon, 04 Mar 2013 13:42:22 +0000 +Subject: Remove deprecated libgnomeui. + +https://bugzilla.gnome.org/show_bug.cgi?id=589045 +--- +diff --git a/README b/README +index e6d5c31..b2489ef 100644 +--- a/README ++++ b/README +@@ -59,7 +59,6 @@ Dependencies: + GLIB 2.6.0 + GTK 2.14.0 + LIBGNOMECANVAS 2.10.0 +-LIBGNOMEUI 2.10.0 + LIBGLADE 2.3.0 + GNOME_VFS 2.10.0 + GCONF 2.10.0 +diff --git a/configure.in b/configure.in +index 9f3d112..06568fd 100644 +--- a/configure.in ++++ b/configure.in +@@ -67,7 +67,6 @@ dnl it too, or it will never make it into the spec file! + GLIB_REQUIRED=2.6.0 + GTK_REQUIRED=2.14.0 + LIBGNOMECANVAS_REQUIRED=2.10.0 +-LIBGNOMEUI_REQUIRED=2.10.0 + LIBGLADE_REQUIRED=2.3.0 + GNOME_VFS_REQUIRED=2.10.0 + GCONF_REQUIRED=2.10.0 +@@ -116,7 +115,6 @@ PKG_CHECK_MODULES(PLANNER, + gobject-2.0 gmodule-2.0 + gtk+-2.0 >= $GTK_REQUIRED + libgnomecanvas-2.0 >= $LIBGNOMECANVAS_REQUIRED +- libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED + libglade-2.0 >= $LIBGLADE_REQUIRED + gconf-2.0 >= $GCONF_REQUIRED + ]) +-- +cgit v0.9.2 diff --git a/community/planner/planner.install b/community/planner/planner.install new file mode 100644 index 000000000..9d325dbb1 --- /dev/null +++ b/community/planner/planner.install @@ -0,0 +1,26 @@ +pkgname=planner + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-mime-database usr/share/mime +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-mime-database usr/share/mime +} |