# -*- 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
maintainers {michaelld @michaelld} openmaintainer
homepage https://download.qt.io/archive/qt/4.6/qt-assistant-qassistantclient-library-compat-src-4.6.3.tar.gz.mirrorlist
long_description Qt Assistant: Offering backwards compatibility for \
certain applications, relying on certain parts of Qt 3 through \
Qt 4.6.3, to work with Qt 4.7+. \
this module was removed from Qt as of version 4.7.0.
master_sites https://download.qt.io/archive/qt/4.6
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 \
reinplace "s|@ARCHES@|${qt_arch_types}|g" \
${worksrcpath}/lib/lib.pro \
${worksrcpath}/compat.pro
system "cd ${worksrcpath} && mkdir compat && \
mv `/bin/ls -1 | grep -v compat | grep -v lib` \
# 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
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,@QT_APPS_DIR@,${qt_apps_dir}," \
${worksrcpath}/compat/compat.pro
# create links so that compiling works
system "cd ${worksrcpath}/lib/include/QtAssistant; \