commit:     89f1225543db769277015aab351e720d4a0b31ca
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 10 20:50:26 2020 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Thu Dec 10 20:50:34 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89f12255

gnustep-base/gnustep-gui: fix compilation with dev-libs/icu-68

Thanks Luis Cáceres <lacaceres97 <AT> gmail.com> for bug report and patch

Closes: https://bugs.gentoo.org/759202
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 .../gnustep-gui/files/gnustep-gui-0.28.0-icu68.patch      | 15 +++++++++++++++
 gnustep-base/gnustep-gui/gnustep-gui-0.28.0.ebuild        |  2 ++
 2 files changed, 17 insertions(+)

diff --git a/gnustep-base/gnustep-gui/files/gnustep-gui-0.28.0-icu68.patch 
b/gnustep-base/gnustep-gui/files/gnustep-gui-0.28.0-icu68.patch
new file mode 100644
index 00000000000..5bda307b951
--- /dev/null
+++ b/gnustep-base/gnustep-gui/files/gnustep-gui-0.28.0-icu68.patch
@@ -0,0 +1,15 @@
+--- a/Headers/Additions/GNUstepGUI/GSCharacterPanel.h.old
++++ b/Headers/Additions/GNUstepGUI/GSCharacterPanel.h
+@@ -26,6 +26,12 @@
+    Free Software Foundation, 51 Franklin Street, Fifth Floor, 
+    Boston, MA 02110-1301, USA.
+ */ 
++#ifndef TRUE
++#define TRUE 1
++#endif
++#ifndef FALSE
++#define FALSE 0
++#endif
+ 
+ #ifndef _GNUstep_H_GSCharacterPanel
+ #define _GNUstep_H_GSCharacterPanel

diff --git a/gnustep-base/gnustep-gui/gnustep-gui-0.28.0.ebuild 
b/gnustep-base/gnustep-gui/gnustep-gui-0.28.0.ebuild
index 9671dea9928..4b7effe4b8f 100644
--- a/gnustep-base/gnustep-gui/gnustep-gui-0.28.0.ebuild
+++ b/gnustep-base/gnustep-gui/gnustep-gui-0.28.0.ebuild
@@ -27,6 +27,8 @@ DEPEND="${GNUSTEP_CORE_DEPEND}
        speech? ( app-accessibility/flite )"
 RDEPEND="${DEPEND}"
 
+PATCHES=( "${FILESDIR}"/${P}-icu68.patch )
+
 src_prepare() {
        gnustep-base_src_prepare
 

Reply via email to