[137900] trunk/dports/kde

mk at macports.org mk at macports.org
Mon Jun 22 13:57:03 PDT 2015


Revision: 137900
          https://trac.macports.org/changeset/137900
Author:   mk at macports.org
Date:     2015-06-22 13:57:02 -0700 (Mon, 22 Jun 2015)
Log Message:
-----------
kde-extra-cmake-modules: new port for KDE's ECM needed mostly for KF5

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

Added Paths:
-----------
    trunk/dports/kde/kde-extra-cmake-modules/
    trunk/dports/kde/kde-extra-cmake-modules/Portfile
    trunk/dports/kde/kde-extra-cmake-modules/files/
    trunk/dports/kde/kde-extra-cmake-modules/files/patch-doc-building.diff

Added: trunk/dports/kde/kde-extra-cmake-modules/Portfile
===================================================================
--- trunk/dports/kde/kde-extra-cmake-modules/Portfile	                        (rev 0)
+++ trunk/dports/kde/kde-extra-cmake-modules/Portfile	2015-06-22 20:57:02 UTC (rev 137900)
@@ -0,0 +1,67 @@
+# -*- 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           cmake 1.0
+
+cmake.out_of_source yes
+
+set ECM             extra-cmake-modules
+name                kde-${ECM}
+version             5.11.0
+set branch          [join [lrange [split ${version} .] 0 1] .]
+supported_archs     noarch
+categories          kde kf5 devel
+license             GPL-2+
+maintainers         gmail.com:rjvbertin mk openmaintainer
+description         Extra modules and scripts for CMake.
+long_description    Extra CMake Modules, or ECM, aims to augment CMake with additional \
+                    modules. It serves as both a staging ground for new modules before \
+                    they are moved upstream to CMake and a place for modules that, for \
+                    whatever reason, are not a good fit for CMake itself.
+platforms           darwin
+homepage            http://projects.kde.org/projects/kdesupport/${ECM}
+master_sites        http://download.kde.org/stable/frameworks/${branch}/
+
+distname            ${ECM}-${version}
+use_xz              yes
+
+checksums           rmd160  f5df1f931934433cce0496630d7eca5e9efbe69c \
+                    sha256  9ee39c08ca4a6066e9c7061b740ed8b1d5f289e6b19a568d1704585d883cb718
+
+
+variant qt4 description {Use qt4-mac to build the Qt documentation} {
+    PortGroup               qt4 1.0
+}
+variant qt5 description {Use qt5-mac to build the Qt documentation} {
+    PortGroup               qt5 1.0
+}
+variant docs description {Build documentation} {
+   if {![variant_isset qt4] && ![variant_isset qt5]} {
+        # user didn't request a Qt variant to use for building the documentation
+        if {[file exists ${prefix}/libexec/qt5/bin/qcollectiongenerator]} {
+            # qcollectiongenerator is installed and provided by a concurrent qt5-mac port
+            default_variants    +qt5
+            PortGroup           qt5 1.0
+        } elseif {[file exists ${prefix}/libexec/qt4/bin/qcollectiongenerator]} {
+            # qcollectiongenerator is installed and provided by a concurrent qt4-mac port
+            default_variants    +qt4
+            PortGroup           qt4 1.0
+        } else {
+            # a qcollectiongenerator version cannot be found in a location indicating who provides it
+            # fall back to using the most Qt version most likely to be installed at this time
+            # (and which at this exact time won't need to be built from source)
+            default_variants    +qt4
+            PortGroup           qt4 1.0
+        }
+    }
+    depends_build-append    port:py-sphinx
+    patchfiles-append       patch-doc-building.diff
+    configure.args-append   -DBUILD_HTML_DOCS:BOOL=OFF -DBUILD_QTHELP_DOCS:BOOL=ON
+    pre-destroot {
+        exec sh -c "cd ${build.dir}/docs ; ${qt_bins_dir}/qcollectiongenerator qthelp/ExtraCMakeModules.qhcp"
+    }
+}
+
+livecheck.type      none
+


Property changes on: trunk/dports/kde/kde-extra-cmake-modules/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/kde/kde-extra-cmake-modules/files/patch-doc-building.diff
===================================================================
--- trunk/dports/kde/kde-extra-cmake-modules/files/patch-doc-building.diff	                        (rev 0)
+++ trunk/dports/kde/kde-extra-cmake-modules/files/patch-doc-building.diff	2015-06-22 20:57:02 UTC (rev 137900)
@@ -0,0 +1,34 @@
+diff --git docs/CMakeLists.txt docs/CMakeLists.txt
+index f17400f..2dd6b8b 100644
+--- docs/CMakeLists.txt
++++ docs/CMakeLists.txt
+@@ -17,8 +17,9 @@ message(STATUS "Looking for Sphinx Documentation Builder...")
+ find_program(SPHINX_EXECUTABLE
+     NAMES
+         sphinx-build
+-        sphinx-build2
+-        sphinx-build3
++        sphinx-build-3.4
++        sphinx-build-3.3
++        sphinx-build-2.7
+     DOC "Sphinx Documentation Builder (http://sphinx-doc.org/)"
+ )
+ if(SPHINX_EXECUTABLE)
+@@ -67,7 +68,7 @@ if(BUILD_QTHELP_DOCS)
+     set(qthelp_extra_commands
+         COMMAND
+             qcollectiongenerator
+-            ${CMAKE_CURRENT_BINARY_DIR}/qthelp/extra-cmake-modules.qhcp
++            ${CMAKE_CURRENT_BINARY_DIR}/qthelp/ExtraCMakeModules.qhcp
+     )
+ endif()
+ 
+@@ -122,7 +123,7 @@ if(BUILD_HTML_DOCS)
+ endif()
+ if(BUILD_QTHELP_DOCS)
+     install(
+-        FILES ${CMAKE_CURRENT_BINARY_DIR}/qthelp/extra-cmake-modules.qch
++        FILES ${CMAKE_CURRENT_BINARY_DIR}/qthelp/ExtraCMakeModules.qch
+         DESTINATION ${DOC_INSTALL_DIR}
+     )
+ endif()

Modified: trunk/dports/kde/qtcurve/Portfile
===================================================================
--- trunk/dports/kde/qtcurve/Portfile	2015-06-22 20:35:47 UTC (rev 137899)
+++ trunk/dports/kde/qtcurve/Portfile	2015-06-22 20:57:02 UTC (rev 137900)
@@ -36,6 +36,11 @@
 configure.args-append   -DQTC_QT4_STYLE_SUPPORT:BOOL=OFF -DENABLE_QT5:BOOL=OFF \
                         -DQTC_QT4_ENABLE_KWIN:BOOL=OFF
 
+# configure checks that we're clang 3.2, gcc 4.7, or better
+compiler.blacklist-append gcc-3.3 gcc-4.0 apple-gcc-4.0 gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2
+compiler.blacklist-append macports-gcc-4.2 macports-gcc-4.3 macports-gcc-4.4 macports-gcc-4.5 macports-gcc-4.6
+compiler.blacklist-append {clang < 425} macports-clang-2.9 macports-clang-3.0 macports-clang-3.1
+
 variant x11 description {build x11 support} {}
 if { [variant_isset x11] } {
 	depends_lib-append port:xorg-libX11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150622/f2210ce8/attachment.html>


More information about the macports-changes mailing list