summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Boshell <leonardop@gentoo.org>2005-03-28 20:50:07 +0000
committerLeonardo Boshell <leonardop@gentoo.org>2005-03-28 20:50:07 +0000
commit7a32004e72337d67cdb4846f396b33907c11ca29 (patch)
treec87a8fc1b6f2eebe8526b24319fee406642d6b0e
parentUse pkg_setup instead of pkg_preinst. Duh on my part. (diff)
downloadgentoo-2-7a32004e72337d67cdb4846f396b33907c11ca29.tar.gz
gentoo-2-7a32004e72337d67cdb4846f396b33907c11ca29.tar.bz2
gentoo-2-7a32004e72337d67cdb4846f396b33907c11ca29.zip
New patch to fix bug #86939
(Portage version: 2.0.51.19)
-rw-r--r--app-misc/workrave/ChangeLog7
-rw-r--r--app-misc/workrave/files/workrave-1.6.2-nls_macros.patch63
-rw-r--r--app-misc/workrave/workrave-1.6.2.ebuild18
3 files changed, 81 insertions, 7 deletions
diff --git a/app-misc/workrave/ChangeLog b/app-misc/workrave/ChangeLog
index 08a26edf296a..3676fae7ce84 100644
--- a/app-misc/workrave/ChangeLog
+++ b/app-misc/workrave/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-misc/workrave
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/workrave/ChangeLog,v 1.26 2005/01/01 15:30:19 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/workrave/ChangeLog,v 1.27 2005/03/28 20:50:07 leonardop Exp $
+
+ 28 Mar 2005; Leonardo Boshell <leonardop@gentoo.org> workrave-1.6.2.ebuild,
+ files/workrave-1.6.2-nls_macros.patch:
+ New patch to fix a compilation problem with nls-related macros. Resolves
+ bug #86939.
26 Oct 2004; Malcolm Lashley <malc@gentoo.org> workrave-1.6.2.ebuild:
~amd64 bug #65132
diff --git a/app-misc/workrave/files/workrave-1.6.2-nls_macros.patch b/app-misc/workrave/files/workrave-1.6.2-nls_macros.patch
new file mode 100644
index 000000000000..0a72400da1e2
--- /dev/null
+++ b/app-misc/workrave/files/workrave-1.6.2-nls_macros.patch
@@ -0,0 +1,63 @@
+diff -NurdB workrave-1.6.2-orig/common/include/nls.h workrave-1.6.2/common/include/nls.h
+--- workrave-1.6.2-orig/common/include/nls.h 2005-03-28 11:42:00.000000000 -0500
++++ workrave-1.6.2/common/include/nls.h 2005-03-28 14:40:17.000000000 -0500
+@@ -27,28 +27,23 @@
+
+ #include <glib/glist.h>
+
+-#ifdef HAVE_GNOME
+-# include <gnome.h>
+-#else
+-# ifdef ENABLE_NLS
+-# include <locale.h>
+-# include <libintl.h>
+-# define _(String) gettext (String)
+-# ifdef gettext_noop
+-# define N_(String) gettext_noop (String)
+-# else
+-# define N_(String) (String)
+-# endif
++#ifdef ENABLE_NLS
++# ifdef HAVE_GNOME
++# include <gnome.h>
+ # else
+-/* Stubs that do something close enough. */
+-# define textdomain(String) (String)
+-# define gettext(String) (String)
+-# define dgettext(Domain,Message) (Message)
+-# define dcgettext(Domain,Message,Type) (Message)
+-# define bindtextdomain(Domain,Directory) (Domain)
+-# define _(String) (String)
++# include <locale.h>
++# include <libintl.h>
++# define _(String) gettext (String)
++# ifdef gettext_noop
++# define N_(String) gettext_noop (String)
++# else
+ # define N_(String) (String)
++# endif
+ # endif
++#else
++/* Stubs that do something close enough. */
++# define _(String) (String)
++# define N_(String) (String)
+ #endif
+
+ #ifdef __cplusplus
+diff -NurdB workrave-1.6.2-orig/frontend/gtkmm/src/RemoteControl.cc workrave-1.6.2/frontend/gtkmm/src/RemoteControl.cc
+--- workrave-1.6.2-orig/frontend/gtkmm/src/RemoteControl.cc 2005-03-28 11:42:00.000000000 -0500
++++ workrave-1.6.2/frontend/gtkmm/src/RemoteControl.cc 2005-03-28 15:17:39.000000000 -0500
+@@ -22,12 +22,12 @@
+
+ #include "debug.hh"
+
+-#include "RemoteControl.hh"
+
+ #include "GUI.hh"
+ #include "AppletWindow.hh"
+
+ #include "Menus.hh"
++#include "RemoteControl.hh"
+
+ WR_INIT()
+
diff --git a/app-misc/workrave/workrave-1.6.2.ebuild b/app-misc/workrave/workrave-1.6.2.ebuild
index e5044e0a4aa9..5950a1acc8e1 100644
--- a/app-misc/workrave/workrave-1.6.2.ebuild
+++ b/app-misc/workrave/workrave-1.6.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/workrave/workrave-1.6.2.ebuild,v 1.4 2005/01/01 15:30:19 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/workrave/workrave-1.6.2.ebuild,v 1.5 2005/03/28 20:50:07 leonardop Exp $
inherit eutils gnome2
@@ -35,14 +35,20 @@ DEPEND="${RDEPEND}
MAKEOPTS="${MAKEOPTS} -j1"
DOCS="AUTHORS ChangeLog NEWS README"
-G2CONF="${G2CONF} $(use_enable distribution)"
-G2CONF="${G2CONF} $(use_enable nls)"
-G2CONF="${G2CONF} $(use_enable xml2 xml)"
-G2CONF="${G2CONF} $(use_enable gnome)"
+G2CONF="${G2CONF} $(use_enable distribution) $(use_enable nls) \
+$(use_enable xml2 xml) $(use_enable gnome)"
-use gnome && G2CONF="${G2CONF} --enable-gconf"
+use gnome && G2CONF="${G2CONF} --enable-gconf"
if ! use gnome && ! use xml2
then
G2CONF="${G2CONF} --enable-gconf"
fi
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # Removes a few broken macros. See bug #86939.
+ epatch ${FILESDIR}/${P}-nls_macros.patch
+}