aboutsummaryrefslogtreecommitdiffstats
path: root/math/kcalc
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2007-10-30 07:48:18 +0800
committerlofi <lofi@FreeBSD.org>2007-10-30 07:48:18 +0800
commitce19e5f290718d5274adbae84912fb7c1c34067b (patch)
treeac4d973e34d8fcfb1bb6d78f21a3b78b805a1933 /math/kcalc
parent79136bf447f5b514c660c7aa5772fbc34f8f9186 (diff)
downloadfreebsd-ports-gnome-ce19e5f290718d5274adbae84912fb7c1c34067b.tar.gz
freebsd-ports-gnome-ce19e5f290718d5274adbae84912fb7c1c34067b.tar.zst
freebsd-ports-gnome-ce19e5f290718d5274adbae84912fb7c1c34067b.zip
Update to KDE 3.5.8
Diffstat (limited to 'math/kcalc')
-rw-r--r--math/kcalc/distinfo6
-rw-r--r--math/kcalc/files/patch-ksim_monitors_filesystem-filesystemstats.cpp46
2 files changed, 49 insertions, 3 deletions
diff --git a/math/kcalc/distinfo b/math/kcalc/distinfo
index 3d6a9064e821..5c3d382e1973 100644
--- a/math/kcalc/distinfo
+++ b/math/kcalc/distinfo
@@ -1,3 +1,3 @@
-MD5 (KDE/kdeutils-3.5.7.tar.bz2) = 5f167f53bdbf0b8c71c2d0f0ff7593fd
-SHA256 (KDE/kdeutils-3.5.7.tar.bz2) = e72de75dd40e1422e4da5957acafc06278418f60850aea21524d857abb97adf8
-SIZE (KDE/kdeutils-3.5.7.tar.bz2) = 3068596
+MD5 (KDE/kdeutils-3.5.8.tar.bz2) = d1a0fcc83f35428a76cf7523a04ba19c
+SHA256 (KDE/kdeutils-3.5.8.tar.bz2) = 7dcbe3361cc53f9dac4c1bf6f45952d3d2518bec56cd8c07b8e07b4c4f12d0ac
+SIZE (KDE/kdeutils-3.5.8.tar.bz2) = 3059172
diff --git a/math/kcalc/files/patch-ksim_monitors_filesystem-filesystemstats.cpp b/math/kcalc/files/patch-ksim_monitors_filesystem-filesystemstats.cpp
new file mode 100644
index 000000000000..7a29e570a1b7
--- /dev/null
+++ b/math/kcalc/files/patch-ksim_monitors_filesystem-filesystemstats.cpp
@@ -0,0 +1,46 @@
+--- ksim/monitors/filesystem/filesystemstats.cpp.orig 2007-10-08 11:49:45.000000000 +0200
++++ ksim/monitors/filesystem/filesystemstats.cpp 2007-10-26 19:32:09.000000000 +0200
+@@ -30,7 +30,7 @@
+ #include <sys/types.h>
+ #include <sys/param.h>
+
+-#if defined(HAVE_SYS_STATVFS_H) && !defined(__DragonFly__)
++#ifdef HAVE_SYS_STATVFS_H
+ #include <sys/statvfs.h>
+ #elif defined( HAVE_SYS_STATFS_H )
+ #include <sys/statfs.h>
+@@ -59,12 +59,10 @@
+ #include <stdio.h>
+ #include <unistd.h>
+
+-#if defined(HAVE_STATVFS) && !defined(__DragonFly__)
++#ifdef HAVE_STATVFS
+ typedef struct statvfs ksim_statfs;
+-#define ksim_getfsstat getvfsstat
+ #elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD )
+ typedef struct statfs ksim_statfs;
+-#define ksim_getfsstat getfsstat
+ #else
+ typedef struct // fall back for (possibly) non-supported systems
+ {
+@@ -75,7 +73,7 @@
+
+ int fsystemStats( const char * file, ksim_statfs & stats )
+ {
+-#if defined(HAVE_STATVFS) && !defined(__DragonFly__)
++#ifdef HAVE_STATVFS
+ return statvfs( file, &stats );
+ #elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD )
+ return statfs( file, &stats );
+@@ -164,9 +162,9 @@
+ #endif
+
+ #ifdef USE_FSSTAT
+- ksim_statfs sfs[32];
++ struct statfs sfs[32];
+ int fs_count;
+- if ( ( fs_count = ksim_getfsstat( sfs, sizeof( sfs ), 0 ) ) != -1 )
++ if ( ( fs_count = getfsstat( sfs, sizeof( sfs ), 0 ) ) != -1 )
+ {
+ for ( int i = 0; i < fs_count; i++ )
+ {