source: trunk/dports/devel/qt-assistant/Portfile

Last change on this file was 100132, checked in by jmr@…, 5 years ago

qt-assistant: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- 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
2# $Id: Portfile 100132 2012-11-30 00:31:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                qt-assistant
8version             4.6.3
9revision            1
10categories          devel aqua
11license             LGPL-2.1
12platforms           macosx
13maintainers         michaelld openmaintainer
14
15homepage            http://qt.nokia.com/
16description         Qt Assistant
17long_description    Qt Assistant: Offering backwards compatibility for \
18    certain applications, relying on certain parts of Qt 3 through \
19    Qt 4.6.3, to work with Qt 4.7+. \
20    this module was removed from Qt as of version 4.7.0.
21
22master_sites        trolltech
23distname            qt-assistant-qassistantclient-library-compat-src-${version}
24checksums           md5     a20148e0488d5c12ab35ccc107dcc64d \
25                    sha1    7a5e5155136c406e5b7eb880eed752f56625d10b \
26                    rmd160  f34da3587cb311f42aa19b9c8259b90269590c61
27
28worksrcdir          qt-assistant-qassistantclient-library-compat-version-${version}
29
30patchfiles          patch-compat.pro.diff \
31                    patch-lib_lib.pro.diff
32
33post-patch {
34    # set arch type(s)
35    reinplace "s|@ARCHES@|${qt_arch_types}|g" \
36        ${worksrcpath}/lib/lib.pro \
37        ${worksrcpath}/compat.pro
38
39    # move files around
40    system "cd ${worksrcpath} && mkdir compat && \
41                mv `/bin/ls -1 | grep -v compat | grep -v lib` \
42                    compat.pro compat"
43
44    # copy QMake and library files into place
45    system "cd ${filespath}/qmake; tar cf - . | \
46            (cd ${worksrcpath}; tar xf -)"
47
48    # fix up libbrary's QMake build file to handle debug and release
49    # do not change how the .app builds
50    set build_type "release"
51    if {[variant_isset debug]} {
52        set build_type "debug_and_release build_all"
53    }
54    reinplace "s/@BUILD_TYPE@/${build_type}/" \
55        ${worksrcpath}/lib/lib.pro
56
57    # fix app install location
58    reinplace "s,@QT_APPS_DIR@,${qt_apps_dir}," \
59        ${worksrcpath}/compat/compat.pro
60
61    # create links so that compiling works
62    system "cd ${worksrcpath}/lib/include/QtAssistant; \
63                ln -s ../../*.h ."
64}
65
66# set up to use the installed QMake files
67configure.cmd       ${qt_qmake_cmd}
68configure.pre_args 
69configure.args      "-o Makefile qta.pro"
70configure.post_args
71configure.universal_args
72
73# allow ccache, if specified by the user
74pre-build {
75    if {[tbool configure.ccache]} {
76        build.post_args "CCACHE=ccache"
77    }
78}
79
80universal_variant   yes
81
82variant debug description "Build release and debug versions" {}
83
84livecheck.type      regex
85livecheck.url       http://get.qt.nokia.com/qt/source/
86livecheck.regex     "qt-assistant-qassistantclient-library-compat-src-(\[0-9a-z.-\]+)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.