[48161] trunk/dports/aqua/qt4-mac-devel/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Sun Mar 15 11:43:57 PDT 2009


Revision: 48161
          http://trac.macports.org/changeset/48161
Author:   mcalhoun at macports.org
Date:     2009-03-15 11:43:56 -0700 (Sun, 15 Mar 2009)
Log Message:
-----------
qt4-mac-devel: Whitespace and comment changes.

Modified Paths:
--------------
    trunk/dports/aqua/qt4-mac-devel/Portfile

Modified: trunk/dports/aqua/qt4-mac-devel/Portfile
===================================================================
--- trunk/dports/aqua/qt4-mac-devel/Portfile	2009-03-15 18:37:18 UTC (rev 48160)
+++ trunk/dports/aqua/qt4-mac-devel/Portfile	2009-03-15 18:43:56 UTC (rev 48161)
@@ -18,21 +18,21 @@
                     http://wftp.tu-chemnitz.de/pub/Qt/qt/source/ \
                     http://ftp.heanet.ie/mirrors/ftp.trolltech.com/pub/qt/source/
 distname            qt-mac-opensource-src-${version}
-checksums           \
-    md5 c66a3f3211529b456086284f87f17393 \
-    sha1 7b4f0a2512352bda9ae90e4bcfdb5ee621ab27e1 \
-    rmd160 3abcf1a3b917a6dbbbbc4d915db3fbb538262c70
+checksums  \
+    md5     c66a3f3211529b456086284f87f17393 \
+    sha1    7b4f0a2512352bda9ae90e4bcfdb5ee621ab27e1 \
+    rmd160  3abcf1a3b917a6dbbbbc4d915db3fbb538262c70
 
 depends_build       port:pkgconfig
 
-depends_lib                                \
-    port:zlib                              \
-    port:tiff                              \
-    port:libpng                            \
-    port:libmng                            \
-    port:jpeg                              \
-    port:dbus                              \
-    port:openssl                           \
+depends_lib       \
+    port:zlib     \
+    port:tiff     \
+    port:libpng   \
+    port:libmng   \
+    port:jpeg     \
+    port:dbus     \
+    port:openssl  \
     port:sqlite3
 
 # Build plugins as bundle files instead of dylib files.
@@ -47,13 +47,13 @@
     patch-odbc.diff          \
     patch-network.pro.diff
 
-# have to build with Apple gcc because of -fconstant-cfstrings
-# configure.compiler should therefore not be one of the MacPorts compilers
+# The build process uses -fconstant-cfstrings.
+# configure.compiler should therefore not be one of the MacPorts compilers.
 
-# --prefix is not recognized
+# --prefix is not recognized.
 configure.pre_args-delete  --prefix=${prefix}
 # -I${prefix}/include and -L${prefix}/lib must be set in ${configure.args}
-#    or else some generated Makefiles will not seem them
+#    or else some generated Makefiles will not seem them.
 configure.cppflags
 configure.ldflags
 
@@ -66,21 +66,21 @@
 # -system-sqlite ensures the use SQLite provided by MacPorts instead of Qt.
 #
 # -dbus-linked prevends qt4 from trying to dynamically load libdbus-1,
-#     which it is not able to find in ${prefix}
-# -openssl-linked ensures that the MacPorts openssl is used
+#     which it is not able to find in ${prefix}.
+# -openssl-linked ensures that the MacPorts openssl is used.
 #
-configure.args                                                 \
-    -v                                                         \
-    -debug-and-release                                         \
-    -confirm-license                                           \
-    -prefix          ${qt_dir}                                 \
-    -docdir          ${prefix}/share/doc/${dirname}            \
-    -examplesdir     ${prefix}/share/${dirname}/examples       \
-    -demosdir        ${prefix}/share/${dirname}/demos          \
-    -system-sqlite                                             \
-    -openssl-linked                                            \
-    -dbus-linked                                               \
-    -isystem${prefix}/include                                  \
+configure.args                                            \
+    -v                                                    \
+    -debug-and-release                                    \
+    -confirm-license                                      \
+    -prefix          ${qt_dir}                            \
+    -docdir          ${prefix}/share/doc/${dirname}       \
+    -examplesdir     ${prefix}/share/${dirname}/examples  \
+    -demosdir        ${prefix}/share/${dirname}/demos     \
+    -system-sqlite                                        \
+    -openssl-linked                                       \
+    -dbus-linked                                          \
+    -isystem${prefix}/include                             \
     -L${prefix}/lib
 
 # Stop configure script from searching for SQL Drivers
@@ -148,11 +148,11 @@
 destroot.destdir    INSTALL_ROOT="${destroot}"
 
 post-patch {
-    # ensure that securesocketclient demo is built
+    # Ensure that securesocketclient demo is built.
     reinplace "s|contains(QT_CONFIG, openssl)|contains(QT_CONFIG, openssl) \\| contains(QT_CONFIG, openssl-linked)|" \
         ${worksrcpath}/examples/network/network.pro
 
-    # ensure that MacPorts compilers are used
+    # Ensure that MacPorts compilers are used.
     reinplace "s| g++\$| ${configure.cxx}|" ${worksrcpath}/mkspecs/common/g++.conf
     reinplace "s| gcc\$| ${configure.cc}|"  ${worksrcpath}/mkspecs/common/g++.conf
     reinplace "s| g++\$| ${configure.cxx}|" ${worksrcpath}/mkspecs/common/mac-g++.conf
@@ -161,19 +161,19 @@
 }
 
 post-destroot {
-    # install documentation
+    # Install documentation.
     foreach doc { INSTALL LICENSE.LGPL LICENSE.GPL3 LGPL_EXCEPTION.txt README } {
         xinstall -c -m 644 ${worksrcpath}/$doc ${destroot}${prefix}/share/doc/${portname}
     }
 
-    # create link in ${prefix}/bin to executable files in ${qt_dir}/bin
+    # Create link in ${prefix}/bin to executable files in ${qt_dir}/bin.
     foreach bin [glob -type f -directory ${destroot}${qt_dir}/bin *] {
         ln -s ${qt_dir}/bin/[file tail ${bin}] ${destroot}${prefix}/bin
     }
 
     xinstall -d -m 0755 ${destroot}${applications_dir}/Qt
-    # create link in ${applications_dir}/Qt to .app directories in ${qt_dir}/bin/
-    # create link in ${prefix}/bin to all *.app/Contents/MacOS/*
+    # Create link in ${applications_dir}/Qt to .app directories in ${qt_dir}/bin/.
+    # Create link in ${prefix}/bin to all *.app/Contents/MacOS/*.
     foreach app [glob -type d -directory ${destroot}${qt_dir}/bin *.app] {
         ln -s ${qt_dir}/bin/[file tail ${app}] ${destroot}${applications_dir}/Qt
         foreach bin [glob -tails -type f -directory ${app}/Contents/MacOS *] {
@@ -181,13 +181,13 @@
         }
     }
 
-    # avoid conflict with other qt packages
-    # ensure lower case names
+    # Avoid conflict with other qt packages.
+    # Ensure lower case names.
     foreach bin [glob ${destroot}${prefix}/bin/*] {
         file rename ${bin} [string tolower ${bin}]-mac
     }
 
-    # Fix the .pc and .prl files by removing ${destroot}
+    # Fix the .pc and .prl files by removing ${destroot}.
     foreach fixfile [glob -nocomplain -directory ${destroot} ${qt_dir}/lib/pkgconfig/*.pc ${qt_dir}/lib/*.prl ${qt_dir}/lib/*/*.prl ${prefix}/share/${dirname}/demos/shared/*.prl] {
         reinplace  \
             "s|-L${worksrcpath}/lib|-L${qt_dir}/lib|g" \
@@ -197,19 +197,19 @@
             ${fixfile}
     }
 
-    # Create link to Frameworks in Frameworks directory
+    # Create link to Frameworks in Frameworks directory.
     xinstall -d -m 0755 ${destroot}${frameworks_dir}
     foreach fdir [glob -tails -directory ${destroot}${qt_dir}/lib -nocomplain *.framework] {
         ln -s ${qt_dir}/lib/${fdir} ${destroot}${frameworks_dir}
     }
 
-    # The debug .pc files have no counterpart in qt4-x11, so set a link to them in the pkgconfig directory
+    # The debug .pc files have no counterpart in qt4-x11, so set a link to them in the pkgconfig directory.
     xinstall -d -m 0755 ${destroot}${prefix}/lib/pkgconfig
     foreach fl [glob -tails -directory ${destroot}${qt_dir}/lib/pkgconfig *_debug.pc] {
         ln -s ${qt_dir}/lib/pkgconfig/${fl} ${destroot}${prefix}/lib/pkgconfig/
     }
 
-    # install select file for qt4_select
+    # Install select file for qt4_select.
     xinstall -m 755 -d ${destroot}${prefix}/etc/select/qt4
     xinstall -m 644 ${filespath}/${dirname} ${destroot}${prefix}/etc/select/qt4/
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090315/1b34fd2b/attachment-0001.html>


More information about the macports-changes mailing list