Ticket #40004: poedit-1.5.7-and-wxwidgets30.patch

File poedit-1.5.7-and-wxwidgets30.patch, 2.9 KB (added by mojca (Mojca Miklavec), 11 years ago)

Another suggestion to fix the problem + update to 1.5.7

  • Portfile

     
     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
    12# $Id: Portfile 108796 2013-08-02 01:47:49Z mojca@macports.org $
    23
    34PortSystem      1.0
    45
    56name            poedit
    6 version         1.5.5
    7 revision        1
     7version         1.5.7
    88categories      devel aqua
    99platforms       darwin
    1010license         MIT
    long_description \ 
    2020homepage        http://www.poedit.net/
    2121master_sites    sourceforge:poedit
    2222
    23 checksums       md5     da86cb73cee9d006a42f9574811d13ab \
    24                 sha1    822a72afab0c936c00291e21c8f23ff4cf8a3009 \
    25                 rmd160  cfc402f9eb0f000f068d98364870ac3860c20f57 \
    26                 sha256  3c94c9825c11a2d1ce10e083ad246e8625469f358da4a5a2f6210170b970f949
     23checksums       md5     f5b53ec66a606f088b0aa388595ea5f9 \
     24                sha1    e83c08ca33997829be946e1dcf1a35149856d184 \
     25                rmd160  46436e98caf2b41b61188fc1b79db62f2f218817 \
     26                sha256  24535cac22c8f7fb4f995710f6638ebc26825056076a04210ee66e19d65c0f78
    2727
    2828depends_build   bin:grep:grep \
    2929                port:pkgconfig \
    depends_lib port:wxWidgets \ 
    3333
    3434depends_skip_archcheck grep pkgconfig boost
    3535
    36 variant wxwidgets_devel description {Uses wxWidgets-devel (allows 64-bit build)} {
    37     depends_lib-delete        port:wxWidgets
    38     depends_lib-append        port:wxWidgets-devel
     36variant wxwidgets_devel conflicts wxwidgets30 description {Uses wxWidgets-devel (allows 64-bit build)} {
     37    depends_lib-replace     port:wxWidgets port:wxWidgets-devel
     38}
     39variant wxwidgets30 conflicts wxwidgets-devel description {Uses wxWidgets30 (allows 64-bit build)} {
     40    depends_lib-replace     port:wxWidgets port:wxWidgets30
    3941}
    4042
    41 platform darwin 11 {
    42     # According to comments in wxWidgets Portfile
    43     if {[vercmp $xcodeversion 4.4] >= 0} {
    44         default_variants +wxwidgets_devel
    45     }
     43if {[catch {registry_active wxwidgets-devel}] == 0} {
     44    default_variants        +wxwidgets_devel
    4645}
    4746
    48 platform darwin 12 {
    49     depends_lib-replace    port:wxWidgets port:wxWidgets30
     47if {[catch {registry_active wxwidgets30}] == 0} {
     48    default_variants        +wxwidgets30
    5049}
    5150
    52 if {![variant_isset wxwidgets_devel]} {
    53     # wxWidgets 2.8 is not universal and is 32-bit only
    54     universal_variant       no
    55     supported_archs         i386 ppc
     51if {![variant_isset wxwidgets_devel] && ![variant_isset wxWidgets30]} {
     52    # wxWidgets cannot be compiled on OS X 10.8 or later, or on 10.7 with Xcode >= 4.4
     53    if {${os.major} >= 12 || [vercmp $xcodeversion 4.4] >= 0} {
     54        default_variants    +wxwidgets30
     55    } else {
     56        # wxWidgets 2.8 is not universal and is 32-bit only
     57        universal_variant   no
     58        supported_archs     i386 ppc
     59    }
    5660}
    5761
    5862# remove some additional features, especially sparkle because macports handles updates