Changeset 113996


Ignore:
Timestamp:
Nov 27, 2013, 7:54:35 AM (7 years ago)
Author:
ryandesign@…
Message:

curl: use -replace where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/curl/Portfile

    r112180 r113996  
    115115    variant ares description {Support resolving names asynchronously} {
    116116        depends_lib-append      port:c-ares
    117         configure.args-delete   --disable-ares
    118         configure.args-append   --enable-ares
     117        configure.args-replace  --disable-ares --enable-ares
    119118    }
    120119
    121120    variant gnutls conflicts ssl description {Allow secure connections using GNU TLS} {
    122121        depends_lib-append      port:gnutls
    123         configure.args-delete   --without-gnutls
    124         configure.args-append   --with-gnutls
     122        configure.args-replace  --without-gnutls --with-gnutls
    125123    }
    126124
     
    128126        # This needs to use the system's Kerberos, not MacPorts' gss or kerberos5.
    129127        conflicts-append        gss kerberos5
    130         configure.args-delete   --without-gssapi
    131         configure.args-append   --with-gssapi
     128        configure.args-replace  --without-gssapi --with-gssapi
    132129    }
    133130
    134131    variant metalink description {Support Metalink XML download description files} {
    135132        depends_lib-append      port:libmetalink
    136         configure.args-delete   --without-libmetalink
    137         configure.args-append   --with-libmetalink=${prefix}
     133        configure.args-replace  --without-libmetalink --with-libmetalink=${prefix}
    138134    }
    139135
    140136    variant openldap description {Support performing Lightweight Directory Access Protocol queries with OpenLDAP} {
    141137        depends_lib-append      port:openldap
    142         configure.args-delete   --disable-ldap \
    143                                 --disable-ldaps
    144         configure.args-append   --enable-ldap \
    145                                 --enable-ldaps
     138        configure.args-replace  --disable-ldap --enable-ldap
     139        configure.args-replace  --disable-ldaps --enable-ldaps
    146140    }
    147141
    148142    variant sftp_scp description {Support SFTP/SCP connections via libssh2} {
    149143        depends_lib-append      port:libssh2
    150         configure.args-delete   --without-libssh2
    151         configure.args-append   --with-libssh2
     144        configure.args-replace  --without-libssh2 --with-libssh2
    152145    }
    153146
     
    155148        # kind of broken?
    156149        depends_lib-append      port:fbopenssl
    157         configure.args-delete   --without-spnego
    158         configure.args-append   --with-spnego=${prefix}
     150        configure.args-replace  --without-spnego --with-spnego=${prefix}
    159151    }
    160152
     
    162154        depends_lib-append      port:openssl \
    163155                                path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
    164         configure.args-delete   --without-ssl
    165         configure.args-append   --with-ssl \
    166                                 --with-ca-bundle=${prefix}/share/curl/curl-ca-bundle.crt
     156        configure.args-replace  --without-ssl --with-ssl
     157        configure.args-append   --with-ca-bundle=${prefix}/share/curl/curl-ca-bundle.crt
    167158    }
    168159
Note: See TracChangeset for help on using the changeset viewer.