Ticket #56168: Portfile-1.0.7.diff

File Portfile-1.0.7.diff, 1.8 KB (added by oleaamot (Ole Aamot), 7 years ago)

gnome-internet-radio-locator 1.0.7

  • (a) Portfile-1.0.6 vs. (b) Portfile

    a b  
    33PortSystem          1.0
    44
    55name                gnome-internet-radio-locator
    6 version             1.0.6
     6version             1.0.7
    77set branch          [join [lrange [split $version .] 0 1] .]
    88categories          gnome
    99platforms           darwin
     
    1717
    1818use_xz              yes
    1919
    20 checksums           rmd160  2bccffecc36ca3cb6e15e03900eca922d650146f \
    21                     sha256  845fa33e1ea53f1c4f19e414a7b33131f29aa000d3e05840fced7ec397b42fcc \
     20checksums           rmd160  6dde3bc8c2b6e75ec003a506822a4d4e0d41a8cc \
     21                    sha256  4487afe2025c59780603f41eb1ab09721a51b18deb6e47e4fa51c981c9c95537 \
    2222                    size    536000
    2323
    2424depends_build       port:autoconf \
     
    6262configure.optflags  -O0
    6363configure.args      --disable-silent-rules
    6464
     65pre-configure {
     66    pre-configure {
     67        if {![file exists ${prefix}/lib/pkgconfig/gdk-quartz-3.0.pc]} {
     68            ui_error "
     69
     70****
     71**** Your version of GTK3 does not support quartz.  Please make sure that port
     72**** gtk3 and all its dependencies are built with variants +no_x11 +quartz and
     73**** try again.
     74****
     75"
     76            error "gtk3 +no_x11 +quartz not installed."
     77        }
     78    }
     79    if {![variant_isset quartz] && ![variant_isset x11]} {
     80        error "Either +x11 or +quartz is required"
     81    }
     82}
     83
     84if {![variant_isset quartz]} {
     85    default_variants-append +x11 +gtk3
     86}
     87
    6588post-activate {
    6689   system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
    6790   system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
     
    7295    configure.optflags  -O0 -g
    7396}
    7497
     98variant quartz {}
     99
    75100livecheck.type      gnome-with-unstable