Added a patch to fix compilation with USE=kdeenablefinal, fixes bug 211027.
authorIngmar Vanhassel <ingmar@gentoo.org>
Mon, 25 Feb 2008 09:43:48 +0000 (09:43 +0000)
committerIngmar Vanhassel <ingmar@gentoo.org>
Mon, 25 Feb 2008 09:43:48 +0000 (09:43 +0000)
Package-Manager: portage-2.1.4.4

kde-base/kdepim/ChangeLog
kde-base/kdepim/files/korganizer-3.5.9-kdeenablefinal.patch [new file with mode: 0644]
kde-base/kdepim/kdepim-3.5.9.ebuild
kde-base/korganizer/ChangeLog
kde-base/korganizer/files/korganizer-3.5.9-kdeenablefinal.patch [new file with mode: 0644]
kde-base/korganizer/korganizer-3.5.9.ebuild

index 1d510a820cfbdbd5e3fca07f862535f97616e1b6..4a1b6dc869f3c547fd94541750e395ca277bd05e 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for kde-base/kdepim
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim/ChangeLog,v 1.302 2008/02/21 17:16:10 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim/ChangeLog,v 1.303 2008/02/25 09:43:47 ingmar Exp $
+
+  25 Feb 2008; Ingmar Vanhassel <ingmar@gentoo.org>
+  +files/korganizer-3.5.9-kdeenablefinal.patch, kdepim-3.5.9.ebuild:
+  Added a patch to fix compilation with USE=kdeenablefinal, fixes bug 211027.
 
   21 Feb 2008; Ingmar Vanhassel <ingmar@gentoo.org>
   +files/certmanager-3.5.9-fix-kdeenablefinal.patch, kdepim-3.5.9.ebuild:
diff --git a/kde-base/kdepim/files/korganizer-3.5.9-kdeenablefinal.patch b/kde-base/kdepim/files/korganizer-3.5.9-kdeenablefinal.patch
new file mode 100644 (file)
index 0000000..6e5c372
--- /dev/null
@@ -0,0 +1,53 @@
+--- branches/KDE/3.5/kdepim/kdgantt/KDGanttViewTaskItem.h      2008/02/24 13:29:26     778731
++++ branches/KDE/3.5/kdepim/kdgantt/KDGanttViewTaskItem.h      2008/02/24 13:32:04     778732
+@@ -60,8 +60,10 @@
+     void setStartTime( const QDateTime& start );
+     void setEndTime( const QDateTime& end );
+ 
+-private:
++protected:
+     void showItem( bool show = true, int coordY = 0 );
++
++private:
+     void initItem();
+     void hideMe();
+     QBrush myBrush, undefinedBrush;
+--- branches/KDE/3.5/kdepim/korganizer/kodaymatrix.cpp 2008/02/24 14:12:56     778743
++++ branches/KDE/3.5/kdepim/korganizer/kodaymatrix.cpp 2008/02/24 14:14:09     778744
+@@ -54,6 +54,7 @@
+ #include <qcursor.h>
+ #include <kpopupmenu.h>
+ #include <X11/Xlib.h>
++#undef FocusIn
+ #undef KeyPress
+ #undef None
+ #undef Status
+--- branches/KDE/3.5/kdepim/korganizer/timelineitem.cpp        2008/02/23 16:28:17     778447
++++ branches/KDE/3.5/kdepim/korganizer/timelineitem.cpp        2008/02/23 16:32:02     778448
+@@ -119,13 +119,13 @@
+     y = coordY;
+   else
+     y = getCoordY();
+-  int startX = myGanttView->myTimeHeader->getCoordX(myStartTime);
+-  int endX = myGanttView->myTimeHeader->getCoordX(myEndTime);
++  int startX = myGanttView->timeHeaderWidget()->getCoordX(myStartTime);
++  int endX = myGanttView->timeHeaderWidget()->getCoordX(myEndTime);
+ 
+   const int mw = QMAX( 1, QMIN( 4, endX - startX ) );
+   if ( !mLeft || mw != mMarkerWidth ) {
+     if ( !mLeft ) {
+-      mLeft = new KDCanvasPolygon( myGanttView->myTimeTable, this, Type_is_KDGanttViewItem );
++      mLeft = new KDCanvasPolygon( myGanttView->timeTableWidget(), this, Type_is_KDGanttViewItem );
+       mLeft->setBrush( Qt::black );
+     }
+     QPointArray a = QPointArray( 4 );
+@@ -137,7 +137,7 @@
+   }
+   if ( !mRight || mw != mMarkerWidth ) {
+     if ( !mRight ) {
+-      mRight = new KDCanvasPolygon( myGanttView->myTimeTable, this, Type_is_KDGanttViewItem );
++      mRight = new KDCanvasPolygon( myGanttView->timeTableWidget(), this, Type_is_KDGanttViewItem );
+       mRight->setBrush( Qt::black );
+     }
+     QPointArray a = QPointArray( 4 );
+
index 7ef222b4c0a55c593946ecad5d535f8d78e215ac..41c33a3f103a2896f2fefb7cd720068d23aff0f2 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim/kdepim-3.5.9.ebuild,v 1.2 2008/02/21 17:16:10 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim/kdepim-3.5.9.ebuild,v 1.3 2008/02/25 09:43:47 ingmar Exp $
 
 EAPI="1"
 inherit kde-dist
@@ -33,7 +33,8 @@ DEPEND="${DEPEND}
        x11-proto/scrnsaverproto
        x11-apps/xhost"
 
-PATCHES="${FILESDIR}/certmanager-${PV}-fix-kdeenablefinal.patch"
+PATCHES="${FILESDIR}/certmanager-${PV}-fix-kdeenablefinal.patch
+       ${FILESDIR}/korganizer-${PV}-kdeenablefinal.patch"
 
 src_unpack() {
        kde_src_unpack
index a87a9a2f2b345dfca312a451fc3bef0c25375e65..14beffe1977d57aa60010d1b47ae1da47f54c28f 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for kde-base/korganizer
 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/korganizer/ChangeLog,v 1.89 2008/02/22 13:32:44 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/korganizer/ChangeLog,v 1.90 2008/02/25 09:42:02 ingmar Exp $
+
+  25 Feb 2008; Ingmar Vanhassel <ingmar@gentoo.org>
+  +files/korganizer-3.5.9-kdeenablefinal.patch, korganizer-3.5.9.ebuild:
+  Added a patch to fix compilation with USE=kdeenablefinal, fixes bug 211027.
 
   22 Feb 2008; Ingmar Vanhassel <ingmar@gentoo.org> korganizer-3.5.8.ebuild,
   korganizer-3.5.9.ebuild:
diff --git a/kde-base/korganizer/files/korganizer-3.5.9-kdeenablefinal.patch b/kde-base/korganizer/files/korganizer-3.5.9-kdeenablefinal.patch
new file mode 100644 (file)
index 0000000..6e5c372
--- /dev/null
@@ -0,0 +1,53 @@
+--- branches/KDE/3.5/kdepim/kdgantt/KDGanttViewTaskItem.h      2008/02/24 13:29:26     778731
++++ branches/KDE/3.5/kdepim/kdgantt/KDGanttViewTaskItem.h      2008/02/24 13:32:04     778732
+@@ -60,8 +60,10 @@
+     void setStartTime( const QDateTime& start );
+     void setEndTime( const QDateTime& end );
+ 
+-private:
++protected:
+     void showItem( bool show = true, int coordY = 0 );
++
++private:
+     void initItem();
+     void hideMe();
+     QBrush myBrush, undefinedBrush;
+--- branches/KDE/3.5/kdepim/korganizer/kodaymatrix.cpp 2008/02/24 14:12:56     778743
++++ branches/KDE/3.5/kdepim/korganizer/kodaymatrix.cpp 2008/02/24 14:14:09     778744
+@@ -54,6 +54,7 @@
+ #include <qcursor.h>
+ #include <kpopupmenu.h>
+ #include <X11/Xlib.h>
++#undef FocusIn
+ #undef KeyPress
+ #undef None
+ #undef Status
+--- branches/KDE/3.5/kdepim/korganizer/timelineitem.cpp        2008/02/23 16:28:17     778447
++++ branches/KDE/3.5/kdepim/korganizer/timelineitem.cpp        2008/02/23 16:32:02     778448
+@@ -119,13 +119,13 @@
+     y = coordY;
+   else
+     y = getCoordY();
+-  int startX = myGanttView->myTimeHeader->getCoordX(myStartTime);
+-  int endX = myGanttView->myTimeHeader->getCoordX(myEndTime);
++  int startX = myGanttView->timeHeaderWidget()->getCoordX(myStartTime);
++  int endX = myGanttView->timeHeaderWidget()->getCoordX(myEndTime);
+ 
+   const int mw = QMAX( 1, QMIN( 4, endX - startX ) );
+   if ( !mLeft || mw != mMarkerWidth ) {
+     if ( !mLeft ) {
+-      mLeft = new KDCanvasPolygon( myGanttView->myTimeTable, this, Type_is_KDGanttViewItem );
++      mLeft = new KDCanvasPolygon( myGanttView->timeTableWidget(), this, Type_is_KDGanttViewItem );
+       mLeft->setBrush( Qt::black );
+     }
+     QPointArray a = QPointArray( 4 );
+@@ -137,7 +137,7 @@
+   }
+   if ( !mRight || mw != mMarkerWidth ) {
+     if ( !mRight ) {
+-      mRight = new KDCanvasPolygon( myGanttView->myTimeTable, this, Type_is_KDGanttViewItem );
++      mRight = new KDCanvasPolygon( myGanttView->timeTableWidget(), this, Type_is_KDGanttViewItem );
+       mRight->setBrush( Qt::black );
+     }
+     QPointArray a = QPointArray( 4 );
+
index bf9a4d18da667de92ddecc9dabe90520c0225159..b813caf674ac7eb85d34629345065ee30f06a62d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/korganizer/korganizer-3.5.9.ebuild,v 1.2 2008/02/22 13:32:44 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/korganizer/korganizer-3.5.9.ebuild,v 1.3 2008/02/25 09:42:02 ingmar Exp $
 
 KMNAME=kdepim
 EAPI="1"
@@ -55,9 +55,16 @@ KMEXTRA="
        kdgantt
        kontact/plugins/korganizer/" # We add here the kontact's plugin instead of compiling it with kontact because it needs a lot of korganizer deps.
 
+PATCHES="${FILESDIR}/${P}-kdeenablefinal.patch"
+
 src_unpack() {
        kde-meta_src_unpack
 
        # Broken test
        sed -e "s:check_PROGRAMS = testalarmdlg:check_PROGRAMS =:" -i korganizer/korgac/Makefile.am || die "sed failed"
 }
+
+src_compile() {
+       filter-flags -fvisibility-inlines-hidden
+       kde_src_compile
+}