Ticket #46239: qca.diff

File qca.diff, 1.9 KB (added by RJVB (René Bertin), 9 years ago)

somewhat more polished version hopefully less politically incorrect too

  • devel/qca/Portfile

    old new  
    66
    77name                qca
    88version             2.0.3
    9 revision            1
     9revision            2
    1010set branch          [join [lrange [split ${version} .] 0 1] .]
    1111categories          devel crypto security
    1212maintainers         michaelld openmaintainer
     
    5959# use variants to change everything except framework
    6060configure.args        --verbose         \
    6161                      --qtdir=${qt_dir} \
     62                      --includedir=${qt_includes_dir} \
    6263                      --release         \
    6364                      --no-framework
    6465
     
    7475    }
    7576}
    7677
     78if {${qt_dir} ne ${prefix}} {
     79   # temporary transitional variant to accompany qt4-mac's transitional subport:
     80   variant transitional description \
     81        {temporary variant that allows to install Qt4 and QCA "concurrently" without having to rebuild all dependents} {}
     82   if {[file exists ${prefix}/lib/libQtCore.4.dylib]} {
     83          default_variants      +transitional
     84   }
     85}
     86
    7787post-destroot {
    7888    # alias to destroot QCA top-level directory
    7989    set destroot_qt ${destroot}${qt_dir}
     
    90100    xinstall -d -m 755 ${destroot}${qt_cmake_module_dir}
    91101    xinstall -m 644 -W ${filespath} FindQCA2.cmake \
    92102        ${destroot}${qt_cmake_module_dir}
     103
     104    # check if Qt4 was installed in concurrent mode; should become unconditional
     105    # once Qt4 can only install that way.
     106    if {${qt_dir} ne ${prefix}} {
     107        # temporary 
     108        if {[variant_isset transitional]} {
     109            ln -s ${qt_libs_dir}/libqca.2.dylib ${destroot}${prefix}/lib
     110        }
     111        # move the pkgconfig file to its designated location
     112        move ${destroot}${qt_libs_dir}/pkgconfig/qca2.pc ${destroot}/${qt_pkg_config_dir}
     113    }
    93114}
    94115
    95116variant debug description \