summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Peterson <lavajoe@gentoo.org>2007-10-21 16:54:43 +0000
committerJoe Peterson <lavajoe@gentoo.org>2007-10-21 16:54:43 +0000
commit90ec188cb11a85163da7064033b1ecc51fd013a6 (patch)
treee00ac770e5d1bd6f592b1a4af37281faf42453ed /kde-base
parentPatch to compile on FreeBSD (diff)
downloadgentoo-2-90ec188cb11a85163da7064033b1ecc51fd013a6.tar.gz
gentoo-2-90ec188cb11a85163da7064033b1ecc51fd013a6.tar.bz2
gentoo-2-90ec188cb11a85163da7064033b1ecc51fd013a6.zip
Patch to compile on FreeBSD
(Portage version: 2.1.3.15)
Diffstat (limited to 'kde-base')
-rw-r--r--kde-base/ksim/ChangeLog6
-rw-r--r--kde-base/ksim/files/ksim-3.5.8-freebsd.patch29
-rw-r--r--kde-base/ksim/ksim-3.5.8.ebuild4
3 files changed, 37 insertions, 2 deletions
diff --git a/kde-base/ksim/ChangeLog b/kde-base/ksim/ChangeLog
index e8bd19191168..e70d76f46dd0 100644
--- a/kde-base/ksim/ChangeLog
+++ b/kde-base/ksim/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for kde-base/ksim
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/ksim/ChangeLog,v 1.80 2007/10/19 23:30:50 philantrop Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/ksim/ChangeLog,v 1.81 2007/10/21 16:54:43 lavajoe Exp $
+
+ 21 Oct 2007; Joe Peterson <lavajoe@gentoo.org>
+ +files/ksim-3.5.8-freebsd.patch, ksim-3.5.8.ebuild:
+ Patch to compile on FreeBSD
19 Oct 2007; Wulf C. Krueger <philantrop@gentoo.org> +ksim-3.5.8.ebuild:
Bump to KDE 3.5.8.
diff --git a/kde-base/ksim/files/ksim-3.5.8-freebsd.patch b/kde-base/ksim/files/ksim-3.5.8-freebsd.patch
new file mode 100644
index 000000000000..fd7c106985eb
--- /dev/null
+++ b/kde-base/ksim/files/ksim-3.5.8-freebsd.patch
@@ -0,0 +1,29 @@
+--- ksim-3.5.8/ksim/monitors/filesystem/filesystemstats.cpp.old 2007-10-08 03:49:45 -0600
++++ ksim-3.5.8/ksim/monitors/filesystem/filesystemstats.cpp 2007-10-20 22:46:53 -0600
+@@ -30,7 +30,7 @@
+ #include <sys/types.h>
+ #include <sys/param.h>
+
+-#if defined(HAVE_SYS_STATVFS_H) && !defined(__DragonFly__)
++#if defined(HAVE_SYS_STATVFS_H) && !defined(__FreeBSD__) && !defined(__DragonFly__)
+ #include <sys/statvfs.h>
+ #elif defined( HAVE_SYS_STATFS_H )
+ #include <sys/statfs.h>
+@@ -59,7 +59,7 @@
+ #include <stdio.h>
+ #include <unistd.h>
+
+-#if defined(HAVE_STATVFS) && !defined(__DragonFly__)
++#if defined(HAVE_STATVFS) && !defined(__FreeBSD__) && !defined(__DragonFly__)
+ typedef struct statvfs ksim_statfs;
+ #define ksim_getfsstat getvfsstat
+ #elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD )
+@@ -75,7 +75,7 @@
+
+ int fsystemStats( const char * file, ksim_statfs & stats )
+ {
+-#if defined(HAVE_STATVFS) && !defined(__DragonFly__)
++#if defined(HAVE_STATVFS) && !defined(__FreeBSD__) && !defined(__DragonFly__)
+ return statvfs( file, &stats );
+ #elif defined( HAVE_STATFS ) || defined( Q_OS_FREEBSD )
+ return statfs( file, &stats );
diff --git a/kde-base/ksim/ksim-3.5.8.ebuild b/kde-base/ksim/ksim-3.5.8.ebuild
index aae72654add8..f191d37c3f11 100644
--- a/kde-base/ksim/ksim-3.5.8.ebuild
+++ b/kde-base/ksim/ksim-3.5.8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/ksim/ksim-3.5.8.ebuild,v 1.1 2007/10/19 23:30:50 philantrop Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/ksim/ksim-3.5.8.ebuild,v 1.2 2007/10/21 16:54:43 lavajoe Exp $
KMNAME=kdeutils
MAXKDEVER=$PV
@@ -14,6 +14,8 @@ DEPEND="snmp? ( net-analyzer/net-snmp )"
RDEPEND="${DEPEND}"
+PATCHES="${FILESDIR}/ksim-3.5.8-freebsd.patch"
+
src_unpack() {
kde-meta_src_unpack
sed -i -e "s:Hidden=true:Hidden=false:" ksim/ksim.desktop