Ticket #22025: ntl-quoting.diff

File ntl-quoting.diff, 1.1 KB (added by jmroot (Joshua Root), 15 years ago)

fix argument quoting

  • Portfile

     
    2424
    2525test.run        no
    2626
    27 configure.pre_args      "PREFIX=${prefix} DOCDIR=${prefix}/share/doc"
    28 configure.args          "NTL_STD_CXX=on"
    29 configure.args-append   "CC=\$CC CXX=\$CXX CFLAGS=\$CFLAGS CXXFLAGS=\$CXXFLAGS"
     27configure.pre_args      PREFIX=\"${prefix}\" DOCDIR=\"${prefix}/share/doc\"
     28configure.args          NTL_STD_CXX=on \
     29                        CC=\"\$CC\" CXX=\"\$CXX\" CFLAGS=\"\$CFLAGS\" CXXFLAGS=\"\$CXXFLAGS\"
    3030
    3131worksrcdir      ${name}-${version}/src
    3232
    33 destroot.destdir "PREFIX=${destroot}${prefix} DOCDIR=${destroot}${prefix}/share/doc"
     33destroot.destdir PREFIX=\"${destroot}${prefix}\" DOCDIR=\"${destroot}${prefix}/share/doc\"
    3434
    3535post-patch {
    3636        # Ensure that the correct perl is used
     
    3939
    4040variant gmp {
    4141        depends_lib-append      port:gmp
    42         configure.args-append   "NTL_GMP_LIP=on GMP_PREFIX=${prefix}"
     42        configure.args-append   NTL_GMP_LIP=on GMP_PREFIX=\"${prefix}\"
    4343}
    4444
    4545post-destroot {