Ticket #45324: patch-geany-vte-2.90.diff

File patch-geany-vte-2.90.diff, 1.2 KB (added by dbevans (David B. Evans), 10 years ago)

Proposed patch for geany +gtk3 vte compatibility

  • Portfile

     
    55
    66name            geany
    77version         1.24.1
     8revision        1
    89license         GPL-2+
    910categories      devel
    1011platforms       darwin
     
    3031    port:pkgconfig \
    3132    port:intltool
    3233depends_lib \
     34    port:desktop-file-utils \
    3335    port:gettext \
    3436    port:gtk2 \
    3537    port:vte-gtk2-compat
     
    5658
    5759variant gtk3 description {Enable experimental gtk3 support} {
    5860    depends_lib-replace port:gtk2 port:gtk3
    59     depends_lib-replace port:vte-gtk2-compat port:vte
     61    depends_lib-replace port:vte-gtk2-compat port:vte-2.90
    6062    configure.args-append --enable-gtk3
    6163}
    6264
     65if {[variant_isset gtk3]} {
     66    set update_icon_cache "gtk-update-icon-cache-3.0"
     67} else {
     68    set update_icon_cache "gtk-update-icon-cache"
     69}
     70
     71post-activate {
     72    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
     73    system "${prefix}/bin/${update_icon_cache} -f -t ${prefix}/share/icons/hicolor"
     74}
     75
    6376livecheck.type  regex
    6477livecheck.url   ${master_sites}
    6578livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"