Ticket #15550: luarocks.diff

File luarocks.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)
  • Portfile

     
    1919                                rocks trees.
    2020homepage                http://www.luarocks.org/
    2121master_sites            http://luaforge.net/frs/download.php/3359/
    22 depends_lib             port:lua \
    23                         port:wget
     22depends_run             port:lua
     23universal_variant       no
    2424
    25 configure.args-append   --with-lua=${prefix}   
    26 configure.args-append   --scripts-dir=${prefix}/lib/luarocks/bin       
     25configure.args          --with-lua=${prefix} \
     26                        --scripts-dir=${prefix}/lib/luarocks/bin
    2727
    28 variant md5 description { Use md5 as checker } {
    29         configure.args-delete   --with-md5-checker=openssl
     28variant md5 conflicts openssl description { Use md5 as checker } {
    3029        configure.args-append   --with-md5-checker=md5sum       
    31         depends_lib-delete      port:openssl
    3230}
    3331       
    34 variant openssl description { Use openssl as checker } {
    35         configure.args-delete   --with-md5-checker=md5sum
     32variant openssl conflicts md5 description { Use openssl as checker (default) } {
    3633        configure.args-append   --with-md5-checker=openssl     
    37         depends_lib-append      port:openssl
     34        depends_run-append      port:openssl
    3835}
    3936
    40 variant wget description { Use wget as downloader } {
    41         configure.args-delete   --with-downloader=curl
     37if {![variant_isset md5]} {
     38        default_variants +openssl
     39}
     40
     41variant wget conflicts curl description { Use wget as downloader } {
    4242        configure.args-append   --with-downloader=wget
    43         depends_lib-delete      port:curl
    44         depends_lib-append      port:wget
     43        depends_run-append      port:wget
    4544}
    4645
    47 variant curl description { Use curl as downloader } {
    48         configure.args-delete   --with-downloader=wget
     46variant curl conflicts wget description { Use curl as downloader (default) } {
    4947        configure.args-append   --with-downloader=curl
    50         depends_lib-delete      port:wget
    51         depends_lib-append      port:curl
     48        depends_run-append      port:curl
    5249}
    5350
     51if {![variant_isset wget]} {
     52        default_variants +curl
     53}
     54
    5455checksums       md5  e6edae6c667480d921f49ddda8cb63fc \
    5556                sha1  494c96944a9f6ab8d515fe4d6c15f661fafbf242 \
    5657                rmd160  6f0acf500998150042f22d55bed4c1f2eb23e9b0