Paste number 12226: if conditionals broken?

Index of paste annotations: 1

Paste number 12226: if conditionals broken?
Pasted by: yeled
When:15 years, 3 weeks ago
Share:Tweet this! |
Paste contents:
Raw Source | XML | Display As
# $Id: Portfile,v 1.21 2005/10/04 08:02:35 yeled Exp $

PortSystem 1.0
name            mutt-devel
version         1.5.11
revision        1
categories      mail
description     Mongrel of Mail User Agents (part Elm, Pine, Mush, mh, etc)
platforms       darwin linux

long_description Mutt -- "The Mongrel of Mail User Agents" (part Elm, part \
                 Pine, part mh, part slrn, part everything else) is an \
                 interactive screen-oriented mailer program that supersedes \
                 Elm, Pine, mail and mailx.  Features include color support, \
                 message threading, MIME support (including RFC1522 support \
                 for encoded headers), customizable key bindings, POP3, \
                 Delivery Status Notification (DSN) support, and PGP/MIME.

distname        mutt-${portversion}
checksums       ${distfiles} md5 00e6f8f7c37d4840e5e30583ebee21ce
patch.args      -p1

worksrcdir      mutt-${portversion}

depends_lib             port:gettext port:libiconv

configure.args  --disable-warnings \
                --mandir=${prefix}/share/man \
                --with-docdir=${prefix}/share/doc/mutt \

variant cvs {
    fetch.type          cvs
    cvs.module          mutt
    cvs.password        anonymous 
    worksrcdir          mutt
    configure.cmd       ${worksrcpath}/prepare
        depends_build-append    port:autoconf

variant smtp {
# Include internal SMTP relay support
                configure.args-append --enable-smtp
                if { [variant_isset cvs] } {
                                patchfiles-append       patch-cvs20051003.bc.smtp
                                checksums-append        patch-cvs20051003.bc.smtp md5 \
                } else {
                                patchfiles-append       patch-1.5.11.bc.smtp.11
                                checksums-append        patch-1.5.11.bc.smtp.11 md5 \

Annotations for this paste:

Annotation number 1: bug?
Pasted by: yeled
When:15 years, 3 weeks ago
Share:Tweet this! |
Paste contents:
Raw Source | Display As
use the above Portfile and `sudo port -vdt destroot +smtp' - and it will download the correct patch.

but add +cvs to the mix and the cvs patchfiles-append isn't fetched - only the CVS checkout is done. (and then it breaks when it says it can't find all the patchfiles. If you fuck with the "if" conditional and put a "!" in front you will see that the cvs patch CAN be downloaded.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.