Ticket #23759: redland-bindings-require-variant.diff

File redland-bindings-require-variant.diff, 624 bytes (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)

a possible solution

  • Portfile

     
    2222
    2323configure.args      --mandir=${prefix}/share/man
    2424
     25pre-configure {
     26        if {![variant_isset perl5] && ![variant_isset php5] && ![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset ruby] && ![variant_isset tcl]} {
     27                ui_error "You must select at least one variant."
     28                return -code error "no variant selected"
     29        }
     30}
     31
    2532variant perl5 {
    2633        depends_lib-append path:bin/perl:perl5
    2734        configure.args-append --with-perl