[127391] trunk/dports/kde

mk at macports.org mk at macports.org
Sun Oct 26 16:24:49 PDT 2014


Revision: 127391
          https://trac.macports.org/changeset/127391
Author:   mk at macports.org
Date:     2014-10-26 16:24:49 -0700 (Sun, 26 Oct 2014)
Log Message:
-----------
kde4-workspace: new port (closes René's ticket #44236)

Added Paths:
-----------
    trunk/dports/kde/kde4-workspace/
    trunk/dports/kde/kde4-workspace/Portfile
    trunk/dports/kde/kde4-workspace/files/
    trunk/dports/kde/kde4-workspace/files/krdb-noX11onOSX.patch
    trunk/dports/kde/kde4-workspace/files/libs-CmakeLists-deactivate-taskmanager.patch
    trunk/dports/kde/kde4-workspace/files/patch-CmakeLists-for-OSX.patch
    trunk/dports/kde/kde4-workspace/files/patch-KControl-CmakeLists.patch

Added: trunk/dports/kde/kde4-workspace/Portfile
===================================================================
--- trunk/dports/kde/kde4-workspace/Portfile	                        (rev 0)
+++ trunk/dports/kde/kde4-workspace/Portfile	2014-10-26 23:24:49 UTC (rev 127391)
@@ -0,0 +1,52 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           kde4   1.1
+
+name                kde4-workspace
+version             4.13.3
+set plasmaversion   4.11.11
+categories          kde kde4
+maintainers         gmail.com:rjvbertin
+license             GPL-2+ LGPL-2.1+
+description         KDE Workspace
+long_description    Brings certain aspects of Linux/X11 KDE workspaces ("Plasma") to OS X, \
+                    notably the System Settings application and the Oxygen style.\
+                    KDE ${version} has Plasma ${plasmaversion}
+platforms           darwin
+homepage            http://www.kde.org/workspaces/
+master_sites        kde:stable/${version}/src/
+use_xz              yes
+distname            kde-workspace-${plasmaversion}
+
+checksums           rmd160  e0cdcde2c455e376a8bf785bb2c3ef114fa9a5f1 \
+                    sha256  f188b003c56d2a40f71d4eea8c91b7ae0febcf25c252c383913281fce73c4d73
+
+#Fully removing X11 only function to prevent automoc to include it (RR 120287)
+patchfiles          patch-CmakeLists-for-OSX.patch \
+                    libs-CmakeLists-deactivate-taskmanager.patch \
+                    patch-KControl-CmakeLists.patch \
+                    krdb-noX11onOSX.patch
+
+depends_build-append port:boost \
+                    port:freetype \
+                    port:libusb
+
+depends_lib-append  port:kdelibs4 \
+                    port:kdepimlibs4 \
+                    port:kactivities \
+                    port:nepomuk-core \
+                    port:libqalculate \
+                    port:qjson \
+                    port:qimageblitz
+
+configure.args-append  -DBUILD_webkit:BOOL=ON
+
+variant nostrip description {Prevent stripping of binaries} {
+	configure.args-delete -DCMAKE_BUILD_TYPE=Release
+	configure.args-append -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_STRIP:FILEPATH=/bin/echo
+}
+
+livecheck.url       http://kde.mirrors.hoobly.com/stable/
+livecheck.regex     (\\d+(\\.\\d+)+)


Property changes on: trunk/dports/kde/kde4-workspace/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/kde/kde4-workspace/files/krdb-noX11onOSX.patch
===================================================================
--- trunk/dports/kde/kde4-workspace/files/krdb-noX11onOSX.patch	                        (rev 0)
+++ trunk/dports/kde/kde4-workspace/files/krdb-noX11onOSX.patch	2014-10-26 23:24:49 UTC (rev 127391)
@@ -0,0 +1,37 @@
+--- kcontrol/krdb/orig.krdb.cpp	2014-09-18 19:24:43.000000000 +0200
++++ kcontrol/krdb/krdb.cpp	2014-09-18 20:20:36.000000000 +0200
+@@ -517,6 +517,7 @@
+ 
+     if( cfgfonts.readEntry( "forceFontDPI", 0 ) != 0 )
+       contents += "Xft.dpi: " + cfgfonts.readEntry( "forceFontDPI" ) + '\n';
++#ifdef Q_WS_X11
+     else
+     {
+       KProcess proc;
+@@ -529,6 +530,7 @@
+         proc.waitForFinished();
+       }
+     }
++#endif // Q_WS_X11
+   }
+ 
+   if (contents.length() > 0)
+@@ -536,13 +538,15 @@
+ 
+   tmpFile.flush();
+ 
++#ifdef Q_WS_X11
+   KProcess proc;
+-#ifndef NDEBUG
++#   ifndef NDEBUG
+   proc << "xrdb" << "-merge" << tmpFile.fileName();
+-#else
++#   else
+   proc << "xrdb" << "-quiet" << "-merge" << tmpFile.fileName();
+-#endif
++#   endif
+   proc.execute();
++#endif // Q_WS_X11
+ 
+   applyGtkStyles(exportColors, 1);
+   applyGtkStyles(exportColors, 2);

Added: trunk/dports/kde/kde4-workspace/files/libs-CmakeLists-deactivate-taskmanager.patch
===================================================================
--- trunk/dports/kde/kde4-workspace/files/libs-CmakeLists-deactivate-taskmanager.patch	                        (rev 0)
+++ trunk/dports/kde/kde4-workspace/files/libs-CmakeLists-deactivate-taskmanager.patch	2014-10-26 23:24:49 UTC (rev 127391)
@@ -0,0 +1,12 @@
+--- libs/CMakeLists.txt.orig	2014-04-28 06:38:04.000000000 +0200
++++ libs/CMakeLists.txt	2014-06-21 12:10:54.000000000 +0200
+@@ -7,7 +7,9 @@
+    add_subdirectory(kdm)
+    add_subdirectory(plasmagenericshell)
+    if(NOT WIN32)
++    if (NOT CMAKE_SYSTEM_NAME MATCHES Darwin)
+         add_subdirectory(taskmanager)
++    endif (NOT CMAKE_SYSTEM_NAME MATCHES Darwin)
+    endif(NOT WIN32)
+ endif(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
+ 

Added: trunk/dports/kde/kde4-workspace/files/patch-CmakeLists-for-OSX.patch
===================================================================
--- trunk/dports/kde/kde4-workspace/files/patch-CmakeLists-for-OSX.patch	                        (rev 0)
+++ trunk/dports/kde/kde4-workspace/files/patch-CmakeLists-for-OSX.patch	2014-10-26 23:24:49 UTC (rev 127391)
@@ -0,0 +1,94 @@
+--- orig.CMakeLists.txt	2014-09-19 14:30:04.000000000 +0200
++++ CMakeLists.txt	2014-10-03 18:55:38.000000000 +0200
+@@ -194,7 +194,7 @@
+ 
+ 
+ include(ConfigureChecks.cmake)
+-if(NOT WIN32)
++if(NOT WIN32 AND NOT APPLE)
+   configure_file(config-unix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-unix.h )
+   configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h )
+   if(NOT CMAKE_INSTALL_PREFIX STREQUAL "/usr")
+@@ -221,15 +221,17 @@
+ 
+ # core apps
+ if(NOT WIN32)
+-   macro_optional_add_subdirectory( kcheckpass )
+-   macro_optional_add_subdirectory( kwin )
+-   macro_optional_add_subdirectory( ksmserver )
+-
+-   find_package(JPEG REQUIRED)
+-   find_package(PNG REQUIRED)
+-   macro_optional_add_subdirectory( ksplash )
++   if(NOT APPLE)
++      macro_optional_add_subdirectory( kcheckpass )
++      macro_optional_add_subdirectory( kwin )
++      macro_optional_add_subdirectory( ksmserver )
++
++      find_package(JPEG REQUIRED)
++      find_package(PNG REQUIRED)
++      macro_optional_add_subdirectory( ksplash )
+ 
+-   macro_optional_add_subdirectory( powerdevil )
++      macro_optional_add_subdirectory( powerdevil )
++   endif(NOT APPLE)
+    macro_optional_add_subdirectory( qguiplatformplugin_kde )
+    if (NOT CMAKE_SYSTEM_NAME MATCHES Darwin)
+       macro_optional_add_subdirectory( ksysguard )
+@@ -238,14 +240,16 @@
+ 
+ if(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
+    macro_optional_add_subdirectory(kcontrol)
+-   macro_optional_add_subdirectory(klipper)
+-   macro_optional_add_subdirectory(kmenuedit)
+-   macro_optional_add_subdirectory(krunner)
+-   macro_optional_add_subdirectory(solid-actions-kcm)
+-   macro_optional_add_subdirectory(kstartupconfig)
+-   macro_optional_add_subdirectory(freespacenotifier)
+-   macro_optional_add_subdirectory(kscreensaver)
+-   macro_optional_add_subdirectory(kinfocenter)
++   if(NOT APPLE)
++      macro_optional_add_subdirectory(klipper)
++      macro_optional_add_subdirectory(kmenuedit)
++      macro_optional_add_subdirectory(krunner)
++      macro_optional_add_subdirectory(solid-actions-kcm)
++      macro_optional_add_subdirectory(kstartupconfig)
++      macro_optional_add_subdirectory(freespacenotifier)
++      macro_optional_add_subdirectory(kscreensaver)
++      macro_optional_add_subdirectory(kinfocenter)
++   endif(NOT APPLE)
+ 
+    # data
+    macro_optional_add_subdirectory(doc)
+@@ -254,7 +258,7 @@
+       macro_optional_add_subdirectory(ktouchpadenabler)
+    endif (Q_WS_X11)
+ 
+-   if(NOT WIN32)
++   if(NOT WIN32 AND NOT APPLE)
+       macro_optional_add_subdirectory(kcminit)
+       macro_optional_add_subdirectory(khotkeys)
+       macro_optional_add_subdirectory(kwrited)
+@@ -269,17 +273,19 @@
+    endif(X11_Xau_FOUND AND X11_Xdmcp_FOUND)
+ endif(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
+ 
+-if(NOT WIN32)
++if(NOT WIN32 AND NOT APPLE)
+     # data
+     macro_optional_add_subdirectory(cursors)
+ endif(NOT WIN32)
+ 
+-macro_optional_add_subdirectory(plasma)
++if(NOT APPLE)
++   macro_optional_add_subdirectory(plasma)
++endif(NOT APPLE)
+ macro_optional_add_subdirectory(statusnotifierwatcher)
+ macro_optional_add_subdirectory(kstyles)
+ 
+ ########### install files ###############
+-if(NOT WIN32)
++if(NOT WIN32 AND NOT APPLE)
+   install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/startkde DESTINATION ${BIN_INSTALL_DIR})
+ endif(NOT WIN32)
+ 

Added: trunk/dports/kde/kde4-workspace/files/patch-KControl-CmakeLists.patch
===================================================================
--- trunk/dports/kde/kde4-workspace/files/patch-KControl-CmakeLists.patch	                        (rev 0)
+++ trunk/dports/kde/kde4-workspace/files/patch-KControl-CmakeLists.patch	2014-10-26 23:24:49 UTC (rev 127391)
@@ -0,0 +1,45 @@
+--- kcontrol/orig.CMakeLists.txt	2014-04-28 06:38:04.000000000 +0200
++++ kcontrol/CMakeLists.txt	2014-08-02 15:31:10.000000000 +0200
+@@ -18,14 +18,14 @@
+     add_subdirectory( keyboard )
+ endif(X11_Xkb_FOUND)
+ 
+-if(NOT WIN32)
++if(NOT WIN32 AND NOT APPLE)
+ add_subdirectory( bell )
+ add_subdirectory( input )
+ add_subdirectory( access )
+ add_subdirectory( screensaver )
+ add_subdirectory( dateandtime )
+ add_subdirectory( autostart )
+-endif(NOT WIN32)
++endif(NOT WIN32 AND NOT APPLE)
+ 
+ add_subdirectory( launch )
+ add_subdirectory( colors )
+@@ -43,9 +43,9 @@
+ add_subdirectory( desktoppaths )
+ 
+ if( FREETYPE_FOUND )
+-    if( WIN32 OR FONTCONFIG_FOUND )
++    if( WIN32 OR APPLE OR FONTCONFIG_FOUND )
+         add_subdirectory( fonts )
+-    endif( WIN32 OR FONTCONFIG_FOUND )
++    endif( WIN32 OR APPLE OR FONTCONFIG_FOUND )
+ endif( FREETYPE_FOUND )
+ if(FONTCONFIG_FOUND AND FREETYPE_FOUND AND NOT WIN32)
+     add_subdirectory( kfontinst )
+--- kcontrol/style/orig.CMakeLists.txt	2014-04-28 06:38:04.000000000 +0200
++++ kcontrol/style/CMakeLists.txt	2014-08-02 12:09:20.000000000 +0200
+@@ -18,9 +18,9 @@
+ 
+ target_link_libraries(kcm_style ${KDE4_KIO_LIBS} ${X11_LIBRARIES}
+     ${KDE4_PLASMA_LIBS} ${KDE4_KNEWSTUFF3_LIBS})
+-if(NOT WIN32)
++if(NOT WIN32 AND NOT APPLE)
+     target_link_libraries(kcm_style kdecorations)
+-endif(NOT WIN32)
++endif(NOT WIN32 AND NOT APPLE)
+ 
+ install(TARGETS kcm_style  DESTINATION ${PLUGIN_INSTALL_DIR})
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141026/12f72127/attachment.html>


More information about the macports-changes mailing list