[119534] trunk/dports/kde/kdepimlibs4

nicos at macports.org nicos at macports.org
Tue Apr 29 09:41:39 PDT 2014


Revision: 119534
          https://trac.macports.org/changeset/119534
Author:   nicos at macports.org
Date:     2014-04-29 09:41:39 -0700 (Tue, 29 Apr 2014)
Log Message:
-----------
kdepimlibs4: add a subport for kioslaves components

Modified Paths:
--------------
    trunk/dports/kde/kdepimlibs4/Portfile

Added Paths:
-----------
    trunk/dports/kde/kdepimlibs4/files/patch-CMakeLists-kioslaves.diff

Modified: trunk/dports/kde/kdepimlibs4/Portfile
===================================================================
--- trunk/dports/kde/kdepimlibs4/Portfile	2014-04-29 16:31:59 UTC (rev 119533)
+++ trunk/dports/kde/kdepimlibs4/Portfile	2014-04-29 16:41:39 UTC (rev 119534)
@@ -22,7 +22,7 @@
 
 #The only binaries linking to openssl (through QtNetwork) are libkimap.dylib
 #and libmailtransport.dylib, which are purely LPGL, thus not conflicting with
-#openssl license
+#openssl license, apart from plugins in kioslaves
 license_noconflict  openssl
 
 depends_lib-append  port:kdelibs4 \
@@ -34,7 +34,7 @@
                     port:prison \
                     port:gpgme
 
-#Suppress build of unused kioslave
+#Suppress build of kioslaves which conflict with openssl
 patchfiles-append   patch-CMakeLists.diff
 
 configure.args-append   -DMAILTRANSPORT_INPROCESS_SMTP=Off
@@ -47,5 +47,23 @@
     }
 }
 
+subport kdepimlibs4-kioslaves {
+
+#kioslaves components conflict with openssl license
+license_noconflict-delete   openssl
+
+#Builds only kioslaves components
+patchfiles-delete   patch-CMakeLists.diff
+patchfiles-append   patch-CMakeLists-kioslaves.diff
+
+#Suppresses files already installed by kdepimlibs4 main port
+post-destroot {
+    delete ${destroot}${prefix}/lib/cmake/KdepimLibs/KdepimLibsConfig.cmake \
+           ${destroot}${prefix}/lib/cmake/KdepimLibs/KdepimLibsConfigVersion.cmake \
+           ${destroot}${prefix}/share/apps/cmake/modules/KDEPimLibsDependencies.cmake \
+           ${destroot}${prefix}/share/mime/packages/kdepimlibs-mime.xml
+}
+}
+
 livecheck.url       http://kde.mirrors.hoobly.com/stable/
 livecheck.regex     (\\d+(\\.\\d+)+)

Added: trunk/dports/kde/kdepimlibs4/files/patch-CMakeLists-kioslaves.diff
===================================================================
--- trunk/dports/kde/kdepimlibs4/files/patch-CMakeLists-kioslaves.diff	                        (rev 0)
+++ trunk/dports/kde/kdepimlibs4/files/patch-CMakeLists-kioslaves.diff	2014-04-29 16:41:39 UTC (rev 119534)
@@ -0,0 +1,215 @@
+diff -ur ../kdepimlibs-4.12.4-orig/CMakeLists.txt ./CMakeLists.txt
+--- ../kdepimlibs-4.12.4-orig/CMakeLists.txt	2014-03-26 16:19:35.000000000 +0900
++++ ./CMakeLists.txt	2014-04-04 01:32:46.000000000 +0900
+@@ -171,51 +171,51 @@
+ 
+ ############### Now, we add the KDEPIMLibs components ###############
+ # These targets will always be built
+-add_subdirectory(cmake)
+-add_subdirectory(gpgme++)
+-add_subdirectory(qgpgme)
++#add_subdirectory(cmake)
++#add_subdirectory(gpgme++)
++#add_subdirectory(qgpgme)
+ 
+ if (NOT KDEPIM_ONLY_KLEO)
+-  add_subdirectory(kabc)
+-  add_subdirectory(kalarmcal)
++#  add_subdirectory(kabc)
++#  add_subdirectory(kalarmcal)
+   if (NOT KDEPIM_NO_KCAL)
+     if (NOT WINCE)
+-    add_subdirectory(kblog)
++#    add_subdirectory(kblog)
+     endif()
+-    add_subdirectory(kcal)
++#    add_subdirectory(kcal)
+   endif()
+-  add_subdirectory(kcalcore)
+-  add_subdirectory(kcalutils)
+-  add_subdirectory(akonadi) # depends on kabc is build
+-  add_subdirectory(kholidays)
++#  add_subdirectory(kcalcore)
++#  add_subdirectory(kcalutils)
++#  add_subdirectory(akonadi) # depends on kabc is build
++#  add_subdirectory(kholidays)
+   add_subdirectory(kimap)
+   add_subdirectory(kioslave)
+   add_subdirectory(kldap)
+-  add_subdirectory(kmbox)
++#  add_subdirectory(kmbox)
+ endif()
+   add_subdirectory(kmime)
+ if (NOT KDEPIM_ONLY_KLEO)
+-  add_subdirectory(kpimidentities)
+-  add_subdirectory(kpimutils)
+-  add_subdirectory(kpimtextedit)
++#  add_subdirectory(kpimidentities)
++#  add_subdirectory(kpimutils)
++#  add_subdirectory(kpimtextedit)
+   if (NOT KDEPIM_NO_KRESOURCES)
+-    add_subdirectory(kresources)
++#    add_subdirectory(kresources)
+   endif()
+-  add_subdirectory(ktnef)
+-  add_subdirectory(kxmlrpcclient)
+-  add_subdirectory(mailtransport)
+-  add_subdirectory(microblog)
+-  add_subdirectory(syndication)
++#  add_subdirectory(ktnef)
++#  add_subdirectory(kxmlrpcclient)
++#  add_subdirectory(mailtransport)
++#  add_subdirectory(microblog)
++#  add_subdirectory(syndication)
+   if (NOT WINCE)
+-  add_subdirectory(kontactinterface)
++#  add_subdirectory(kontactinterface)
+   endif()
+   # Build the CamelCase headers
+-  add_subdirectory(includes)
++#  add_subdirectory(includes)
+ endif()
+ 
+ 
+ # doc must be a subdir of kdepimlibs
+-macro_optional_add_subdirectory(doc)
++#macro_optional_add_subdirectory(doc)
+ 
+ # All done, let's display what we found...
+ feature_summary(WHAT ALL
+@@ -301,10 +301,10 @@
+         DESTINATION ${_KdepimLibsConfig_INSTALL_DIR} )
+ 
+ # Install the file with the exported targets, use ${KDEPIMLIBS_TARGET_PREFIX} as prefix for the names of these targets, Alex
+-install(EXPORT kdepimlibsLibraryTargets
+-        NAMESPACE ${KDEPIMLIBS_TARGET_PREFIX}
+-        DESTINATION ${_KdepimLibsConfig_INSTALL_DIR}
+-        FILE KDEPimLibsLibraryTargetsWithPrefix.cmake )
++#install(EXPORT kdepimlibsLibraryTargets
++#        NAMESPACE ${KDEPIMLIBS_TARGET_PREFIX}
++#        DESTINATION ${_KdepimLibsConfig_INSTALL_DIR}
++#        FILE KDEPimLibsLibraryTargetsWithPrefix.cmake )
+ 
+ # Install a KDEPimLibsDependencies.cmake so people using kdepimlibs 4.2 with kdelibs < 4.2 get a useful error message, Alex
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/KDEPimLibsDependencies.cmake "\n message(FATAL_ERROR \"For using this version of kdepimlibs (${KDEPIMLIBS_VERSION}) you need a newer version of kdelibs, please update.\")\n")
+diff -ur ../kdepimlibs-4.12.4-orig/kimap/CMakeLists.txt ./kimap/CMakeLists.txt
+--- ../kdepimlibs-4.12.4-orig/kimap/CMakeLists.txt	2014-03-26 16:19:35.000000000 +0900
++++ ./kimap/CMakeLists.txt	2014-04-04 01:45:32.000000000 +0900
+@@ -2,7 +2,7 @@
+ 
+ add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5327 )
+ 
+-add_subdirectory( tests )
++#add_subdirectory( tests )
+ add_definitions( -DQT_NO_CAST_FROM_ASCII )
+ add_definitions( -DQT_NO_CAST_TO_ASCII )
+ 
+@@ -65,12 +65,12 @@
+ )
+ 
+ set_target_properties(kimap PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
+-install(TARGETS kimap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
++#install(TARGETS kimap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
+ 
+ ########### install files ###############
+ 
+-install( FILES ${CMAKE_CURRENT_BINARY_DIR}/kimap_export.h acl.h imapset.h job.h appendjob.h capabilitiesjob.h fetchjob.h idlejob.h listjob.h loginjob.h logoutjob.h namespacejob.h rfccodecs.h
+- selectjob.h closejob.h expungejob.h deletejob.h createjob.h subscribejob.h unsubscribejob.h renamejob.h
+- session.h sessionuiproxy.h storejob.h copyjob.h searchjob.h acljobbase.h setacljob.h getacljob.h deleteacljob.h
+- myrightsjob.h listrightsjob.h quotajobbase.h setquotajob.h getquotajob.h getquotarootjob.h metadatajobbase.h setmetadatajob.h getmetadatajob.h
+- DESTINATION ${INCLUDE_INSTALL_DIR}/kimap  COMPONENT Devel)
++#install( FILES ${CMAKE_CURRENT_BINARY_DIR}/kimap_export.h acl.h imapset.h job.h appendjob.h capabilitiesjob.h fetchjob.h idlejob.h listjob.h loginjob.h logoutjob.h namespacejob.h rfccodecs.h
++# selectjob.h closejob.h expungejob.h deletejob.h createjob.h subscribejob.h unsubscribejob.h renamejob.h
++# session.h sessionuiproxy.h storejob.h copyjob.h searchjob.h acljobbase.h setacljob.h getacljob.h deleteacljob.h
++# myrightsjob.h listrightsjob.h quotajobbase.h setquotajob.h getquotajob.h getquotarootjob.h metadatajobbase.h setmetadatajob.h getmetadatajob.h
++# DESTINATION ${INCLUDE_INSTALL_DIR}/kimap  COMPONENT Devel)
+diff -ur ../kdepimlibs-4.12.4-orig/kldap/CMakeLists.txt ./kldap/CMakeLists.txt
+--- ../kdepimlibs-4.12.4-orig/kldap/CMakeLists.txt	2014-03-26 16:19:35.000000000 +0900
++++ ./kldap/CMakeLists.txt	2014-04-04 01:45:50.000000000 +0900
+@@ -105,26 +105,26 @@
+   VERSION ${GENERIC_LIB_VERSION}
+   SOVERSION ${GENERIC_LIB_SOVERSION}
+ )
+-install(TARGETS kldap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
++#install(TARGETS kldap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
+ 
+ ########### install files ###############
+ 
+-install(FILES
+-  ber.h
+-  ${CMAKE_CURRENT_BINARY_DIR}/kldap_export.h
+-  ldapattributeproxymodel.h
+-  ldapconfigwidget.h
+-  ldapconnection.h
+-  ldapcontrol.h
+-  ldapdefs.h
+-  ldapdn.h
+-  ldapmodel.h
+-  ldapobject.h
+-  ldapoperation.h
+-  ldapsearch.h
+-  ldapserver.h
+-  ldapstructureproxymodel.h
+-  ldapurl.h
+-  ldif.h
+-  DESTINATION ${INCLUDE_INSTALL_DIR}/kldap COMPONENT Devel
+-)
++#install(FILES
++#  ber.h
++#  ${CMAKE_CURRENT_BINARY_DIR}/kldap_export.h
++#  ldapattributeproxymodel.h
++#  ldapconfigwidget.h
++#  ldapconnection.h
++#  ldapcontrol.h
++#  ldapdefs.h
++#  ldapdn.h
++#  ldapmodel.h
++#  ldapobject.h
++#  ldapoperation.h
++#  ldapsearch.h
++#  ldapserver.h
++#  ldapstructureproxymodel.h
++#  ldapurl.h
++#  ldif.h
++#  DESTINATION ${INCLUDE_INSTALL_DIR}/kldap COMPONENT Devel
++#)
+diff -ur ../kdepimlibs-4.12.4-orig/kmime/CMakeLists.txt ./kmime/CMakeLists.txt
+--- ../kdepimlibs-4.12.4-orig/kmime/CMakeLists.txt	2014-03-26 16:19:35.000000000 +0900
++++ ./kmime/CMakeLists.txt	2014-04-04 01:45:58.000000000 +0900
+@@ -39,20 +39,20 @@
+ 
+ set_target_properties(kmime PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
+ 
+-install(TARGETS kmime EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
++#install(TARGETS kmime EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
+ 
+-install( FILES
+-         boolflags.h
+-         ${CMAKE_CURRENT_BINARY_DIR}/kmime_export.h
+-         kmime_charfreq.h
+-         kmime_codecs.h
+-         kmime_content.h
+-         kmime_contentindex.h
+-         kmime_header_parsing.h
+-         kmime_headers.h
+-         kmime_message.h
+-         kmime_mdn.h
+-         kmime_newsarticle.h
+-         kmime_dateformatter.h
+-         kmime_util.h
+-         DESTINATION ${INCLUDE_INSTALL_DIR}/kmime COMPONENT Devel)
++#install( FILES
++#         boolflags.h
++#         ${CMAKE_CURRENT_BINARY_DIR}/kmime_export.h
++#         kmime_charfreq.h
++#         kmime_codecs.h
++#         kmime_content.h
++#         kmime_contentindex.h
++#         kmime_header_parsing.h
++#         kmime_headers.h
++#         kmime_message.h
++#         kmime_mdn.h
++#         kmime_newsarticle.h
++#         kmime_dateformatter.h
++#         kmime_util.h
++#         DESTINATION ${INCLUDE_INSTALL_DIR}/kmime COMPONENT Devel)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140429/62619cc8/attachment-0001.html>


More information about the macports-changes mailing list