From fefb188d837ae04d18926ac3a349f7f58737ef99 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 3 Jun 2026 02:36:54 +0000 Subject: [PATCH] unbreak build on llvm 22 --- math/grpn/Makefile | 2 +- math/grpn/patches/patch-main_c | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/math/grpn/Makefile b/math/grpn/Makefile index 4118bfa9145..97fe0cb66b3 100644 --- a/math/grpn/Makefile +++ b/math/grpn/Makefile @@ -1,7 +1,7 @@ COMMENT= graphical reverse polish notation calculator DISTNAME= grpn-1.1.2 -REVISION= 10 +REVISION= 11 CATEGORIES= math x11 HOMEPAGE= http://lashwhip.com/grpn.html diff --git a/math/grpn/patches/patch-main_c b/math/grpn/patches/patch-main_c index 9ece851c1c7..ffdfdd8bbef 100644 --- a/math/grpn/patches/patch-main_c +++ b/math/grpn/patches/patch-main_c @@ -1,7 +1,8 @@ Port to gtk+2. ---- main.c.orig Thu Apr 4 05:46:11 2002 -+++ main.c Tue Mar 23 21:33:01 2010 +Index: main.c +--- main.c.orig ++++ main.c @@ -23,6 +23,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, */ @@ -11,13 +12,22 @@ Port to gtk+2. #ifdef USE_GNOME #include #endif +@@ -50,7 +52,7 @@ void usage(char *str){ + } + + GtkWidget *main_w; +-main(int argc, char *argv[]) ++int main(int argc, char *argv[]) + { + int n; + int rows, cols; @@ -156,8 +158,8 @@ main(int argc, char *argv[]) exit(0); } new_style = gtk_style_copy(default_style); - new_style->font = new_font; - gtk_widget_set_default_style(new_style); -+ new_style->font_desc = new_font; ++ new_style->font_desc = pango_font_description_copy(default_style->font_desc); +/* gtk_widget_set_default_style(new_style); */ }