Ticket #42386: Portfile-libPyQGLViewer.diff

File Portfile-libPyQGLViewer.diff, 2.5 KB (added by christophe.pradal@…, 11 years ago)

Replace libPyQGLViewer by libQGLViewer.

  • Portfile

    old new  
    22# $Id: Portfile 112294 2013-10-17 03:36:13Z ryandesign@macports.org $
    33
    44PortSystem                      1.0
    5 PortGroup                       qmake 1.0
    65
    76# Please keep the libQGLViewer and libPyQGLViewer ports as similar as possible.
    87
    98name                            libPyQGLViewer
    109version                         2.3.17
     10revision                                1
     11
     12replaced_by                                             libQGLViewer
     13
    1114platforms                       darwin
    1215maintainers                     inria.fr:christophe.pradal openmaintainer
    1316license                         {GPL-2+ Commercial}
     
    2629                                easy to extend. \
    2730                                It has been forked to allow running sip on it to create Python wrappers.
    2831
    29 conflicts                       libQGLViewer
    30 
    31 master_sites                    https://gforge.inria.fr/frs/download.php/32979
    32 
    33 checksums                       rmd160  6451253bd9d6f347d1af73e7a48bc9d2d5cf48db \
    34                                 sha256  94860a337879f63ad7598192f0d31da1d275af7bff8c910a0c0abd5b902887fb
    35 
    36 patchfiles                      patch-QGLViewer.pro.diff \
    37                                 patch-designerPlugin.pro.diff
    38 # the terrain example does not compile on Lion; see #30886
    39 platform darwin 11 {
    40     patchfiles-append           patch-contribs.pro.diff
    41 }
    42 
    43 post-patch {
    44     reinplace "s|@@QT_PLUGINS_DIR@@|${qt_plugins_dir}|g" ${worksrcpath}/designerPlugin/designerPlugin.pro
    45 
    46     system -W ${worksrcpath} "sh ${filespath}/archflags.sh [get_canonical_archflags]"
    47 }
    48 
    49 configure.pre_args-append       DOC_DIR=${prefix}/share/doc/${name}
    50 configure.post_args-append      -after QMAKE_POST_LINK=\"\"
    5132
    52 use_parallel_build              no
     33livecheck.type                  none
    5334
    54 post-destroot {
    55     system -W ${worksrcpath}/examples "make clean"
    56     copy ${worksrcpath}/examples ${destroot}${applications_dir}/libQGLViewer\ Examples
    57     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    58     xinstall -m 644 -W ${worksrcpath} \
    59         changeLog.txt \
    60         GPL_exception.txt \
    61         licence.txt  \
    62         readMe.txt \
    63         ${destroot}${prefix}/share/doc/${name}
     35pre-configure {
     36    ui_error "Please do not install this port since it has been replaced by 'libQGLViewer'."
     37    return -code error
    6438}
    6539
    66 livecheck.type                  regex
    67 livecheck.regex                 "Version (\\d+(?:\\.\\d+)*)"
     40distfiles
     41 No newline at end of file