Ticket #40016: patch-quartz.diff

File patch-quartz.diff, 922 bytes (added by dbevans (David B. Evans), 11 years ago)

Proposed patch for +quartz variant

  • Portfile

     
    22# $Id$
    33
    44PortSystem          1.0
     5PortGroup           active_variants 1.1
    56
    67name                gtksourceview3
    78set gname           gtksourceview
     
    4647test.target         check
    4748
    4849variant quartz {
    49     pre-configure {
    50         ui_error "This port does not (yet) support the +quartz variant."
    51         ui_error "See https://trac.macports.org/ticket/40016."
    52         error "+quartz variant not supported."
    53     }
     50    depends_lib-append  port:gtk-osx-application
    5451}
    5552
     53if {[variant_isset quartz]} {
     54    require_active_variants gtk3 quartz
     55    require_active_variants gtk-osx-application gtk3
     56} else {
     57    require_active_variants gtk3 x11
     58}
     59
    5660post-destroot {
    5761    set docdir ${prefix}/share/doc/${name}
    5862    xinstall -d ${destroot}${docdir}