summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--xfce-extra/xfce4-weather/Manifest3
-rw-r--r--xfce-extra/xfce4-weather/files/xfce4-weather-horizontal.patch79
-rw-r--r--xfce-extra/xfce4-weather/xfce4-weather-0.7.1.ebuild28
3 files changed, 110 insertions, 0 deletions
diff --git a/xfce-extra/xfce4-weather/Manifest b/xfce-extra/xfce4-weather/Manifest
new file mode 100644
index 0000000..7758aff
--- /dev/null
+++ b/xfce-extra/xfce4-weather/Manifest
@@ -0,0 +1,3 @@
+AUX xfce4-weather-horizontal.patch 3184 RMD160 454f188254a75edfe95ffc983641a3bcb1fb5f2c SHA1 5e10ca99249183dc6f3aa0eb24f9f7a91dfd84be SHA256 73321326efd73ab3f7d8eb2e2eecb43c80659a393e121125ca0c4380c3f5db4e
+DIST xfce4-weather-plugin-0.7.1.tar.bz2 666205 RMD160 708cea2adda832e6d8aadcfcac3f60538e23f6ea SHA1 f6e8d93905c61425f3b510daab65fb7cd8ecbdb8 SHA256 08835749cc4c865dc7d685c6b4829db1b96758121100558b6f9513da8b43c4bd
+EBUILD xfce4-weather-0.7.1.ebuild 834 RMD160 610bab97b68082d40cef99755fab7a0fbb4a82b2 SHA1 99ecd3703fffa366ca84a120644fbea6b8d9f9a8 SHA256 a0337f58fc798bc1efc7a54c0e776d1a57d86b8fbe7474f9032c29299ec95863
diff --git a/xfce-extra/xfce4-weather/files/xfce4-weather-horizontal.patch b/xfce-extra/xfce4-weather/files/xfce4-weather-horizontal.patch
new file mode 100644
index 0000000..497b591
--- /dev/null
+++ b/xfce-extra/xfce4-weather/files/xfce4-weather-horizontal.patch
@@ -0,0 +1,79 @@
+=== modified file 'panel-plugin/weather.c'
+--- panel-plugin/weather.c 2009-07-30 10:52:47 +0000
++++ panel-plugin/weather.c 2009-07-30 11:04:50 +0000
+@@ -147,10 +147,10 @@
+ }
+
+ /* arbitrary, choose something that works */
+- if (orientation == GTK_ORIENTATION_HORIZONTAL)
++ if (0) // (orientation == GTK_ORIENTATION_HORIZONTAL)
+ txtsize = "medium";
+ else if (size > 36)
+- txtsize = "medium";
++ txtsize = "small";
+ else if (size > 30)
+ txtsize = "small";
+ else if (size > 24)
+@@ -230,10 +230,10 @@
+
+ /* arbitrary, choose something that works */
+
+- if (data->orientation == GTK_ORIENTATION_HORIZONTAL)
++ if (0) //(data->orientation == GTK_ORIENTATION_HORIZONTAL)
+ txtsize = "medium";
+ else if (size > 36)
+- txtsize = "medium";
++ txtsize = "small";
+ else if (size > 30)
+ txtsize = "small";
+ else if (size > 24)
+@@ -249,7 +249,7 @@
+
+ gtk_widget_get_size_request (data->scrollbox, NULL, &height);
+
+- if (data->orientation == GTK_ORIENTATION_VERTICAL)
++ if (1) //(data->orientation == GTK_ORIENTATION_VERTICAL)
+ icon = get_icon ("99", data->size - height - 2);
+ else
+ icon = get_icon ("99", data->size);
+@@ -296,7 +296,7 @@
+ else
+ {
+ gtk_widget_get_size_request (data->scrollbox, NULL, &height);
+- if (data->orientation == GTK_ORIENTATION_VERTICAL)
++ if (1) //(data->orientation == GTK_ORIENTATION_VERTICAL)
+ size = data->size - height - 2;
+ else
+ size = data->size;
+@@ -808,14 +808,14 @@
+ data->labels = g_array_new (FALSE, TRUE, sizeof (datas));
+
+ data->vbox_center_scrollbox = gtk_vbox_new(FALSE, 0);
++ data->top_vbox = gtk_vbox_new (FALSE, 0);
++ //gtk_misc_set_alignment (GTK_MISC (data->iconimage), 1, 0.5);
++ gtk_box_pack_start (GTK_BOX (data->top_vbox), data->iconimage, TRUE, FALSE, 0);
++ gtk_box_pack_start (GTK_BOX (data->vbox_center_scrollbox), data->scrollbox, TRUE, FALSE, 0);
++ gtk_box_pack_start (GTK_BOX (data->top_vbox), data->vbox_center_scrollbox, TRUE, FALSE, 0);
++
+ data->top_hbox = gtk_hbox_new (FALSE, 0);
+- gtk_misc_set_alignment (GTK_MISC (data->iconimage), 1, 0.5);
+- gtk_box_pack_start (GTK_BOX (data->top_hbox), data->iconimage, TRUE, FALSE, 0);
+- gtk_box_pack_start (GTK_BOX (data->vbox_center_scrollbox), data->scrollbox, TRUE, FALSE, 0);
+- gtk_box_pack_start (GTK_BOX (data->top_hbox), data->vbox_center_scrollbox, TRUE, FALSE, 0);
+-
+- data->top_vbox = gtk_vbox_new (FALSE, 0);
+- gtk_box_pack_start (GTK_BOX (data->top_vbox), data->top_hbox, TRUE, FALSE, 0);
++ //gtk_box_pack_start (GTK_BOX (data->top_vbox), data->top_hbox, TRUE, FALSE, 0);
+
+ data->tooltipbox = gtk_event_box_new ();
+ gtk_container_add (GTK_CONTAINER (data->tooltipbox), data->top_vbox);
+@@ -948,7 +948,7 @@
+ gtk_container_remove(GTK_CONTAINER(parent), data->vbox_center_scrollbox);
+
+ if (data->orientation == GTK_ORIENTATION_HORIZONTAL) {
+- gtk_box_pack_start (GTK_BOX (data->top_hbox), data->vbox_center_scrollbox, TRUE, FALSE, 0);
++ gtk_box_pack_start (GTK_BOX (data->top_vbox), data->vbox_center_scrollbox, TRUE, FALSE, 0);
+ } else {
+ gtk_box_pack_start (GTK_BOX (data->top_vbox), data->vbox_center_scrollbox, TRUE, FALSE, 0);
+ }
+
diff --git a/xfce-extra/xfce4-weather/xfce4-weather-0.7.1.ebuild b/xfce-extra/xfce4-weather/xfce4-weather-0.7.1.ebuild
new file mode 100644
index 0000000..e3a5697
--- /dev/null
+++ b/xfce-extra/xfce4-weather/xfce4-weather-0.7.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/xfce-extra/xfce4-weather/xfce4-weather-0.7.1.ebuild,v 1.1 2009/07/22 20:43:26 billie Exp $
+
+inherit autotools xfce4 eutils
+
+xfce4_panel_plugin
+
+DESCRIPTION="Weather monitor panel plugin"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd"
+IUSE="debug"
+
+DOCS="AUTHORS ChangeLog NEWS README TODO"
+
+RDEPEND=">=xfce-base/xfce4-panel-4.3.99.1"
+DEPEND="${RDEPEND}
+ dev-libs/libxml2
+ dev-util/intltool
+ dev-util/xfce4-dev-tools
+ sys-devel/gettext"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/xfce4-weather-horizontal.patch
+ intltoolize --force --copy --automake || die "intltoolize failed"
+ AT_M4DIR="/usr/share/xfce4/dev-tools/m4macros" eautoreconf
+}