[70955] trunk/dports/gnome/gcalctool
devans at macports.org
devans at macports.org
Fri Aug 27 11:58:16 PDT 2010
Revision: 70955
http://trac.macports.org/changeset/70955
Author: devans at macports.org
Date: 2010-08-27 11:58:15 -0700 (Fri, 27 Aug 2010)
Log Message:
-----------
gcalctool: update to version 5.30.2.
Modified Paths:
--------------
trunk/dports/gnome/gcalctool/Portfile
Added Paths:
-----------
trunk/dports/gnome/gcalctool/files/
trunk/dports/gnome/gcalctool/files/patch-src-gcalcmd.c.diff
Modified: trunk/dports/gnome/gcalctool/Portfile
===================================================================
--- trunk/dports/gnome/gcalctool/Portfile 2010-08-27 18:56:55 UTC (rev 70954)
+++ trunk/dports/gnome/gcalctool/Portfile 2010-08-27 18:58:15 UTC (rev 70955)
@@ -4,7 +4,7 @@
PortSystem 1.0
name gcalctool
-version 5.26.3
+version 5.30.2
set branch [join [lrange [split ${version} .] 0 1] .]
description a GNOME 2 desktop calculator.
long_description gcalctool is the desktop calculator that has been proposed \
@@ -15,9 +15,9 @@
homepage http://calctool.sourceforge.net/
master_sites gnome:sources/${name}/${branch}/
-checksums md5 4208595c1992c50a7f71882a23e76190 \
- sha1 311b7dda8569e6737af20c3ba61af73582e7ee3a \
- rmd160 02852922cf88825c8473851bf32fbd33a59a03ff
+checksums md5 9357de6835da305ee4f0ebad509b509a \
+ sha1 3d0d2f90695dc20fbd3eadddb49f9666fb9eebed \
+ rmd160 af3e031d370f2fc9a88cb821ebe59e9a5913ee2d
use_bzip2 yes
@@ -27,8 +27,12 @@
port:gnome-doc-utils
depends_lib port:gconf \
- port:libglade2
+ port:flex \
+ port:bison \
+ port:libxml2
+patchfiles patch-src-gcalcmd.c.diff
+
configure.args --disable-scrollkeeper \
--disable-schemas-install
Added: trunk/dports/gnome/gcalctool/files/patch-src-gcalcmd.c.diff
===================================================================
--- trunk/dports/gnome/gcalctool/files/patch-src-gcalcmd.c.diff (rev 0)
+++ trunk/dports/gnome/gcalctool/files/patch-src-gcalcmd.c.diff 2010-08-27 18:58:15 UTC (rev 70955)
@@ -0,0 +1,26 @@
+--- src/gcalccmd.c.orig 2010-08-27 09:17:11.000000000 -0700
++++ src/gcalccmd.c 2010-08-27 09:18:39.000000000 -0700
+@@ -73,6 +73,7 @@
+ main(int argc, char **argv)
+ {
+ char *equation;
++ char *s;
+ int bytes_read;
+ size_t nbytes = MAXLINE;
+
+@@ -82,8 +83,13 @@
+ equation = (char *) malloc(MAXLINE * sizeof(char));
+ while (1) {
+ printf("> ");
+- bytes_read = getline(&equation, &nbytes, stdin);
+-
++// bytes_read = getline(&equation, &nbytes, stdin);
++ if ((s = fgets(equation, nbytes, stdin)) == NULL) {
++ bytes_read = 0;
++ } else {
++ bytes_read = strlen(equation);
++ }
++
+ if (bytes_read >= 0)
+ str_adjust(equation);
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100827/37fffd64/attachment.html>
More information about the macports-changes
mailing list