[73373] trunk/dports/devel

michaelld at macports.org michaelld at macports.org
Thu Nov 11 09:21:59 PST 2010


Revision: 73373
          http://trac.macports.org/changeset/73373
Author:   michaelld at macports.org
Date:     2010-11-11 09:21:56 -0800 (Thu, 11 Nov 2010)
Log Message:
-----------
qt-assistant: initial checkin.

Added Paths:
-----------
    trunk/dports/devel/qt-assistant/
    trunk/dports/devel/qt-assistant/Portfile
    trunk/dports/devel/qt-assistant/files/
    trunk/dports/devel/qt-assistant/files/headers.pri
    trunk/dports/devel/qt-assistant/files/patch-compat.pro.diff
    trunk/dports/devel/qt-assistant/files/patch-lib_lib.pro.diff
    trunk/dports/devel/qt-assistant/files/qmake/
    trunk/dports/devel/qt-assistant/files/qmake/lib/
    trunk/dports/devel/qt-assistant/files/qmake/lib/include/
    trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/
    trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/QAssistantClient
    trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/QtAssistant
    trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/headers.pri
    trunk/dports/devel/qt-assistant/files/qmake/qta.pro

Added: trunk/dports/devel/qt-assistant/Portfile
===================================================================
--- trunk/dports/devel/qt-assistant/Portfile	                        (rev 0)
+++ trunk/dports/devel/qt-assistant/Portfile	2010-11-11 17:21:56 UTC (rev 73373)
@@ -0,0 +1,77 @@
+# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id: $
+
+PortSystem          1.0
+PortGroup           qt4 1.0
+
+name                qt-assistant
+version             4.6.3
+categories          aqua
+platforms           macosx
+maintainers         michaelld openmaintainer
+
+homepage            http://qt.nokia.com/
+description         Qt Assistant
+long_description    Qt Assistant: Offering backwards compatibility for \
+    certain applications, from Qt 3 through Qt 4.6.3.
+
+master_sites        trolltech
+distname            qt-assistant-qassistantclient-library-compat-src-${version}
+checksums           md5     a20148e0488d5c12ab35ccc107dcc64d \
+                    sha1    7a5e5155136c406e5b7eb880eed752f56625d10b \
+                    rmd160  f34da3587cb311f42aa19b9c8259b90269590c61
+
+worksrcdir          qt-assistant-qassistantclient-library-compat-version-${version}
+
+patchfiles          patch-compat.pro.diff \
+                    patch-lib_lib.pro.diff
+
+post-patch {
+    # move files around
+    system "cd ${worksrcpath} && mkdir compat && \
+                mv `/bin/ls -1 | grep -v compat | grep -v lib` \
+                    compat.pro compat"
+
+    # copy QMake and library files into place
+    system "cd ${filespath}/qmake; tar cf - . | \
+            (cd ${worksrcpath}; tar xf -)"
+
+    # fix up libbrary's QMake build file to handle debug and release
+    # do not change how the .app builds
+    set build_type "release"
+    if {[variant_isset debug]} {
+        set build_type "debug_and_release build_all"
+    }
+    reinplace "s/@BUILD_TYPE@/${build_type}/" \
+        ${worksrcpath}/lib/lib.pro
+
+    # fix app install location
+    reinplace "s, at QT_APPS_DIR@,${qt_apps_dir}," \
+        ${worksrcpath}/compat/compat.pro
+
+    # create links so that compiling works
+    system "cd ${worksrcpath}/lib/include/QtAssistant; \
+                ln -s ../../*.h ."
+}
+
+# set up to use the installed QMake files
+configure.cmd       ${qt_qmake_cmd}
+configure.pre_args  
+configure.args      "-o Makefile qta.pro"
+configure.post_args
+configure.universal_args
+
+# allow ccache, if specified by the user
+pre-build {
+    if {[tbool configure.ccache]} {
+        build.post_args "CCACHE=ccache"
+    }
+}
+
+universal_variant   yes
+
+variant debug description "Build release and debug versions" {}
+
+livecheck.type      regex
+livecheck.url       http://get.qt.nokia.com/qt/source/
+livecheck.regex     "qt-assistant-qassistantclient-library-compat-src-(\[0-9a-z.-\]+)${extract.suffix}"

Added: trunk/dports/devel/qt-assistant/files/headers.pri
===================================================================
--- trunk/dports/devel/qt-assistant/files/headers.pri	                        (rev 0)
+++ trunk/dports/devel/qt-assistant/files/headers.pri	2010-11-11 17:21:56 UTC (rev 73373)
@@ -0,0 +1,8 @@
+# this file and {QtAssistant, QAssistantClient} were copied from the
+# Qt 4.6.3 source code, directory "include/QtAssistant".  This file
+# was modified so that the Q* headers are located in the same
+# directory as this file.
+
+SYNCQT.HEADER_FILES = ../../qassistantclient.h ../../qassistantclient_global.h QtAssistant 
+SYNCQT.HEADER_CLASSES = QAssistantClient 
+SYNCQT.PRIVATE_HEADER_FILES = 

Added: trunk/dports/devel/qt-assistant/files/patch-compat.pro.diff
===================================================================
--- trunk/dports/devel/qt-assistant/files/patch-compat.pro.diff	                        (rev 0)
+++ trunk/dports/devel/qt-assistant/files/patch-compat.pro.diff	2010-11-11 17:21:56 UTC (rev 73373)
@@ -0,0 +1,28 @@
+--- compat.pro.orig	2010-11-11 10:55:36.000000000 -0500
++++ compat.pro	2010-11-11 10:57:00.000000000 -0500
+@@ -6,10 +6,12 @@
+ 
+ unix:contains(QT_CONFIG, dbus):QT += dbus
+ 
+-build_all:!build_pass {
+-    CONFIG -= build_all
+-    CONFIG += release
+-}
++# build release only for the .app
++contains(CONFIG,debug):CONFIG -= debug
++contains(CONFIG,debug_and_release):CONFIG -= debug_and_release
++contains(CONFIG,build_all):CONFIG -= build_all
++!contains(CONFIG,release): CONFIG += release
++
+ QT += xml network
+ 
+ PROJECTNAME = Assistant
+@@ -81,3 +83,8 @@
+         }        
+     }
+ }
++
++# install target
++target.path=@QT_APPS_DIR@
++
++INSTALLS += target

Added: trunk/dports/devel/qt-assistant/files/patch-lib_lib.pro.diff
===================================================================
--- trunk/dports/devel/qt-assistant/files/patch-lib_lib.pro.diff	                        (rev 0)
+++ trunk/dports/devel/qt-assistant/files/patch-lib_lib.pro.diff	2010-11-11 17:21:56 UTC (rev 73373)
@@ -0,0 +1,48 @@
+--- lib/lib.pro.orig	2010-11-11 12:13:41.000000000 -0500
++++ lib/lib.pro	2010-11-11 12:14:27.000000000 -0500
+@@ -1,24 +1,19 @@
+ TEMPLATE        = lib
+ QT += network
+ TARGET                = QtAssistantClient
+-isEmpty(QT_MAJOR_VERSION) {
+-   VERSION=4.3.0
+-} else {
+-   VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
+-}
++VERSION=4.6.3
+ 
+ CONFIG                += qt warn_on
+-mac|win32:CONFIG                += debug_and_release
++CONFIG                += @BUILD_TYPE@ create_prl
+ mac:unix:CONFIG       += explicitlib
+ CONFIG                -= dll
+ 
++INCLUDEPATH += ./include
++
+ HEADERS         = qassistantclient.h \
+                   qassistantclient_global.h
+ SOURCES         = qassistantclient.cpp
+ 
+-DESTDIR                = ../../../../lib
+-DLLDESTDIR             = ../../../../bin
+-
+ unix {
+         QMAKE_CFLAGS += $$QMAKE_CFLAGS_SHLIB
+         QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_SHLIB
+@@ -31,7 +26,7 @@
+ 
+ #load up the headers info
+ CONFIG += qt_install_headers
+-HEADERS_PRI = $$QT_BUILD_TREE/include/QtAssistant/headers.pri
++HEADERS_PRI = ./include/QtAssistant/headers.pri
+ include($$HEADERS_PRI, "", true)|clear(HEADERS_PRI)
+ 
+ #mac frameworks
+@@ -76,3 +71,7 @@
+    QMAKE_PKGCONFIG_REQUIRES += QtNetwork
+ }
+ 
++# install feature file
++features.files = ../compat/features/assistant.prf
++features.path = $$[QT_INSTALL_DATA]/mkspecs/features
++INSTALLS += features

Added: trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/QAssistantClient
===================================================================
--- trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/QAssistantClient	                        (rev 0)
+++ trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/QAssistantClient	2010-11-11 17:21:56 UTC (rev 73373)
@@ -0,0 +1 @@
+#include "qassistantclient.h"

Added: trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/QtAssistant
===================================================================
--- trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/QtAssistant	                        (rev 0)
+++ trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/QtAssistant	2010-11-11 17:21:56 UTC (rev 73373)
@@ -0,0 +1,5 @@
+#ifndef QT_QTASSISTANT_MODULE_H
+#define QT_QTASSISTANT_MODULE_H
+#include <QtNetwork/QtNetwork>
+#include "qassistantclient.h"
+#endif

Added: trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/headers.pri
===================================================================
--- trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/headers.pri	                        (rev 0)
+++ trunk/dports/devel/qt-assistant/files/qmake/lib/include/QtAssistant/headers.pri	2010-11-11 17:21:56 UTC (rev 73373)
@@ -0,0 +1,9 @@
+# this file and {QtAssistant, QAssistantClient} were copied from the
+# Qt 4.6.3 source code, directory "include/QtAssistant".  This file
+# was modified so that the Q* headers are located in the same
+# directory as this file, and found relative to the .pro file that
+# uses this file.
+
+SYNCQT.HEADER_FILES = qassistantclient.h qassistantclient_global.h include/QtAssistant/QtAssistant 
+SYNCQT.HEADER_CLASSES = include/QtAssistant/QAssistantClient 
+SYNCQT.PRIVATE_HEADER_FILES = 

Added: trunk/dports/devel/qt-assistant/files/qmake/qta.pro
===================================================================
--- trunk/dports/devel/qt-assistant/files/qmake/qta.pro	                        (rev 0)
+++ trunk/dports/devel/qt-assistant/files/qmake/qta.pro	2010-11-11 17:21:56 UTC (rev 73373)
@@ -0,0 +1,5 @@
+TEMPLATE  = subdirs
+
+SUBDIRS = \
+    compat \
+    lib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101111/110fef67/attachment.html>


More information about the macports-changes mailing list