[110529] trunk/dports/devel/cmake/Portfile
mojca at macports.org
mojca at macports.org
Sun Sep 1 12:38:54 PDT 2013
Revision: 110529
https://trac.macports.org/changeset/110529
Author: mojca at macports.org
Date: 2013-09-01 12:38:54 -0700 (Sun, 01 Sep 2013)
Log Message:
-----------
cmake: whitespace only
Modified Paths:
--------------
trunk/dports/devel/cmake/Portfile
Modified: trunk/dports/devel/cmake/Portfile
===================================================================
--- trunk/dports/devel/cmake/Portfile 2013-09-01 17:43:20 UTC (rev 110528)
+++ trunk/dports/devel/cmake/Portfile 2013-09-01 19:38:54 UTC (rev 110529)
@@ -1,39 +1,43 @@
# -*- 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 muniversal 1.0
+PortSystem 1.0
+PortGroup muniversal 1.0
-name cmake
-version 2.8.10.2
-revision 1
-set branch [join [lrange [split ${version} .] 0 1] .]
-categories devel
-license BSD
-installs_libs no
-maintainers css
-description Cross-platform make
-long_description \
- An extensible, open-source system that manages the build \
- process in an operating system and compiler independent manner. \
- Unlike many cross-platform systems, CMake is designed to be \
- used in conjunction with the native build environment.
-homepage http://www.cmake.org/
-master_sites http://www.cmake.org/files/v${branch}/
-platforms darwin freebsd
+name cmake
+version 2.8.10.2
+revision 1
+set branch [join [lrange [split ${version} .] 0 1] .]
+categories devel
+license BSD
+installs_libs no
+maintainers css
+description Cross-platform make
+long_description An extensible, open-source system that manages the build \
+ process in an operating system and compiler independent manner. \
+ Unlike many cross-platform systems, CMake is designed to be \
+ used in conjunction with the native build environment.
+homepage http://www.cmake.org/
+master_sites http://www.cmake.org/files/v${branch}/
+platforms darwin freebsd
checksums rmd160 03274f790edd5dd94a8e1c94eade36864eaf5b2b \
sha256 ce524fb39da06ee6d47534bbcec6e0b50422e18b62abc4781a4ba72ea2910eb1
-depends_lib-append port:libidn port:openssl
+depends_lib-append port:libidn port:openssl
-configure.env-append CMAKE_PREFIX_PATH=${prefix} \
- CMAKE_INCLUDE_PATH=${prefix}/include/ncurses \
- CMAKE_LIBRARY_PATH=${prefix}/lib
+patchfiles patch-CMakeFindFrameworks.cmake.diff \
+ patch-Modules-FindQt4.cmake.diff \
+ patch-Utilities-cmcurl-strequal.h.diff
-configure.args --mandir=/share/man --docdir=/share/doc/cmake \
- --parallel=${build.jobs} \
- --init=${worksrcpath}/macports.cmake
+configure.env-append \
+ CMAKE_PREFIX_PATH=${prefix} \
+ CMAKE_INCLUDE_PATH=${prefix}/include/ncurses \
+ CMAKE_LIBRARY_PATH=${prefix}/lib
+
+configure.args --mandir=/share/man --docdir=/share/doc/cmake \
+ --parallel=${build.jobs} \
+ --init=${worksrcpath}/macports.cmake
configure.universal_args
configure.post_args
@@ -57,49 +61,45 @@
}
}
-patchfiles patch-CMakeFindFrameworks.cmake.diff \
- patch-Modules-FindQt4.cmake.diff \
- patch-Utilities-cmcurl-strequal.h.diff
-
post-patch {
- # copy cmake init file, ready to be patched below
- copy ${filespath}/macports.cmake ${worksrcpath}
+ # copy cmake init file, ready to be patched below
+ copy ${filespath}/macports.cmake ${worksrcpath}
- # patch PREFIX
- reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/macports.cmake
- reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Modules/CMakeFindFrameworks.cmake
+ # patch PREFIX
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/macports.cmake
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Modules/CMakeFindFrameworks.cmake
- # Don't force -O3. Honor ports' ${configure.optflags}
- eval reinplace "s|-O3||g" [glob ${worksrcpath}/Modules/{Compiler,Platform}/*.cmake]
+ # Don't force -O3. Honor ports' ${configure.optflags}
+ eval reinplace "s|-O3||g" [glob ${worksrcpath}/Modules/{Compiler,Platform}/*.cmake]
}
post-destroot {
- xinstall -d -m 0755 ${destroot}${prefix}/share/emacs/site-lisp
- xinstall -m 0644 ${worksrcpath}/Docs/cmake-mode.el \
- ${destroot}${prefix}/share/emacs/site-lisp
- foreach type {syntax indent} {
- xinstall -d -m 0755 ${destroot}${prefix}/share/vim/vimfiles/${type}
- xinstall -m 0644 -W ${worksrcpath}/Docs cmake-${type}.vim \
- ${destroot}${prefix}/share/vim/vimfiles/${type}
- }
- if ([variant_isset gui]) {
- set app CMake
- xinstall -d ${destroot}${applications_dir}/${app}.app/Contents/MacOS \
- ${destroot}${applications_dir}/${app}.app/Contents/Resources
- xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
- reinplace "s|@VERSION@|${version}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
- reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
- ln -s ${prefix}/bin/cmake-gui ${destroot}${applications_dir}/${app}.app/Contents/MacOS/cmake-gui
- xinstall -m 644 ${worksrcpath}/Source/QtDialog/CMakeSetup.icns ${destroot}${applications_dir}/${app}.app/Contents/Resources/CMakeSetup.icns
- }
+ xinstall -d -m 0755 ${destroot}${prefix}/share/emacs/site-lisp
+ xinstall -m 0644 ${worksrcpath}/Docs/cmake-mode.el \
+ ${destroot}${prefix}/share/emacs/site-lisp
+ foreach type {syntax indent} {
+ xinstall -d -m 0755 ${destroot}${prefix}/share/vim/vimfiles/${type}
+ xinstall -m 0644 -W ${worksrcpath}/Docs cmake-${type}.vim \
+ ${destroot}${prefix}/share/vim/vimfiles/${type}
+ }
+ if ([variant_isset gui]) {
+ set app CMake
+ xinstall -d ${destroot}${applications_dir}/${app}.app/Contents/MacOS \
+ ${destroot}${applications_dir}/${app}.app/Contents/Resources
+ xinstall -m 644 ${filespath}/Info.plist.in ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
+ reinplace "s|@VERSION@|${version}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
+ reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist
+ ln -s ${prefix}/bin/cmake-gui ${destroot}${applications_dir}/${app}.app/Contents/MacOS/cmake-gui
+ xinstall -m 644 ${worksrcpath}/Source/QtDialog/CMakeSetup.icns ${destroot}${applications_dir}/${app}.app/Contents/Resources/CMakeSetup.icns
+ }
}
variant gui description {Qt4 based cmake-gui} {
- PortGroup qt4 1.0
- patchfiles-append patch-CMakeLists.txt.diff
- configure.args-append --qt-gui --qt-qmake=${qt_qmake_cmd}
+ PortGroup qt4 1.0
+ patchfiles-append patch-CMakeLists.txt.diff
+ configure.args-append --qt-gui --qt-qmake=${qt_qmake_cmd}
}
-livecheck.type regex
-livecheck.regex {Latest Release \((\d(?:\.\d+)*)\)}
-livecheck.url ${homepage}cmake/resources/software.html
+livecheck.type regex
+livecheck.regex {Latest Release \((\d(?:\.\d+)*)\)}
+livecheck.url ${homepage}cmake/resources/software.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130901/2365f6a3/attachment.html>
More information about the macports-changes
mailing list