Ignore:
Timestamp:
Jul 16, 2007, 6:42:34 PM (12 years ago)
Author:
jmpp@…
Message:

Commit patch contributed by Ryan in #12279 to tempoarily fix archival issue of packages that list two
variant names in a single code block. Closes #12279.

NOTE: Consider this only a temporary, Portfile specific fix, the real bug in MacPorts' base should be
sought and fixed seperately. Tracked in #ticket 12306. As for this particular Portfile, Ryan's fix is
also a better approach 'cause 'darwin' and 'freebsd' shouldn't be listed as variants but platforms rather,
whereas 'kerberos' is a valid variant name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/cyrus-sasl2/Portfile

    r22503 r27045  
    2121distname                cyrus-sasl-${version}
    2222checksums               md5 dde02db234dea892bee298390890502e \
    23                                 sha1 6449f730c963d29d43600a95373a6e2db52d6d66
    24 #                               rmd160 93e0e1868453c5781602b5cce23e746b8823a26b
     23                        sha1 6449f730c963d29d43600a95373a6e2db52d6d66 \
     24                        rmd160 93e0e1868453c5781602b5cce23e746b8823a26b
    2525
    2626depends_lib             port:openssl \
     
    7272}
    7373
    74 variant kerberos darwin {
    75         configure.args-append --enable-gssapi --with-gss_impl=mit
    76 }
    77 
    78 variant kerberos freebsd {
    79         configure.args-append --enable-gssapi --with-gss_impl=heimdal
     74platform darwin {}
     75platform freebsd {}
     76variant kerberos {
     77        if {[variant_isset darwin]} {
     78                configure.args-append --enable-gssapi --with-gss_impl=mit
     79        }
     80        if {[variant_isset freebsd]} {
     81                configure.args-append --enable-gssapi --with-gss_impl=heimdal
     82        }
    8083}
    8184
Note: See TracChangeset for help on using the changeset viewer.