gprn: don't use precompiled objects
This commit is contained in:
parent
c7d3b05347
commit
59c99f2497
2 changed files with 66 additions and 1 deletions
57
srcpkgs/grpn/patches/gcc14.patch
Normal file
57
srcpkgs/grpn/patches/gcc14.patch
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
Fix build with gcc14, comment code broken with gcc14 and gtk+2, it is a nop anyway.
|
||||||
|
|
||||||
|
diff -rup funcs.c.orig funcs.c
|
||||||
|
--- a/funcs.c
|
||||||
|
+++ b/funcs.c
|
||||||
|
@@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suit
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <locale.h>
|
||||||
|
+#include <ctype.h>
|
||||||
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
#include "stack.h"
|
||||||
|
diff -rup process_input.c.orig process_input.c
|
||||||
|
--- a/process_input.c
|
||||||
|
+++ b/process_input.c
|
||||||
|
@@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suit
|
||||||
|
#include "editor.h"
|
||||||
|
#include "error.h"
|
||||||
|
#include "number.h"
|
||||||
|
+#include "stack.h"
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
|
|
||||||
|
diff -rup main.c.orig main.c
|
||||||
|
--- a/main.c
|
||||||
|
+++ b/main.c
|
||||||
|
@@ -53,7 +53,7 @@ void usage(char *str){
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget *main_w;
|
||||||
|
-main(int argc, char *argv[])
|
||||||
|
+int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
int n;
|
||||||
|
int rows, cols;
|
||||||
|
@@ -174,13 +174,13 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
|
/* set the font if told */
|
||||||
|
if(btn_font != NULL){
|
||||||
|
- default_style = gtk_widget_get_default_style();
|
||||||
|
- if(NULL == (new_font = gdk_font_load(btn_font))){
|
||||||
|
- fprintf(stderr, "Unable to load font %s.\n", btn_font);
|
||||||
|
- exit(0);
|
||||||
|
- }
|
||||||
|
- new_style = gtk_style_copy(default_style);
|
||||||
|
- new_style->font_desc = new_font;
|
||||||
|
+ //default_style = gtk_widget_get_default_style();
|
||||||
|
+ //if(NULL == (new_font = gdk_font_load(btn_font))){
|
||||||
|
+ // fprintf(stderr, "Unable to load font %s.\n", btn_font);
|
||||||
|
+ // exit(0);
|
||||||
|
+ //}
|
||||||
|
+ //new_style = gtk_style_copy(default_style);
|
||||||
|
+ //new_style->font_desc = new_font;
|
||||||
|
/* BDD - No longer in Gtk2.x */
|
||||||
|
/* gtk_widget_set_default_style(new_style); */
|
||||||
|
}
|
|
@ -1,8 +1,11 @@
|
||||||
# Template file for 'grpn'
|
# Template file for 'grpn'
|
||||||
pkgname=grpn
|
pkgname=grpn
|
||||||
version=1.4.1
|
version=1.4.1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
|
make_use_env=true
|
||||||
|
hostmakedepends="pkg-config"
|
||||||
|
makedepends="gtk+-devel"
|
||||||
short_desc="GTK+ RPN Calculator"
|
short_desc="GTK+ RPN Calculator"
|
||||||
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
|
@ -11,6 +14,11 @@ distfiles="${DEBIAN_SITE}/main/g/grpn/grpn_${version}.orig.tar.gz"
|
||||||
checksum=1e43c507795a9107bfb1e4f16c1da706579a22f254ef81422418121bebe60345
|
checksum=1e43c507795a9107bfb1e4f16c1da706579a22f254ef81422418121bebe60345
|
||||||
nocross=yes # Practically abandonware, and only requested for x86
|
nocross=yes # Practically abandonware, and only requested for x86
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
# Remove pre-compiled object files
|
||||||
|
make clean
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vmkdir usr/share
|
vmkdir usr/share
|
||||||
mv $DESTDIR/usr/man/* $DESTDIR/usr/share/man
|
mv $DESTDIR/usr/man/* $DESTDIR/usr/share/man
|
||||||
|
|
Loading…
Add table
Reference in a new issue