Changeset 97797


Ignore:
Timestamp:
Sep 15, 2012, 10:38:30 PM (12 years ago)
Author:
cal@…
Message:

gtk3: use the active_variants portgroup instead of checking for the existance of files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gnome/gtk3/Portfile

    r97310 r97797  
    66PortGroup           muniversal 1.0
    77PortGroup           xcodeversion 1.0
     8PortGroup           active_variants 1.0
    89
    910name                gtk3
     
    7374
    7475    if {[variant_isset quartz]} {
    75         if {![file exists ${prefix}/include/cairo/cairo-quartz.h]} {
    76             error "cairo must be built with the +quartz variant enabled."
    77         }
    78     } elseif {![file exists ${prefix}/include/cairo/cairo-xlib.h]} {
    79         error "cairo must be built without the +no_x11 variant."
     76        require_active_variants cairo quartz
     77    } else {
     78        require_active_variants cairo x11 no_x11
    8079    }
    8180}
     
    203202variant no_x11 {
    204203    pre-fetch {
    205         if {[file exists ${prefix}/lib/libpangox-1.0.dylib]} {
    206             ui_error "Please uninstall or deactivate the pango port and reinstall it by running `port install pango +no_x11`."
    207             error "pango must be installed with the no_x11 variant enabled."
    208         }
     204        require_active_variants pango {} x11
    209205    }
    210206}
Note: See TracChangeset for help on using the changeset viewer.