debian/0000755000000000000000000000000011753241477007201 5ustar debian/menu0000644000000000000000000000020211741247131010050 0ustar ?package(grpn):needs="X11" section="Applications/Science/Mathematics"\ title="grpn" hints="Calculators" command="/usr/bin/grpn" debian/patches/0000755000000000000000000000000011741247242010621 5ustar debian/patches/03_gtk2.patch0000644000000000000000000000356011741247242013017 0ustar From: Barry deFreese Subject: Gtk2 port diff --git a/Makefile b/Makefile index 10e8718..f51dde5 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,6 @@ PREFIX = /usr/local/ # What compiler should be used CC = gcc -# Where to find the gtk-config script -GTK_DIR = -#GTK_DIR = /loc/libs/gtk+-1.0.6/bin/ - - # NOTE: # # add -DGTK_VER_1_1 to the CFLAGS if you are using GTK version 1.1.0 or higher @@ -20,7 +15,7 @@ GTK_DIR = # add -DUSE_GNOME if you want to make grpn GNOME compliant. -CFLAGS = -g -O2 -I/usr/X11/include `$(GTK_DIR)gtk-config --cflags` -DGTK_VER_1_1 +CFLAGS = -g -O2 -I/usr/X11/include `pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1 DFLAGS = -L/usr/X11/lib @@ -35,10 +30,7 @@ OBJS = test_gtk_ver.o real.o complex.o matrix.o number.o \ setup_buttons.o callback_buttons.o editor.o \ error.o help.o mode.o undo.o - - -LIBS = `$(GTK_DIR)gtk-config --libs` -lX11 -lm - +LIBS = `pkg-config --libs gtk+-2.0` -lX11 -lm grpn: $(OBJS) $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS) diff --git a/debian/patches/03_gtk2.dpatch b/debian/patches/03_gtk2.dpatch old mode 100755 new mode 100644 diff --git a/lcd.c b/lcd.c index 10de9d2..2ecb1de 100644 --- a/lcd.c +++ b/lcd.c @@ -677,7 +677,7 @@ void convertSelection( #else switch(selection->target){ #endif - case GDK_TARGET_STRING: +/* case GDK_TARGET_STRING: */ case TARGET_STRING: gtk_selection_data_set( selection, diff --git a/main.c b/main.c index 446ce85..d5ce8b9 100644 --- a/main.c +++ b/main.c @@ -156,8 +156,9 @@ 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; +/* BDD - No longer in Gtk2.x */ +/* gtk_widget_set_default_style(new_style); */ } debian/patches/01_fix_locale.patch0000644000000000000000000000311011741247242014242 0ustar From: Wartan Hachaturow Subject: Fix problems with locale. diff -urNad grpn-1.1.2/funcs.c /tmp/dpep.7TXnG1/grpn-1.1.2/funcs.c --- grpn-1.1.2/funcs.c 2004-10-17 15:55:23.000000000 +0400 +++ /tmp/dpep.7TXnG1/grpn-1.1.2/funcs.c 2004-10-17 15:58:10.000000000 +0400 @@ -20,7 +20,9 @@ /* funcs.c by Paul Wilkins */ #include +#include #include +#include #include #include "stack.h" @@ -41,8 +43,11 @@ void readLine(char *line){ int pos; /* the number of characters in the number */ Number *n1; + struct lconv *locale; + + locale = localeconv(); - if((*line != '"' && *line != '\'') && (isDigitBase(*line) || *line == '-' || *line == '+' || *line == '.')){ + if((*line != '"' && *line != '\'') && (isDigitBase(*line) || *line == '-' || *line == '+' || *line == *(locale->decimal_point))){ /* try to read in a number */ if(NULL == (n1 = readNumber(line, &pos))){ @@ -777,6 +782,7 @@ if(1 != sscanf(line, "%lg%n", &num, nread)){ return NULL; } + break; case OCTAL: *nread = 0; diff -urNad grpn-1.1.2/main.c /tmp/dpep.7TXnG1/grpn-1.1.2/main.c --- grpn-1.1.2/main.c 2004-10-17 15:55:16.000000000 +0400 +++ /tmp/dpep.7TXnG1/grpn-1.1.2/main.c 2004-10-17 15:58:22.000000000 +0400 @@ -23,6 +23,7 @@ */ #include +#include #ifdef USE_GNOME #include #endif @@ -69,6 +70,7 @@ GnomeAppBar *appbar; #endif + setlocale(LC_ALL, ""); #ifdef USE_GNOME gnome_init("grpn", "1.0", argc, argv); gnome_app_new("grpn", "grpn"); debian/patches/02_add_includes.patch0000644000000000000000000000527311741247242014570 0ustar From: Michael Bienia Subject: Add missing includes diff -Nur grpn-1.1.2/callback_menu.c grpn-1.1.2.patched/callback_menu.c --- grpn-1.1.2/callback_menu.c 2002-04-04 05:46:10.000000000 +0200 +++ grpn-1.1.2.patched/callback_menu.c 2006-12-13 15:46:29.000000000 +0100 @@ -20,6 +20,7 @@ /* callback_menu.h by Paul Wilkins 3/15/97 */ #include +#include #include #include "menu.h" diff -Nur grpn-1.1.2/complex.c grpn-1.1.2.patched/complex.c --- grpn-1.1.2/complex.c 2002-04-04 05:46:10.000000000 +0200 +++ grpn-1.1.2.patched/complex.c 2006-12-13 15:43:45.000000000 +0100 @@ -22,6 +22,7 @@ #include #include #include +#include #include "complex.h" #include "real.h" diff -Nur grpn-1.1.2/help.c grpn-1.1.2.patched/help.c --- grpn-1.1.2/help.c 2002-04-04 05:46:11.000000000 +0200 +++ grpn-1.1.2.patched/help.c 2006-12-13 15:48:01.000000000 +0100 @@ -19,6 +19,7 @@ */ #include #include +#include #include #include "help.h" diff -Nur grpn-1.1.2/lcd.c grpn-1.1.2.patched/lcd.c --- grpn-1.1.2/lcd.c 2002-04-04 05:46:11.000000000 +0200 +++ grpn-1.1.2.patched/lcd.c 2006-12-13 15:46:09.000000000 +0100 @@ -20,6 +20,8 @@ /* lcd.c by Paul Wilkins 3/22/97 */ #include +#include +#include #include #include diff -Nur grpn-1.1.2/main.c grpn-1.1.2.patched/main.c --- grpn-1.1.2/main.c 2006-12-13 15:58:54.000000000 +0100 +++ grpn-1.1.2.patched/main.c 2006-12-13 15:59:57.000000000 +0100 @@ -23,6 +23,7 @@ */ #include +#include #include #ifdef USE_GNOME #include diff -Nur grpn-1.1.2/mode.c grpn-1.1.2.patched/mode.c --- grpn-1.1.2/mode.c 2002-04-04 05:46:11.000000000 +0200 +++ grpn-1.1.2.patched/mode.c 2006-12-13 15:48:15.000000000 +0100 @@ -20,6 +20,7 @@ /* setup mode.c by Paul Wilkins 2/8/98 */ #include +#include #include #include "mode.h" diff -Nur grpn-1.1.2/process_input.c grpn-1.1.2.patched/process_input.c --- grpn-1.1.2/process_input.c 2002-04-04 05:46:11.000000000 +0200 +++ grpn-1.1.2.patched/process_input.c 2006-12-13 15:46:51.000000000 +0100 @@ -20,6 +20,7 @@ /* process_input.c by Paul Wilkins 3/21/97 */ #include +#include #include #include diff -Nur grpn-1.1.2/run_cmd.c grpn-1.1.2.patched/run_cmd.c --- grpn-1.1.2/run_cmd.c 2002-04-04 05:46:11.000000000 +0200 +++ grpn-1.1.2.patched/run_cmd.c 2006-12-13 15:44:09.000000000 +0100 @@ -20,6 +20,7 @@ /* run_cmd.c by Paul Wilkins */ #include +#include #include #include "buttons.h" debian/patches/series0000644000000000000000000000007011741247237012037 0ustar 01_fix_locale.patch 02_add_includes.patch 03_gtk2.patch debian/compat0000644000000000000000000000000211741247375010377 0ustar 9 debian/grpn.desktop0000644000000000000000000000027111741247131011530 0ustar [Desktop Entry] Version=1.0 Name=Grpn Calculator GenericName=Calculator Comment=A reverse polish notation calculator Exec=grpn Icon=grpn Type=Application Categories=Calculator;Utility; debian/control0000644000000000000000000000105411753241257010600 0ustar Source: grpn Section: math Priority: extra Maintainer: Wartan Hachaturow Build-Depends: debhelper (>= 9), libgtk2.0-dev Standards-Version: 3.9.3 Package: grpn Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: GTK+ reverse polish notation calculator grpn is an RPN calculator which uses the GTK+ widgets. It works with real and complex numbers, has 4 different radix modes, supports general math functions along with logarithmic and trigonometric functions. Calculator stack is only limited by free memory. debian/dirs0000644000000000000000000000003311741247131010047 0ustar usr/bin usr/share/man/man1 debian/changelog0000644000000000000000000000544111753241477011057 0ustar grpn (1.1.2-3.1) unstable; urgency=low * Non-maintainer upload; ACKed by the maintainer. * Remove deprecated dpatch and upgrade to packaging format "3.0 quilt" (Closes: #668359). * Update to Standards-Version to 3.9.3 and debhelper to 9. * Add build-arch and build-indep targets; use dh_prep in rules file. * Fix dh_desktop-is-deprecated (Lintian) by removing it. -- Jari Aalto Fri, 11 May 2012 19:50:07 +0300 grpn (1.1.2-3) unstable; urgency=low * "Thank you, Barry" release * Changes by Barry deFreese : * Build with Gtk2. (Closes: #515316). + Change libgtk1.2-dev build-dep to libgtk2.0-dev. + 03_gtk2.dpatch. * Added .desktop file (Closes: #375515) + Thanks to Vassilis Pandis. * debian/patches/02_add_includes.dpatch: add missing includes + Thanks to Michael Bienia. * Make clean not ignore errors. * Add ${misc:Depends} for debhelper package. * Quote strings in menu file. * Add appropriate copyright holder to debian/copyright. * Version path to GPL license. (GPL-2). * Bump debhelper build-dep to >= 5. * Move DH_COMPAT from rules to debian/compat and set to 5. * Bump Standards Version to 3.8.0. + Menu policy transition. -- Wartan Hachaturow Mon, 02 Mar 2009 15:22:22 +0300 grpn (1.1.2-2) unstable; urgency=low * Fixed problems with locale (Closes: #253415) * Extended the description (Closes: #209527) -- Wartan Hachaturow Sun, 17 Oct 2004 16:04:58 +0400 grpn (1.1.2-1) unstable; urgency=low * Adopted (Closes: #174112) * New upstream version * Upstream version now has its own manpage, replace the Debian one. * Binaries and manual pages no more get installed in /usr/X11R6, since the package doesn't use imake. * Removed emacs cruft from changelog. * Changed build depends to remove gnome-dev, since package gets compiled without gnome toolbar support. -- Wartan Hachaturow Wed, 25 Dec 2002 11:47:07 +0300 grpn (1.1.1-3) unstable; urgency=low * Adopted (Closes: #87153) * Added hint (Closes: #80029) * Added a manpage * Added build-depends (Closes: #84488) -- Brian Russo Sat, 24 Feb 2001 01:44:59 -1000 grpn (1.1.1-2) unstable; urgency=low * Recompiled with latest libraries. * Upgraded Standards-Version. -- Robert S. Edmonds Mon, 16 Oct 2000 23:36:50 +0000 grpn (1.1.1-1) unstable; urgency=low * New upstream release. -- Robert S. Edmonds Wed, 9 Aug 2000 14:49:24 -0400 grpn (1.1.0-1) unstable; urgency=low * New upstream release. -- Robert S. Edmonds Sat, 12 Jun 1999 16:24:01 -0400 grpn (1.0.4-1) unstable; urgency=low * Initial Release. -- Robert S. Edmonds Mon, 22 Mar 1999 19:41:45 -0500 debian/rules0000755000000000000000000000240611753241445010256 0ustar #!/usr/bin/make -f # debian/rules for grpn, GNU Copyright 2001 Brian Russo # Derived from works of Craig Small, Joey Hess, and Christoph Lameter # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PACKAGE=grpn build-arch: build build-indep: build build: build-stamp build-stamp: dh_testdir $(MAKE) touch build-stamp clean: clean1 clean1: dh_testdir dh_testroot $(MAKE) clean dh_clean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot dh_prep dh_installdirs install -D -m644 debian/grpn.desktop $(CURDIR)/debian/$(PACKAGE)/usr/share/applications/grpn.desktop install -o root -m 0755 $(CURDIR)/$(PACKAGE) $(CURDIR)/debian/$(PACKAGE)/usr/bin/ # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installmenu dh_installchangelogs CHANGES dh_installman dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary clean1 debian/docs0000644000000000000000000000001011741247131010031 0ustar README debian/copyright0000644000000000000000000000072111741247375011134 0ustar This package was debianized by Robert S. Edmonds on Mon, 22 Mar 1999 19:41:45 -0500. It was downloaded from: ftp://wilkins.ne.mediaone.net/pub/grpn-1.1.1.tar.gz Upstream Author: Paul Wilkins Copyright: Copyright (C) 2000,2002 Paul Wilkins License: GPL (GNU GPL license v2 included in source code) The GNU GPL may be viewed on Debian GNU/Linux systems in /usr/share/common-licenses/GPL-2 debian/source/0000755000000000000000000000000011741247411010470 5ustar debian/source/format0000644000000000000000000000001411741247411011676 0ustar 3.0 (quilt) debian/manpages0000644000000000000000000000000711741247131010702 0ustar grpn.1